-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
[FEATURE] Adjustment to ShapefileReader #559
Comments
Hello @jbellander ! I tried opening that shapefile in planetiler and I get an error Looks like the full coordinate reference system specification is:
|
I should be honest to say that I'm on very deep water when it comes this topic. I got the same error as you. But setting lenient to true makes it work. I understand based on the article below, is that it will not make it 100% correct but good enough for display. (Which is good enough for me). https://docs.geotools.org/stable/userguide/faq.html#q-bursa-wolf-parameters-required Edit: Missed the link.. |
Ahh I was getting mixed up with I'd like to move the sources to accept individual arguments like What do you think in the meantime what if we log a warning in this case and retry with lenient=true? So at least it will accept the input but let you know there might be issues? Do you have a minimal shapefile that reproduces this case that I could include in the repo as a test case? |
I understand. But doing it as a fallback with a warning would be a simple solution that would work fine for my purposes. Nice! |
Is your feature request related to a problem? Please describe.
I'm using the shape file linked below. But the reader as it is now does not accept the file as ShapefileReader currently is implemented.
https://geodata.naturvardsverket.se/nedladdning/friluftsliv/Anordningar_shp.zip
Just as FYI that shape originates from Sweden's Environmental Protection Agencys open data.
Describe the solution you'd like
ShapefileReader:56 changed from
transformToLatLon = CRS.findMathTransform(src, dest);
totransformToLatLon = CRS.findMathTransform(src, dest, true);
solves the issue. However not everyone will want to have it this so and option is probably needed.Describe alternatives you've considered
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered: