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.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website