SQL Server 2008中的空间数据/地理位置,OR映射器和C# [英] Spatial data/Geography in SQL Server 2008, OR mappers and C#

查看:169
本文介绍了SQL Server 2008中的空间数据/地理位置,OR映射器和C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在C#中开发一个应用程序,该应用程序将使用SQL Server 2008中数据类型地理来使用和存储地理位置。我计划使用实体框架,但很快就发现它缺乏对空间数据的支持。有没有人有空间支持的其他OR映射器的经验或知道?



系统将具有很少的写入和许多地理数据的读取。
什么是从C#读/写空间/地理数据的好/优先的方式?

解决方案

你可能想要查看以下堆栈溢出帖子:





此外,您可能还有兴趣查看 SketchPad 从MSDN代码库及其博客文章 SketchPad:一个简单的绘图编辑器


SketchPad是一个简单的绘图编辑器
,可以让你创建基本
几何形状,并使用实体框架或$将它们模型化为实体
b $ b LINQ to SQL。您可以创建,读取和
删除形状,并使用内置的
空间索引通过属性值搜索实体



I'm developing an application in C# that will use and store geographic locations using the data type "Geography" in SQL Server 2008. I was planning to use the Entity Framework but soon discovered it lacks support for spatial data. Does anyone have experience with or know of other OR mappers with spatial support?

The system will have few writes and many reads of geographical data. What is a good/preffered way to read/write spatial/Geography data from C#?

解决方案

You may want to check out the following Stack Overflow post:

In addition, you might also be interested to give a look to SketchPad from the MSDN Code Library, and its blog article SketchPad: A Simple Drawing Editor.

SketchPad is a simple drawing editor that allows you to create elementary geometric shapes, and model them as entities using either the Entity Framework or LINQ to SQL. You can create, read, and delete shapes, and use the built-in spatial index to search for entities by attribute value.

这篇关于SQL Server 2008中的空间数据/地理位置,OR映射器和C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆