<div dir="ltr">OK, so it's a weird file.<div><br></div><div>I'll leave it to you to decide whether it's worth making GDAL/Proj deal with it. I suspect not, and that's fine with us.<div><br></div><div>Thanks!</div><div><br></div><div>Simon</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 24, 2019 at 12:22 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 mardi 24 septembre 2019 11:52:22 CEST Simon Eves wrote:<br>
> (re-posting as the first one ~2 weeks ago went into moderation quarantine<br>
> due to attachment size and I don't know if it ever came out again, but<br>
> certainly had no responses)<br>
> <br>
> When our system imports (using GDAL) the attached GeoJSON file (of unknown<br>
> provenance, via our QA team) the geo (California counties) ends up<br>
> somewhere out in the Pacific and really small and slightly rotated.<br>
> <br>
> I get the same results whether I import the file directly, or do a<br>
> Shapefile or WKT CSV conversion with ogr2ogr first (forcing to EPSG:4326).<br>
> <br>
> Is the file bogus, or is GDAL not interpreting the original coordinate<br>
> system correctly?<br>
<br>
Its CRS and coordinate encoding is highly unstandard<br>
<br>
"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG:102243"}},"hc-<br>
transform":{"default":{"crs":"+proj=lcc +lat_1=37.06666666666667 <br>
+lat_2=38.43333333333333 +lat_0=36.5 +lon<br>
_0=-120.5 +x_0=2000000 +y_0=500000 +ellps=GRS80 +units=m +no_defs","scale":<br>
0.000665455608285,"jsonres":15.5,"jsonmarginX":-999,"jsonmarginY":<br>
9851.0,"xoffset":1668099.76286,"yoffset":1116967.85109}}<br>
<br>
EPSG:102243 doesn't exist. It is actually ESRI:102243 (the proj string above <br>
is consistant with that)<br>
<br>
But the main issue is the "transform" object that seems to describe a offset & <br>
scaling strategy to encode coordinates as integer values. You'll have to <br>
manually apply those corrections<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="margin:0px;padding:0px 0px 20px;width:2544px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div><div style="font-size:12.8px;margin:8px 0px 0px;padding:0px"><div><div dir="ltr"><span><font color="#888888"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><table cellpadding="0" cellspacing="0" border="0" style="font-family:Times;width:2544px"><tbody><tr><td align="left" style="vertical-align:top;font-size:0px"><table cellpadding="0" cellspacing="0" border="0"><tbody><tr><td align="left" style="padding:0px 15px 0px 0px;vertical-align:middle"><font face="arial, helvetica, sans-serif" size="2"><a href="http://www.omnisci.com/" target="_blank"><img src="http://www2.omnisci.com/l/298412/2018-09-18/3sqpg/298412/61753/OmniSci_Email_Header2.png"></a><br></font></td><td align="left" style="padding:0px 0px 0px 15px;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="width:215px"><tbody><tr><td align="left" style="vertical-align:top"><span style="white-space:nowrap;color:rgb(0,0,1)"><span style="color:rgb(14,76,144);font-weight:700"><font face="arial, helvetica, sans-serif" size="2">Simon Eves</font></span></span></td></tr><tr><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0"><tbody><tr><td align="left" style="vertical-align:top"><span style="white-space:nowrap;color:rgb(0,0,1)"><font face="arial, helvetica, sans-serif" size="2">Senior Graphics Engineer, Rendering Group<br>OmniSci, 1 Front St. #2650, San Francisco, CA 94111, USA<br></font></span></td></tr></tbody></table></td></tr><tr><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0"><tbody><tr><td align="left" style="padding:0px;vertical-align:top"><br></td><td align="left" style="padding:0px;vertical-align:top"><br></td></tr><tr><td align="left" style="padding:0px;vertical-align:top"><span style="white-space:nowrap;color:rgb(0,0,1)"><font face="arial, helvetica, sans-serif" size="2">Email: <a href="mailto:simon.eves@omnisci.com" target="_blank">simon.eves@omnisci.com</a> | Cell: </font></span></td><td align="left" style="padding:0px;vertical-align:top"><span style="white-space:nowrap;color:rgb(0,0,1)"><font face="arial, helvetica, sans-serif" size="2">415.902.1996</font></span></td></tr></tbody></table><br></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><br></div></div></div></div></div></div></div></div></div></div></font></span></div><div></div></div></div><div></div></div></div></div></div></div></div>