Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用适用于 .NET 的 Google Maps Api,它为我提供了 DbGeometry,但我需要将位置作为 DbGeography 存储在数据库中。如何从 DbGeometry 转到 DbGeography?
如果您已经在数据库表中获得了它,则可以执行以下操作:
select geography::STGeomFromText(cast(yourGeomCol as varchar(max)), 4326) from yourTable