So I've got a shapefile that has polygons of countries, with coordinates in decimal degrees:
Country (String) = Algeria
POLYGON ((6.928073999999953 36.88360652,
6.949973999999969 36.883306519999991, ...
gdalsrsinfo
on the .prj file outputs:
PROJ.4 : '+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs '
PROJCS["Mercator",
GEOGCS["GCS_unnamed ellipse",
DATUM["unknown",
SPHEROID["Unknown",6378137,0]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.017453292519943295]],
PROJECTION["Mercator_1SP"],
PARAMETER["central_meridian",0],
PARAMETER["false_easting",0],
PARAMETER["false_northing",0],
UNIT["Meter",1],
PARAMETER["latitude_of_origin",0.0]]
To my untrained eye, the GEOGCS[]
bit looks like it's defining the coordinate system in degrees, so this should work. However, if I include the .prj file, Google Maps Engine thinks the coordinates are in meters and renders everything as a tiny blob around (0,0). If I drop the .prj file, it defaults to degrees and returns a much more sensible rendering.
What's wrong, and how do I fix it? (Note the the shapefile is from a third party and produced with an unknown toolset.)