Opened 16 years ago
Closed 13 years ago
#2961 closed defect (fixed)
Saving/Loading a WMS Layer: Usabilty is not quiet good
Reported by: | vsandre | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core imagery | Version: | latest |
Keywords: | wms saving loading | Cc: |
Description
WMS-Plugin: 16442 but also earlier
You can save a WMS-Layer via right-click. But in wich format is it saved?
The problem is that you are not able to load it back to JOSM neither via File -> Open nor the layer menu.
Attachments (0)
Change History (12)
follow-up: 2 comment:1 by , 16 years ago
comment:2 by , 16 years ago
Summary: | Saving/Loading a WMS Layer does not work → Saving/Loading a WMS Layer: Usabilty is not quiet good |
---|---|
Type: | defect → enhancement |
Replying to Landwirt:
It works for me. Open a data layer, if there is none, load some data, open a new blank WMS layer, load the .wms file via the layer menu.
Ok, you are right. Ok ignored the the menu entry "new blank WMS layer" and with a already opened WMS-Layer it did not work when I tried it. But now it does. :-)
I changed from defect to enhancement, because I think it would be more usable if you could load/save it directly with JOSM or via the WMS-Menu. Is the entry "new blank WMS layer" only for this circumstance? When yes it should be renamed/reprogrammed to "opene a new WMS layer from a file..." and the rightclick menu entry should be deleted.
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Should be fixed in [o17397] (requires JOSM r2020)
follow-up: 7 comment:5 by , 14 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
this is still very confusing. as the op says: you can save a wms layer via right click on the wms layer in the layer list. but then:
- you cannot open the saved file via file > open, even though the *.wms extension is listed there (there is a [osm:source:applications/editors/josm/plugins/wmsplugin/src/wmsplugin/io/WMSLayerImporter.java WMSLayerImporter], but it doesn't implement importData() (then why is it there?))
- you can open the saved file via right click > "Load WMS layer from file" on a wms layer in the layer list. however,
- you need a (empty) wms layer first to access this command. imagine that for opening a osm or gpx file, you have to create a empty osm or gpx layer first!
- you can also do it on an existing, non-empty wms layer. but then this layer gets replaced with the content of the saved layer! what one would expect is that a new layer would be created; at least a warning should be given (every plain text editor does it like that).
- you cannot save a wms layer via file > save, even though the *.wms extension is listed there (see first point - there also is a
WMSLayerExporter
class that does not implementexportData()
)
my suggestions to make this usable:
- implement
WMSLayerImporter::importData()
andWMSLayerExporter::exportData()
(the code is already there inWMSLayer::LoadWmsAction::actionPerformed()
andWMSLayer::SaveWmsAction::actionPerformed()
) - remove "Load WMS layer from file" from the wms layer context menu
i've been trying to do this, but run into some problems when loading a saved wms layer into an empty workspace (WMSLayer()
assumes that there is a Main.map.mapView
already). i will try some more, but won't mind if someone beats me to it (also, getting any feedback on my other patches would help the motivation).
comment:6 by , 14 years ago
Priority: | minor → normal |
---|---|
Type: | enhancement → defect |
Version: | → latest |
ha - logged out again! last comment is mine. also changing to defect again and setting priority to normal (because in the current state wms layer import / export is unusable for an average user).
follow-up: 8 comment:7 by , 14 years ago
comment:8 by , 14 years ago
Replying to bastiK:
Please be a little patient, sometimes everyone is busy with other stuff, you will definitely get a reaction sooner or later.
sure, won't bother anymore. sorry if it came across like that, that was not my intention.
comment:11 by , 14 years ago
Component: | Core → Core imagery |
---|
It works for me. Open a data layer, if there is none, load some data, open a new blank WMS layer, load the .wms file via the layer menu.