Dear Support,
I am facing the following issues with respect to the Projection and Extent.
1) Extent : Set Value varies from what i set
I am trying to set the Map.CurrentExtent value and set is successful, but after it has been set, when i check the value it is not the same as what i set. There is a variation.
E.g.
a) CurrentExtent was {527299.031831269,3148591.33044662,540040.98995113,3135925.67147718}
b) Extent value to be set is {536788.776059142,3137440.68860918,538391.607825851,3135846.84072119}
c) But after setting the above value, CurrentExtent value is set to {535997.447177514,3138226.97203636,539182.936707479,3135060.557294}
Observation:
i) From my understanding it is trying to adjust the extent to some square area.
ii) But if i set the value in the above point-c (which is already adjusted by map) then it is acceping the same value and setting it exactly.
2) Incorrect projection conversion:
Converting value from internal to External and then converting it back to internal is giving incorrect value. I used the following functions. projNetProjection.ConvertToInternalProjection, projNetProjection.ConvertToExternalProjection.
E.g.
a) Values in Internal Projection is {3144662.1529888269, 530512.28006724466, 3139855.3065124722, 536883.25912717532 }
b) Converted the above to External Projection and got {28.42806, -80.68856, 28.38451, -80.62338 }
c) Now converting this back to internal projection gives me {3144679.9625894581, 530499.79024319677, 3139837.1337499064, 536898.09939564939 } - which is different from step (a).
Same for External to Internal to External conversion.
Kindly help us in resolving this issue.
Thanks and Regards,
Gobi