Using WMS in script

LPlateAndy
Global Mapper UserTrusted User
Hi Mike,
Is it possible to run scripts for exporting raster imagery based on a WMS?
I saw mention of terraserver in the scripting but we're using another source (which we're licensed to resell). I tried using a gmw file with the layer already in but that didn't help.
Thanks in advance!
Andy
Is it possible to run scripts for exporting raster imagery based on a WMS?
I saw mention of terraserver in the scripting but we're using another source (which we're licensed to resell). I tried using a gmw file with the layer already in but that didn't help.
Thanks in advance!
Andy
Comments
-
Andy,
Yes there is an (undocumented) IMPORT_WMS command that you can use in a script. Here is a sample from a GMW file that I saved:
IMPORT_WMS WMS_SERVER_URL="http://isse.cr.usgs.gov/arcgis/services/Combined/USGS_EDC_Ortho_NAIP/MapServer/WMSServer" \
WMS_SERVICE="WMS" WMS_LAYER="0" LAT_LON_BOUNDS="-105.29852685,40.00096806,-105.25995115,40.03051194" \
CENTER_LABEL="boulder, co" LAYER_DESC="NAIP Color Imagery for US (1m Resolution)"
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Thanks Mike, will definitely be bearing that one in mind...
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