【发布时间】:2018-02-21 22:43:31
【问题描述】:
这里我尝试使用 DbGeometry 创建多边形:
var t = System.Data.Spatial.DbGeometry.PolygonFromText("POLYGON(184124.95503725 666736.70253002, 184116.48837516 665712.23641656, 184946.22126044 666304.90276319, 184124.95503725 666736.70253002)", 2039);
当上面的行执行时,我收到此异常消息:
Exception has been thrown by the target of an invocation.
内部异常:
24142: Expected "(" at position 8. The input has "1".
知道为什么上面会出现异常吗?
【问题讨论】:
-
它会起作用吗? :
var t = System.Data.Spatial.DbGeometry.PolygonFromText("POLYGON((184124.95503725 666736.70253002, 184116.48837516 665712.23641656, 184946.22126044 666304.90276319, 184124.95503725 666736.70253002))", 2039);
标签: c# .net gis geospatial geocoding