#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?
- Download a shape file, for example at the bottom of this page: https://kartkatalog.miljodirektoratet.no/Dataset/Details/501?lang=en-us
- 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 , 2 months ago
Component: | Core → Plugin opendata |
---|
comment:2 by , 2 months ago
Component: | Plugin opendata → Plugin geotools |
---|
comment:3 by , 2 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 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 , 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 , 2 months ago
Thank you, JOSM did not have access to the downloads folder, for some reason.
All good now.
Please update plugins. The file loads properly with geotools r36349/osm and opendata r36343/osm.