NoiseModelling icon indicating copy to clipboard operation
NoiseModelling copied to clipboard

NumberFormatException importing NoiseMap from OSM in GUI

Open georgemccrae opened this issue 6 months ago • 0 comments

If you ignore this issue template, we may not be able to answer your issue.

NoiseModelling version v4.0.5

Describe the bug I'm trying to import the NoiseMap from OSM in the GUI.

I'm getting the error Process failed during execution javax.script.ScriptException: java.lang.NumberFormatException: empty String java.lang.NumberFormatException: empty String empty String

The only two variables I have are: 🌍 Target projection identifier (also called SRID) of your table. I'm using EPSG:27700 (British National Grid) is indeed correct for Greater London when working with metric coordinates.

📂 Path of the OSM file, including its extension (.osm, .osm.gz or .osm.pbf). I'm using /Users/georgemccrae/Desktop/greater_london.osm.pbf which I've checked in Terminal: Use cat /Users/georgemccrae/Desktop/greater_london.osm.pbf to see if the file can be read & has the correct path

The NumberFormatException error suggests there might be an issue with how the SRID/ OSM file path is being input.

Remedies I've tried

  1. Ensure Correct Input Format: Double-check that you are entering 27700 as a plain integer, without any extra characters, spaces, or non-numeric symbols.

  2. Clear any Cached Values/ Restarted Application

  3. Test with Other SRIDs - I've used EPSG:3857 (Web Mercator, in meters) to see if the issue is with the specific SRID or something else.

Any ideas? Thanks

georgemccrae avatar Aug 24 '24 17:08 georgemccrae