Modify

Opened 2 months ago

Closed 2 months ago

Last modified 2 months ago

#23990 closed defect (fixed)

Unable to detect CRS for shapefiles

Reported by: nkamapper Owned by: team
Priority: normal Milestone:
Component: Plugin geotools Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Download a shape file, for example at the bottom of this page: https://kartkatalog.miljodirektoratet.no/Dataset/Details/501?lang=en-us
  2. Open file in JOSM

What is the expected result?

Dataset converted to 4326 projection

What happens instead?

JOSM is unable to detect CRS (in this case it was UTM 33N).
Lately JOSM has not been able to detect CRS from many sources.

Please provide any additional information below. Attach a screenshot if possible.

Revision:19230
Build-Date:2024-10-02 11:43:24

Identification: JOSM/1.5 (19230 en_GB) Mac OS X 14.7
OS Build number: macOS 14.7 (23H124)
Memory Usage: 2624 MB / 18432 MB (1511 MB allocated, but free)
Java version: 21.0.4+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 1 1710x1107x32bpp@60Hz (scaling 2.00×2.00)
Maximum Screen Size: 1710×1107
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_GB
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=19230, -XX:MaxRAMPercentage=75.0, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=/Applications/JOSM.app/Contents/MacOS/JOSM]

Plugins:
+ apache-commons (36282)
+ ejml (36176)
+ geotools (36273)
+ jackson (36273)
+ jaxb (36118)
+ jts (36004)
+ opendata (36343)
+ todo (139)
+ utilsplugin2 (36344)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1

Last errors/warnings:
- 01416.294 W: JCS - Silent failure during download: https://tile.openstreetmap.org/17/67565/38810.png
- 08084.657 W: org.openstreetmap.josm.data.osm.search.SearchParseError: Missing parameter for OR
- 08090.511 W: org.openstreetmap.josm.data.osm.search.SearchParseError: Missing parameter for OR
- 12173.523 E: org.openstreetmap.josm.plugins.opendata.core.io.geographic.GeoCrsException: Unable to detect CRS !
- 12173.523 E: org.openstreetmap.josm.io.IllegalDataException: java.io.IOException: org.openstreetmap.josm.plugins.opendata.core.io.geographic.GeoCrsException: Unable to detect CRS !. Cause: java.io.IOException: org.openstreetmap.josm.plugins.opendata.core.io.geographic.GeoCrsException: Unable to detect CRS !. Cause: org.openstreetmap.josm.plugins.opendata.core.io.geographic.GeoCrsException: Unable to detect CRS !
- 12173.542 E: Error - <html>Could not read file 'fjordkatalogen_omrade.shp'.<br>Error is:<br>java.io.IOException: org.openstreetmap.josm.plugins.opendata.core.io.geographic.GeoCrsException: Unable to detect CRS !</html>

Attachments (0)

Change History (6)

comment:1 by taylor.smock, 2 months ago

Component: CorePlugin opendata

comment:2 by taylor.smock, 2 months ago

Component: Plugin opendataPlugin geotools

+ geotools (36273)

Please update plugins. The file loads properly with geotools r36349/osm and opendata r36343/osm.

comment:3 by taylor.smock, 2 months ago

Resolution: fixed
Status: newclosed

comment:4 by nkamapper, 2 months ago

I updated plugins - geo tools is now 36349 - and restartet JOSM.
However, there are now new error messages:

Last errors/warnings:
- 00041.710 E: org.openstreetmap.josm.io.IllegalDataException: java.io.IOException: java.lang.RuntimeException: java.nio.file.FileSystemException: ${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf: Operation not permitted. Cause: java.io.IOException: java.lang.RuntimeException: java.nio.file.FileSystemException: ${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf: Operation not permitted. Cause: java.lang.RuntimeException: java.nio.file.FileSystemException: ${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf: Operation not permitted. Cause: java.nio.file.FileSystemException: ${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf: Operation not permitted
- 00041.720 E: Error - <html>Could not read file 'fjordkatalogen_omrade.shp'.<br>Error is:<br>java.io.IOException: java.lang.RuntimeException: java.nio.file.FileSystemException: ${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf: Operation not permitted</html>
- 00062.360 E: org.openstreetmap.josm.io.IllegalDataException: java.io.IOException: java.lang.RuntimeException: java.nio.file.FileSystemException: ${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf: Operation not permitted. Cause: java.io.IOException: java.lang.RuntimeException: java.nio.file.FileSystemException: ${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf: Operation not permitted. Cause: java.lang.RuntimeException: java.nio.file.FileSystemException: ${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf: Operation not permitted. Cause: java.nio.file.FileSystemException: ${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf: Operation not permitted
- 00062.410 E: Error - <html>Could not read file 'fjordkatalogen_omrade.shp'.<br>Error is:<br>java.io.IOException: java.lang.RuntimeException: java.nio.file.FileSystemException: ${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf: Operation not permitted</html>

comment:5 by taylor.smock, 2 months ago

Those error messages read like permission issues with the file in question (${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf: Operation not permitted).

Check macOS settings -> Privacy & Security -> Files and Folders -> JOSM -> Downloads Folder.

Either that, or the permissions on the file have been set incorrectly. I'd use chmod u+rw ${HOME}/Downloads/fjordkatalogen_omrade/fjordkatalogen_omrade.dbf to ensure your user can read it.

comment:6 by nkamapper, 2 months ago

Thank you, JOSM did not have access to the downloads folder, for some reason.
All good now.

Last edited 2 months ago by nkamapper (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.