This project is read-only.

Add Layer - Check Projection?

Nov 22, 2010 at 11:18 PM

I've downloaded the latest source code of DotSpatial and run the DemoMap.exe.

I add a shapefile (countries of the world) in Mercator projection. Then I add an Idaho rivers shapefile in the NAD 1983 UTM zone 12 spatial reference. Both files are added to the map, but no reprojection occurs. I remember in previous version of DotSpatial, it used to display a 'projection mismatch' dialog with a 'reproject' option.

I have 2 questions:

1) is there any setting in the Map or layer class, to enable the 'projection mismatch' dialog?

2) how does DotSpatial compare if two spatial reference systems are identical? Does it compare the name, the esri string, the proj4 string or the properties of the ProjectionInfo object?