New answers tagged epsg
Mike Toews has a good example that can do this using the OGR python bindings on overflow here. It centers around osr.SpatialReference(srsWkt).AutoIdentifyEPSG()
You can get the EPSG code only if the software has written it into the WKT definition of the .prj file. Using gdalsrsinfo on the .prj file also does not offer the information you want. Mabe because there are some EPSG codes that have the same proj definition, but different names.
Popular Mercator was added in MapInfo Professional 9.5, so the coordinate system should be there. We might have used a different EPSG code in v9.5. I do recall some fuzz about changing the EPSG code. Anyway, in the list "Projections of the World" you should find the "Popular Visualization" coordinate system/projection. That's the one you are looking for. ...
The topojson command has no parameter -t_srs, it is ogr2ogr what you want to use: ogr2ogr -f GeoJSON trainsGeoJSON.json TRAINS_RTE_TRAIN.shp -s_srs EPSG:26986 -t_srs EPSG:4326 Then convert to topojson format (as described here): topojson -o trainsTopojson.json trainsGeoJSON.json
You can seach in the EPSG geodetic parameter dataset here: http://www.epsg-registry.org/ Search for 6372 on the retrieve by code tab.
Top 50 recent answers are included