I have JSON generated from ArcGIS that I want to convert to GeoJSON in EPSG 4326. This fails:
$ ogr2ogr -f GeoJSON -t_srs EPSG:4326 out.geo.json in.arcgis.json OGRGeoJSON ERROR 6: EPSG PCS/GCS code 102100 not found in EPSG support files. Is this a valid EPSG coordinate system?
I found a forum post that says 102100 can be changed to 3857, which is mathematically identical. So, this works, with the same error message:
$ ogr2ogr -f GeoJSON -s_srs EPSG:3857 -t_srs EPSG:4326 out.geo.json in.arcgis.json OGRGeoJSON ERROR 6: EPSG PCS/GCS code 102100 not found in EPSG support files. Is this a valid EPSG coordinate system?
However, I have several files in the 102100 projection system. I'd like to teach ogr2ogr about the 102100 projection, so I can script the conversion. Is there a way to update the config so that 102100 is recognized and treated the same as 3857?
Update - This data is from the REST API of ArgGIS Server 9.3.1. If I don't specify an output spatial reference, then I get 102100, which they define as the projected coordinate system "WGS_1984_Web_Mercator_Auxiliary_Sphere". A much easier way to accomplish my goal is to ask for the desired projection, with the
outSR=4326 query parameter. The question is still valid if you don't have access to original data.