Hi,
I recently discovered an error that occurs when applying a TextStyle to a layer of polygons, but only under certain circumstances. The error occurs when:
- You apply a TextStyle and set the FittingPolygon property (oTextStyle.FittingPolygonInScreen = True)
- The original coordinate system of the layer is Albers (Srid=102003)
- You reproject the layer into the Google, Spherical Mercator coordinate system.
The hard part is that the error only happens when you zoom to certain areas in the layer.
Of course I have provided a sample project. When the project starts it will open a shapefile and zoom to a “safe” area. When you click the button the map will zoom to a “bad” area and you will see the error (“side location conflict [ (-0.433096078633671, 317.023383767702, NaN) ]”). The error comes from the NetTopology dll.
Thanks!
Steve
LabelEdgeConflict.zip (1.2 MB)