Skip to content
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

Geometries not being read properly #53

Open
marcboschmatas opened this issue Oct 19, 2022 · 1 comment
Open

Geometries not being read properly #53

marcboschmatas opened this issue Oct 19, 2022 · 1 comment

Comments

@marcboschmatas
Copy link

I've posted a question at Stackoverflow, but I guess I should post it here as well. In a nutshell, I'm reading a layer with census tracts, neighbourhoods, and districts in Barcelona and the census tracts aren't being read properly. It's not a problem with the data, since it reads fine in R. It looks like it's reading the polygon coordinates in the wrong order.
Here's the SO question with all the code and plots.
https://stackoverflow.com/questions/74126814/geojson-jl-reading-some-geometries-incorrectly

@rafaqz
Copy link
Member

rafaqz commented Oct 19, 2022

This is because the crs in the file is in EPSG:25831 which has an easting/northing order rather than the northing/easting of EPSG:4326/WGS 84.

The new GeoJSON spec no longer supports indluding crs in a GeoJSON file. As this version of the package is very new that is all we support. We could in theory support crs but it would required looking for crs data, adding a Proj.jl dep, and looking up easting/northing order of the points with Proj.jl.

(and usually just post issues like this here, we want to see them and are less likely to on stack overflow)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants