<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div>While debugging a problem with my Fiona project I realized that if GDAL_DATA is not known, OGR_L_GetSpatialRef() (master branch and also 2.3.2) can return a not-NULL spatial reference while also putting a CE_Failure error on the error stack. Is this intended or is the error code perhaps one level too high in this case? Are application using GDAL supposed to continue working if the EPSG support files aren't found? Might this be changed to a warning instead?</div><div><br></div><div>I see that ogr2ogr does continue while also printing the following to the terminal:</div><div><br></div><div>ERROR 4: Unable to open EPSG support file gcs.csv.  Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.</div><div><br></div><div>Will OGR_L_GetSpatialRef() always return NULL if there is a error condition that an application can't or shouldn't continue from? Or do applications need to check the error stack to see how bad the situation is?</div><div><br></div><div>Thanks,</div><div dir="ltr"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Sean Gillies</div></div></div></div></div>