空間参照を含む xml ファイルを解析しようとしていますが、次のポリゴンを作成しようとして停止しました。
これを克服するために、私は SSMS を使用して問題をデバッグしようとしました。
SQL 2012 Express を使用しています。
XML ソース データ
<Polygon>
<Position latitude="-62" longitude="-114" />
<Position latitude="34" longitude="-114" />
<Position latitude="34" longitude="62" />
<Position latitude="-62" longitude="62" />
<Position latitude="-62" longitude="-114" />
</Polygon>
SQL クエリ
DECLARE @geom geography
SELECT @geom = geography::STGeomFromText('POLYGON((
-62 -114,
34 -114,
34 62,
-62 62,
-62 -114
))',4326)
SQL 例外
Msg 6522, Level 16, State 1, Line 13
A .NET Framework error occurred during execution of user-defined routine or aggregate "geography":
System.FormatException: 24201: Latitude values must be between -90 and 90 degrees.
情報をありがとう アダム