Modify

Opened 8 years ago

Closed 8 years ago

#8254 closed enhancement (fixed)

Need a "get-capabibilty" - type bookmark for wms

Reported by: iav Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: wms bookmark Cc:

Description

Need a way to add into layers menu bookmark for a "GetCapabilities" - type wms query. Result of this query should open as a sub-menu of bookmark menu.

For example, I'd like to add bookmark for Geofabric layers http://tools.geofabrik.de/osmi/view/addresses/wxs?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities - and then chose layers draving time.

Same for local server where I place planning documents aligned with qgis and then shared with mapserver - now I need to add every new plan into bookmarks manually, and have very long menu with all my plans.

Attachments (1)

newwms.png (14.1 KB) - added by simon04 8 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 8 years ago by stoecker

See also #7953.

Changed 8 years ago by simon04

Attachment: newwms.png added

comment:2 Changed 8 years ago by simon04

Work in progress … As I needed to refactor a lot of WMS/TMS code, a different, (slimmer?, cleaner?) UI for adding a new layer was little effort. I hope you like it. :-)


comment:3 Changed 8 years ago by iav

Yes, looks good.
Hope it will copy layer description from server in case nothing typed in name field? :)

comment:4 Changed 8 years ago by stoecker

Please also handle #7953. While capabilities based selection is fine I think hand-tuning <layer> is necessary as well, as we are not always allowed to use all layers. I would like to have a "sub-menu to select layers" and otherwise use default layers for WMS entries. Also <layer> could be used for "useful layer groups".

One ugly part in UI becoming better. Fine. Never liked the WMS-UI, but it was better than the previous state...

comment:5 Changed 8 years ago by Don-vip

Ah nice. I don't like the current UI neither and was thinking for a long time to change it. One thing I'd like to see is a live preview of the layers bounds, without having to click on the "see bounds" button. Something like the bounds preview of imagery sources in the preferences.

comment:6 Changed 8 years ago by Don-vip

One other thing: when a single layer is selected, prefill the name with the name given by the WMS server.

comment:7 Changed 8 years ago by Don-vip

Check also if it works if the user clicks twice on the "get layers" button The current behaviour is disturbing :)

comment:8 in reply to:  4 Changed 8 years ago by simon04

Replying to stoecker:

Please also handle #7953. While capabilities based selection is fine I think hand-tuning <layer> is necessary as well, as we are not always allowed to use all layers. I would like to have a "sub-menu to select layers" and otherwise use default layers for WMS entries. Also <layer> could be used for "useful layer groups".

On the one hand this brings some complication as each layer may have different SRSes. On the other hand I don't really see the point in this feature: naïvely I'd say that you want to either add a fully predefined background imagery (as the current WMS layers) or chose an arbitrary selection of the provided layers. Your suggested subselection could also be implemented in terms of string manipulation. I think I'll leave out this feature for now …

Last edited 8 years ago by simon04 (previous) (diff)

comment:9 Changed 8 years ago by simon04

In 5617/josm:

see #8254 - new imagery entry wms_endpoint: Store WMS endpoint only, select layers at usage

comment:10 Changed 8 years ago by simon04

This is a working implementation for the basic feature. To be done:

  • suggesting layer name
  • separate icons (now the plus is used twice in the preference dialog)
  • discuss #7953
  • live bounds preview (I personally do not consider this particularly important since I typically know in advance the region of the WMS layer I'm currently adding)
  • test/investigate: click twice on the "get layers" button

comment:11 Changed 8 years ago by simon04

In 5618/josm:

see #8254 - adapt maps.xsd for wms_endpoint

comment:12 Changed 8 years ago by simon04

In 5650/josm:

see #8254 - suggest WMS layer name based on selection

comment:13 Changed 8 years ago by simon04

Resolution: fixed
Status: newclosed

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.