Hi,
We’re using public WMTS service for a background, but require user to input what the CRS is. The WMTS is in Spherical Mercator projection, but one user entered WGS84 lat/long projection. When the map tried to refresh, it caused a hard crash that killed the application with the following going to the output window.
ERROR 1: latitude or longitude exceeded limits
ERROR 1: Reprojection failed, err = -14, further errors will be supressed on the transform object.
ERROR 1: Too many points (440 out of 441) failed to transform,
unable to compute output bounds.
I have the DrawingException event on the layer, but this issue is not trapped by that. Not sure if the event is broken or the crash happens before drawing.
Also, what is best way to automatically determine CRS of WMTS layer? It seems the capabilities xml is not as standard as WMS layer making it problematic to parse.
Regards,
Damian