OSGB36 中 shapefile 的空间数据转换和持久性问题
我正在寻找一个满足以下要求的工具
1)能够以编程方式将 osgb36 格式的 shapefile 导入数据库(sql server 2005/2008)。 2) 能够以编程方式将 OSGB36 转换为 WGS84。 3) 兼容.NET框架。 (例如在 C# 中)
我尝试了一些,但没有一个起作用。
我想要该工具在 .NET 环境中将 osgb36 shapefile 导入数据库(可以在存储到数据库之前将其转换为 wgs84)。
I am looking for a tool that meets the following requirements
1) Ability to import shapefile in osgb36 format to database (sql server 2005/2008) programmatically.
2) Ability to convert OSGB36 to WGS84 programmatically.
3) Compitable with .NET framework. (e.g. in C#)
I tried a few, but none of them work.
I want the tool to import osgb36 shapefile to database (may convert it to wgs84 before storing in database) in a .NET environment.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我很乐意帮助你。我有工具可以读取 WGS84 格式的 shapefile 并插入到 SQL2008 中。但我没有 OSGB36 -> 的转换公式WGS84,所以我停留在这一点上。
如果您发现 .NET 转换,请告诉我,我会将其集成到该工具中。
I'd love to help you out. I've got the tools to read shapefiles in WGS84 format and insert into SQL2008. But I don't have the conversion formula from OSGB36 -> WGS84, so am stuck on that point.
If you find a .NET conversion, then let me know and I'll integrate it into the tool.
我试图对 jjrdk 的答案发表评论,但我找不到办法。只是想说,我使用了 Grid InQuest DLL 进行坐标转换。它是托管代码,但您可以从 .NET 调用它,并且它是“官方”地形测量局高精度执行方式(精确到几厘米)。
我还有许多其他代码的片段,这些代码精确到大约 7m,如果这就是你想要的,我可以发布源/链接。
我一直在使用 Shp2SQL 将形状导入几何和地理数据类型,不幸的是它没有源代码。如果有人知道比这更好的事情,我很想听听。我确实有读取 SHP 文件的库 - 如果您需要,我可以发布链接。
I'm trying to comment on jjrdk's answer but I can't find a way to. Just wanted to say, I have used the Grid InQuest DLL to do the coordinate conversions. It's managed code but you can call it from .NET, and it is the 'official' Ordnance Survey high-accuracy way of doing it (accurate to a few cms.)
I also have numerous bits and pieces of other code which is accurate to about 7m, if that's all you want I can post the source/links.
I've been using Shp2SQL to import shapes to geometry and geography data types, unfortunately it has no source code. If anyone knows anything better than that I'd love to hear about it. I do have libraries to read SHP files - I can post the links if you want them.