<div dir="ltr">Even,<div><br></div><div>To be clear, would replacing</div><div><br></div><div><span style="color:rgb(80,0,80)"> sr->importFromEPSG(4326);</span><br></div><div><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)">with</span></div><div><span style="color:rgb(80,0,80)"><br></span></div> sr->SetFromUserInput("urn:ogc:def:crs:OGC:1.3:CRS84");<div><br></div><div>also restore the old behavior? CRS84 is the formally correct identifier for what we've been calling EPSG:4326, right?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 24, 2019 at 2:50 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On vendredi 24 mai 2019 13:35:40 CEST Simon Eves wrote:<br>
> I feel like I'm asking a really dumb and naive question again, but here<br>
> goes...<br>
> <br>
> Our geo importer loads polygons in what I assume is a very standard way.<br>
> The importer code has not changed in some time, and works fine built<br>
> against GDAL 2.3.2 and Proj 5.1, and also against GDAL 2.4.1 and Proj 5.2.<br>
> <br>
> When I build our system against GDAL 3.0.0 and Proj 6.1.0, everything seems<br>
> to work fine, and GeoJSON and KML files import correctly, but Shapefiles<br>
> result in all the geo being transposed in X/Y!<br>
> <br>
> Simplified code...<br>
> <br>
> sr = new OGRSpatialReference();<br>
> sr->importFromEPSG(4326);<br>
<br>
EPSG:4326 has lat,long order enforced by default in GDAL 3.0<br>
So either cope with it with the x,y you get.<br>
Or add sr->SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER);<br>
<br>
<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Sean Gillies</div></div>