NASAWorldWind / WorldWindJava

The NASA WorldWind Java SDK (WWJ) is for building cross-platform 3D geospatial desktop applications in Java.
718 stars 327 forks source link

Angle out of Range Error #281

Open geoffyG opened 4 months ago

geoffyG commented 4 months ago

Description

Whenever I try to run the Shapefiles.java example with an Ocean or Bathymetry shapefile, I get an error that the "angle is out of range at 90.00000006".

Steps to Reproduce

  1. Open the run-demo.bat file
  2. Make sure the demo that will be running is the Shapefile example
  3. In the Shapefile.java file, make sure to replace the given shapefile with any ocean or bathymetry shapefile from Natural Earth Data.
  4. Run the 'run-demo.bat' file

Expected behavior: The shapefile should appear on the globe, with the shapefile name listed on the left and it's checkbox checked.

Actual behavior: The shapefile name is listed with the others, and the checkbox is checked, but nothing is projected onto the globe. When the mouse passes over the globe, an error message is produced in the terminal multiple times that says, "SEVERE: Angle out of range 90.0000000000001°".

Reproduces how often: It happens every time an ocean or bathymetry shapefile is run in the Shapefile.java file. Depending on which shapefile is run, the number of degrees past 90 will be different, but always the same for the same shapefile.

Operating System and Version

Running on Visual Studio Code version 1.87.0 in Java

I'm assuming the cause of the error is in how WorldWind Java reads in the shapefile data, as I can't find anyone else who has had this error running those same shapefiles on other systems, but I could be wrong.