Global Mapper v25.0

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

BurroWrangler
BurroWrangler Global Mapper UserTrusted User
edited October 2013 in SDK
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

Comments

  • BurroWrangler
    BurroWrangler Global Mapper User Trusted User
    edited October 2013
    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
  • global_mapper
    global_mapper Administrator
    edited October 2013
    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