Skip to content

Commit

Permalink
Update export_request_processor.pl
Browse files Browse the repository at this point in the history
Changed deprecated EPSG:3785 PRJ non recognized by ArcGIS by EPSG:3857 tested on ArcGIS. Should solve hotosm#94, hotosm#80, hotosm#76 and
hotosm#75
  • Loading branch information
severinmenard committed Apr 1, 2015
1 parent 09ba9d3 commit 8f36c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/export_request_processor.pl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
foreach my $prj(glob("/tmp/$rid-shp/*.prj"))
{
open(PRJ, ">$prj");
print PRJ 'PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["Popular Visualisation CRS",DATUM["Popular_Visualisation_Datum",SPHEROID["Popular Visualisation Sphere",6378137,0,AUTHORITY["EPSG","7059"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6055"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4055"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],AUTHORITY["EPSG","3785"],AXIS["X",EAST],AXIS["Y",NORTH]]';
print PRJ 'PROJCS["WGS_84_Pseudo_Mercator",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Mercator"],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],PARAMETER["standard_parallel_1",0.0]]';
close(PRJ);
$prj =~ /(.*)\.prj$/;
my $cpg = $1.'.cpg';
Expand Down

0 comments on commit 8f36c62

Please sign in to comment.