Skip to content

GXP: Using Live WMS Maps

Trent Hare edited this page Apr 14, 2022 · 1 revision

GXP has been recently update to partial use our WMS services. This allows one to bring in full-res image base maps into the "Map View" window (at the bottom) or actually in a multi-port view.

Our WMSs service support longitudes ranges from -180 to 360 (540 degrees) to support both ranges (-180 to 180 and 0 to 360). Unfortunately this confuses GXP. Thus we will need to create services which only support -180 to 180 for each body we need to support. Currently we only have a Mars WMS configured for -180 to 180 long range. https://planetarymaps.usgs.gov/cgi-bin/mapserv?map=/maps/mars/mars_simp_cyl_GXP.map&service=WMS&request=GetCapabilities


So within the main workspace window, you can File - Open Web Service Layer. Now try these settings.

For the Map View (overview) window right click on "My Catalog" and select "Preferences". Under the VCT - select "Background". Under "reference Background", click "Web Service URL" and then click the "..." button. Fill out the form exactly as above. Once you hit "Apply" and toggle "My Catalog" on, a Mars backdrop should appear. Very nice to locate your image and DEM footprints on. Keeping this live map loaded for the Map View window within workspaces doesn't seem to take across GXP loads. You can also try to "autoload" it within GXP preferences.

TIP: If one always uses the same basemap, it is easy to override the built-in truemarble Earth basemap that comes with GXP. Just make sure your global geotiff is defined in degrees and then resample it to 21600x10800. Now backup the original files and write you new file with this name "TrueMarble-2km-21600x10800.tif" to the install directory "<INSTALL_PATH>\BAE SYSTEMS\SOCET GXP 4.2.0\Config\VCT\Maps\TrueMarble". Again a good idea to backup original files. Upon loading I think pyramids are rebuilt. Leave the *.cs file in there which defines the projection (I haven't tried to redefine it as Mars but since it is degrees it will re-project correctly).

for ESRI tile caches this can be used in GXP also: "agsrests://webgis2.wr.usgs.gov/arcgis/rest/services/Mars_color/MapServer/export?"