KML 到 SqlGeography
有人有可以将 KML 转换为 SqlGeography(SQLServer 数据类型)的函数或 DLL 吗?
如果有必要的话,我会自己写出来,但令我惊讶的是我找不到。
Anyone have a function or DLL that will convert KML to SqlGeography (SQLServer DataType)?
I'll write it out myself if i have to, but i'm surprised i can't find one out there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当我遇到这个问题时,我创建了一个项目来解决这个问题。我现在已经开源了。 (https://github.com/pharylon/kml2sql)。如果它不完全是您所需要的,SharpKML 是一个很棒的库,可以帮助您开始自己的项目。 (http://sharpkml.codeplex.com/)。
I created a project to do it when I had this problem. I've got it open sourced now. (https://github.com/pharylon/kml2sql). If it isn't exactly what you need, SharpKML is a great library for getting started on your own project. (http://sharpkml.codeplex.com/).
其他人也遇到过这个问题。有一些解决方案,但它们通常是矫枉过正的。这是一个更轻的解决方案:
http://consultingblogs.emc.com/stevewright/archive/2009/01/23/how-to-load-spatial-data-into-sql-server-2008-from -net.aspx
Other people have had this problem. There are solutions but they are generally overkill. Here is a lighter solution:
http://consultingblogs.emc.com/stevewright/archive/2009/01/23/how-to-load-spatial-data-into-sql-server-2008-from-net.aspx