SDK Support for WMS and WFS services not listed in global mapper

BurroWrangler
Global Mapper UserTrusted User
Mike,
Does the Global Mapper SDK support WMS and WFS services that are not listed in the global mapper interface? For example, if I go to global mapper | Download Onliine Imagery... | Add New Source | WMS (Web Map Service) (select OK) | and enter the following for the Server URL: https://hazards.fema.gov/gis/nfhl/services/public/NFHLWMS/MapServer/WMSServer I get a list of Web Map layers that are available. Is there a way for me to specify a WMS server address and then get a list of a layers back that I can use in my application? If not, this would be a helpful feature.
The same feature would be useful for WFS data. The URL I am getting WFS data from is https://hazards.fema.gov/gis/nfhl/services/public/NFHL/MapServer/WFSServer
Thanks,
Chris
Does the Global Mapper SDK support WMS and WFS services that are not listed in the global mapper interface? For example, if I go to global mapper | Download Onliine Imagery... | Add New Source | WMS (Web Map Service) (select OK) | and enter the following for the Server URL: https://hazards.fema.gov/gis/nfhl/services/public/NFHLWMS/MapServer/WMSServer I get a list of Web Map layers that are available. Is there a way for me to specify a WMS server address and then get a list of a layers back that I can use in my application? If not, this would be a helpful feature.
The same feature would be useful for WFS data. The URL I am getting WFS data from is https://hazards.fema.gov/gis/nfhl/services/public/NFHL/MapServer/WFSServer
Thanks,
Chris
Comments
-
Mike,
It looks like you write a user_online_sources.xml file as well as a recent_wfs_servers.txt and a recent_wms_servers.txt file that I can use to specify these as default web services. I was thinking that I could put these files with the servers and services I want hard-coded into the .xml file in my installation directory. I tried this and it seems to work for my application. Would you recommend this approach?
Thanks,
Chris -
Chris,
Yes I would recommend using the user_online_sources.xml file. If that is included with the sources added (the others are just for pre-filling the dialog when adding a new source) then you can reference them by name with GM_LoadOnlineLayer.
Thanks,
Mike
Global Mapper Guru
geohelp@bluemarblegeo.com
Global Mapper
Categories
- 12.5K All Categories
- 5.5K Features Discussion
- 314 Downloading Imagery
- 1.3K Elevation Data
- 377 Georeferencing Imagery Discussion
- 611 GM Script Language
- 50 User Scripts
- 112 GPS Features
- 397 Projection Questions
- 803 Raster Data
- 1.3K Vector Data
- 6.5K Support
- 161 Announcement and News
- 893 Bug Report
- 557 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 542 Other Discussion
- 128 GIS Data Sources
- 26 Global Mapper Showcase
- 229 How I use Global Mapper
- 104 Global Mapper Forum Website