<div dir="ltr">When trying to import this Shapefile bundle into our system with GDAL...<div><br clear="all"><div><a href="https://drive.google.com/file/d/13Mwhnugcy8HrnGlc81gyroxnp9s15Skt/view?usp=sharing">https://drive.google.com/file/d/13Mwhnugcy8HrnGlc81gyroxnp9s15Skt/view?usp=sharing</a><br></div><div><br></div><div>...we get an <b>OGRERR_CORRUPT_DATA</b> from <b>OGRSpatialReference::Validate()</b> on the SR obtained from the first feature.</div><div><br></div><div>Tracing through the GDAL and PROJ code, this appears to be because the PROJ import of that CRS results in the following WKT Import Error from PROJ...</div><div><br></div><div><i>Coordinate system of GeographicCRS in the WKT definition is different from the one of the authority. Unsetting the identifier to avoid confusion<br></i></div><div><br></div><div>...and any WKT Import Error makes GDAL report that error code.</div><div><br></div>The PROJ code throws this in <b>WKTParser::Private::buildGeodeticCRS</b> (io.cpp:3229 in 9.3.0) which is old code (although the second branch which can throw the same error was seemingly added between 8.2 and 9.3 in <a href="https://github.com/OSGeo/PROJ/pull/3274">https://github.com/OSGeo/PROJ/pull/3274</a> ...but it's the first branch that's triggering in this case).</div><div><br></div><div><b>ogrinfo</b> on the Shapefile reports no errors or warnings, although it does report a CRS ID of 9001 even though it reports WGS84 elsewhere in the CRS block.</div><div><br></div><div>I was able to trivially <b>ogr2ogr</b> it to GeoJSON, also with no errors or warnings, and that imports with no issue.</div><div><br></div><div><span class="gmail_signature_prefix">Is there an actual problem (a bad file) here, or are we doing something wrong?</span></div><div><span class="gmail_signature_prefix"><br></span></div><div><span class="gmail_signature_prefix">Thanks, as ever, in advance.</span></div><div><span class="gmail_signature_prefix"><br></span></div><div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Simon Eves<div>Senior Rendering Engineer</div><div>+1 (415) 902-1996<br><a href="mailto:simon.eves@heavy.ai" target="_blank">simon.eves@heavy.ai</a></div><div><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><a href="http://www.heavy.ai" target="_blank"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(17,85,204);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><span style="border:none;display:inline-block;overflow:hidden;width:156px;height:29px"><img src="https://lh4.googleusercontent.com/mzi9GaXA9r6isEqIx5nIYx0oQnpZtzBnF19Pu83MUBPDvp_rpcQXv55z-IZcQrybunkhKf6mXNJjIQinIbkHTigssDxIks_tXAaV1aDQzVT8FpE1wOn3MW0W_iiTnDjVZzMUNgs" width="156" height="29" style="margin-left:0px;margin-top:0px"></span></span></a></p></span></div></div></div></div></div>