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

How to get the CRS from a shapefile? #33

Open
nk9 opened this issue Feb 23, 2024 · 3 comments
Open

How to get the CRS from a shapefile? #33

nk9 opened this issue Feb 23, 2024 · 3 comments

Comments

@nk9
Copy link

nk9 commented Feb 23, 2024

I don't see how I can get the CRS out of a shapefile read with this library. Am I correct that these are the docs for this project? If so, I don't see "CRS" mentioned in there. Should I be using another library?

@tmontaigu
Copy link
Owner

tmontaigu commented Feb 24, 2024

This library does not read CRS information, You can read it yourself by reading the .prj that has the same name as the .shp file and use another library that can parse the content for you

If there is no .prj file, then crs does no exists for the file

@nk9
Copy link
Author

nk9 commented Feb 24, 2024

Thanks for the quick reply. There is indeed a .prj file in my case. Can you point me to another library which can parse the prj file? I'm hoping to get an EPSG number out.

@tmontaigu
Copy link
Owner

You might be able to get something with proj / proj4 and/or proj4wkt

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