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.9K All Categories
- 5.8K Features Discussion
- 349 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 651 GM Script Language
- 55 User Scripts
- 115 GPS Features
- 420 Projection Questions
- 834 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 181 Announcement and News
- 934 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 578 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 109 Global Mapper Forum Website
