Coordinate sequence in reprojected polygons (GeometryService)

3748
0
02-05-2015 04:25 AM
ØyvindIdland
New Contributor III

I am using the GeometryService (via the JavaScript API), and it seems that the coordinates cycles when using the procject() function (via the Javascript API).

 

I got a polygon (wkid:4230) with lat/lon coordinates, where the outer ring looks like this (using colors for convenience):

[6,60],[7,61],[8,60],[6,60]

 

Reprojected, the expected output (wkid:23032) is:

[332696.8113100069,6655361.188015551],[391834.53262294317,6764599.065998085],[444220.94353368937,6651988.271109243],[332696.8113100069,6655361.188015551]

 

However, the actual output looks like this:

[444220.94353368937,6651988.271109243],[332696.8113100069,6655361.188015551],[391834.53262294317,6764599.065998085],[444220.94353368937,6651988.271109243]

 

Even more odd; if I alter the start point's northing (and consequently the endpoint since they are supposed to be the same) slightly (one DMS second)

[6,60.000277777777775],[7,61],[8,60],[6,60.000277777777775]

..i get this:

[391834.53262294317,6764599.065998085],[444220.94353368937,6651988.271109243],[332698.21446437563,6655392.10363493],[391834.53262294317,6764599.065998085]

 

 

The outer ring (orignal and reprojected) are still clockwise in all cases, but I don't understand the cycling.

0 Kudos
0 Replies