Modify ↓
Opened 4 years ago
Last modified 4 years ago
#21984 new defect
.zip file in session file isn't reopened
| Reported by: | pyrog | Owned by: | Don-vip |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin opendata | Version: | tested |
| Keywords: | template_report session shp zip | Cc: |
Description
What steps will reproduce the problem?
- Add a zip file to a new layer (here it contain a shapefile)
- Save the session
- Close JOSM
- Reopen JOSM
- Open the session file
What is the expected result?
Objects contained in the zip file should be loaded.
What happens instead?
JOSM display No data found in file '/Users/pyrog/Downloads/PDIPR ECLA.zip'
Please provide any additional information below. Attach a screenshot if possible.
Sample session file:
<?xml version="1.0" encoding="utf-8"?> <josm-session version="0.1"> <viewport> <center lat="46.557291654119595" lon="6.144598643788585"/> <scale meter-per-pixel="0.044684"/> </viewport> <projection> <projection-choice> <id>core:mercator</id> <parameters/> </projection-choice> <code>EPSG:3857</code> </projection> <layers active="1"> <layer index="1" name="Hiking routes" type="osm-data" version="0.1" visible="true"> <file>layers/01/data.osm</file> </layer> <layer index="2" name="PDIPR ECLA.zip" type="open-data" version="0.1" visible="true"> <file>file:/Users/pyrog/Downloads/PDIPR%20ECLA.zip</file> </layer> </layers> </josm-session>
Revision:18360
Build-Date:2022-01-02 23:56:48
Identification: JOSM/1.5 (18360 en_GB) Mac OS X 11.2
OS Build number: macOS 12.2.1 (21D62)
Memory Usage: 1109 MB / 2048 MB (353 MB allocated, but free)
Java version: 17.0.1+12-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69732928 1280×800 (scaling 2.00×2.00)
Maximum Screen Size: 1280×800
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=18360, --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]
Dataset consistency test: No problems found
Plugins:
+ FastDraw (35893)
+ PicLayer (1.0.2)
+ apache-commons (35893)
+ apache-http (35893)
+ buildings_tools (35929)
+ cadastre-fr (35893)
+ contourmerge (v0.1.8)
+ ejml (35893)
+ geotools (35906)
+ gridify (1606242219)
+ javafx (35807)
+ jaxb (35893)
+ jna (35893)
+ jts (35893)
+ log4j (35893)
+ opendata (35910)
+ osmwiki-dataitem (1.2.3)
+ photo_geotagging (35893)
+ photoadjust (35893)
+ pt_assistant (1ff2e15)
+ reverter (35893)
+ scripting (30798)
+ utilsplugin2 (35893)
+ wikipedia (605)
Map paint styles:
- ${HOME}/Downloads/Styles_ColourGPSData-style.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Osmc&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/NumberedWalkingNodeNetworks&zip=1
+ ${HOME}/Downloads/Guidepost.mapcss
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_style_JOSM/master/Styles_Traffic_signs_EUR_OC.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/NumberedCycleNodeNetworks&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/NumberedWalkingNodeNetworks&zip=1
Last errors/warnings:
- 00041.297 W: Can't use layer RGEALTI-MNT_PYR-ZIP_FXX_LAMB93_WMTS1 because no supported formats where found. Layer is available in formats: image/x-bil;bits=32
- 00041.298 W: Can't use layer RGEALTI-MNT_PYR-ZIP_FXX_LAMB93_WMTS2 because no supported formats where found. Layer is available in formats: image/x-bil;bits=32
- 00041.299 W: Can't use layer Modèle Numérique de Terrain issu du RGEALTI because no supported formats where found. Layer is available in formats: image/x-bil;bits=32
- 00041.300 W: Can't use layer RGEALTI-MNT_PYR-ZIP_WLD_WGS84G_WMTS_20180326 because no supported formats where found. Layer is available in formats: image/x-bil;bits=32
- 00041.301 W: Can't use layer Modèle Numérique de Terrain issu du RGEALTI because no supported formats where found. Layer is available in formats: image/x-bil;bits=32
- 00041.304 W: Can't use layer RUE_FEMININE because no supported formats where found. Layer is available in formats: application/x-protobuf
- 00041.307 W: Can't use layer MNT SRTM3 because no supported formats where found. Layer is available in formats: image/x-bil;bits=32
- 00041.308 W: Can't use layer MNT SRTM3 because no supported formats where found. Layer is available in formats: image/x-bil;bits=32
- 00160.802 E: org.openstreetmap.josm.io.IllegalDataException: Line 1 column 1: Premature end of file.. Cause: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
- 00160.975 E: Error - <html>Could not read file 'Data Layer 133_20220216_193253222.osm'.<br>Error is:<br>Line 1 column 1: Premature end of file.</html>
Attachments (0)
Change History (1)
comment:1 by , 4 years ago
| Component: | Core → Plugin opendata |
|---|---|
| Keywords: | session shp zip added |
| Owner: | changed from to |
| Version: | → tested |
Note:
See TracTickets
for help on using tickets.



The session file doesn't contain any information which file inside the ZIP was actually opened.
Temporary fix: Include the layer in the *.joz archive when saving the session.