Hello,
I’m curious if there is a way to use a Proj4Projection for drawing on a map to points west of 180. Currently we have to use an UnmanagedProj4Projection to do so, but there are occasional errors thrown by the unmanaged projection (mostly accessing protected memory exceptions.)
Background:
For years we used a map unit of decimal degrees, and didn’t have any problems. This year we changed our projection to web mercator, and thus needed to use meters as our map unit. Our map runs from 0 degrees as the eastern boundary, to 10E (350) as our western boundary.
Since all of our data is in decimal degrees, everything needs to be converted before drawing on the map. What we found is that when using the Proj4Projection, nothing will draw west of 180. If you look at the lat/lon locations after a ConvertToExternalProjection call, the western edge maxes out at the 180 line (20037508.3428 meters.) That’s the reason for using the UnmanagedProj4Projection, as it will allow shapes/features to draw west of 180. However, the unmanaged projection throws errors at a surprising rate when ConvertToExternalProjection is called. Even if the call is wrapped in a Try…Catch, our program will crash on the initial error.
Is there anyway for us to use a Proj4Projection west of 180? I’ve tried setting the DecimalDegreeBoundary, but that didn’t make any difference.
Any thoughts would be helpful.
Thanks,
Dib