Stemming from #21, this improves SRS comparisons in shp-reproject and tif-reproject criteria by:
using srs.parse on both the incoming SRS info and the proj4 string that gdal gives us for epsg:3857
string comparison on the result ^^
on incoming data, using .toWKT() instead of .toProj4() since some valid spherical mercator variants do not have a proj4 representation
because of these un-proj4-able systems, and because ogr uses proj4 internally to perform transformations, the criteria needs to avoid reprojecting datasets that are already in a spherical-mercator-ish projection into epsg:3857. So this means datasets in 900913, 3857 and the lovely "Web Mercator (Auxiliary Sphere)" will not be reprojected
I also changed the names of a bunch of tests for consistency / legibility.
Stemming from #21, this improves SRS comparisons in
shp-reproject
andtif-reproject
criteria by:srs.parse
on both the incoming SRS info and the proj4 string that gdal gives us for epsg:3857.toWKT()
instead of.toProj4()
since some valid spherical mercator variants do not have a proj4 representationI also changed the names of a bunch of tests for consistency / legibility.