New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can st_write warn when writing non-EPSG:4326 GeoJSON files? #344
Comments
I am inclined to leave such decisions up to GDAL - as you say, the issue with draft standards is that they are not yet "the" standard, we have to live with that now, and understand the consequences. |
This makes sense to me. Presumably GDAL warnings could be propagated up through Still, I suspect that casual consumers of |
I'd be happy to go there when the GeoJSON standard is no longer a draft, and prescribes 4326. |
When using This is causing issues for map tiles. |
|
Although GeoJSON does support a
crs
field, it is not widely supported by client libraries. Popular Javascript visualization libraries (including Leaflet and D3) expect all GeoJSON files to be EPSG:4326, and will break in mysterious ways if this is not the case. The draft GeoJSON standard recommends against it, too.At the moment
sf
will happily let you export non-EPSG:4326 GeoJSON files. Obviously this may be desirable in some cases, but I suspect that many users would do so unintentionally.Is it possible or desirable to have
st_write
issue a warning when writing non-standard GeoJSON files? I would be happy to write a patch if so.The text was updated successfully, but these errors were encountered: