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

Angle out of range error #912

Open
geoffyG opened this issue May 13, 2024 · 7 comments
Open

Angle out of range error #912

geoffyG opened this issue May 13, 2024 · 7 comments

Comments

@geoffyG
Copy link

geoffyG commented May 13, 2024

Whenever I try running certain shape files in the Shapefiles.java example, I get the error,
gov.nasa.worldwind.util.Tile computeRow
"SEVERE: Angle out of range 90.00020582366386°"

It always happens with ocean and bathymetry shape files. I haven't been able to find a way to fix it and I'm wondering if anyone else has run into this problem?

@nvkelso
Copy link
Owner

nvkelso commented May 13, 2024

Have you tried processing them with a buffer(0)?

@geoffyG
Copy link
Author

geoffyG commented May 14, 2024

I'm not sure I understand how to do that. Would that be something I add to the run-demo.bat file?

@nvkelso
Copy link
Owner

nvkelso commented May 14, 2024

Use a library like Shapely, or QGIS desktop app also includes a buffer function.

@geoffyG
Copy link
Author

geoffyG commented May 14, 2024

I'll see if I can configure the Shapely library to run with java. I couldn't get the QGIS desktop app to work

@nvkelso
Copy link
Owner

nvkelso commented May 14, 2024

If you're in Java then try https://www.osgeo.org/projects/geos/ to do the buffer?

@nvkelso
Copy link
Owner

nvkelso commented May 14, 2024

It could also be a clipping issue, that you need to clip these themes to a ±180, ±90 bounding box? Instead of "angle" it may be "extent"?

@geoffyG
Copy link
Author

geoffyG commented May 15, 2024

It's weird because I can get the land shapefiles to work, but ocean and bathymetry shapefiles all have this error. They are being projected onto a globe, but it doesn't make sense as to why they go past 90 degrees. Right now, I'm thinking there is something wrong with the data in the shapefiles, or there is something wrong with how they are being read in. I'll look into the osgeo link today and see what I can find

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