MAPDEMO

From ICE Enterprises
Jump to navigation Jump to search

Demonstrates NeXtMidas Client-Side Mapping Capabilities

<URL>  - URL of the server to connect to [DEF=http://nextmidas.techma.com:...]
<TYPE> - Type of map server ("WMS","NMS","GMap") [DEF=WMS]

The NeXtMidas PLOT command supports connecting to several types of map servers.
These include:

  WMS  - OpenGIS-compatible Web Map Server (WMS version "1.1.1" or "1.3.0")
  NMS  - NeXtMidas Map Server (MAP option tree)
  GMap - Google Maps

Of these the most full-featured (and newest) is the WMS client. It features
individual layer selection, layer reordering, style selection, brightness and
contrast. All of these are configurable from a macro or from an easy-to-use
popup.

When the window comes up click the 'Configure' button to configure the WMS
maps. Note that, by default no maps are selected. Different WMS servers can
support numerous types of maps (charts, imagery, shape files, etc).

The GMap and NMS servers use a protocol that is more limited and does not
provide the clients with the same level of control. These clients come up
with a default set of imagery that has few configuration options.

For more information please see the PLOT explain file and please see the
mapdemo.mm macro in the MCR area of the SYS option tree.

WebStart:
  There is a sample JNLP file that can be used to launch this macro from
  Java Web Start. The file is located at $NMROOT/htdocs/mapdemo.jnlp. You
  will need to edit the file with the following changes before using it:

    (1) Change the "codebase" URL for the host server (line 17).
    (2) Change the "href" (relative to "codebase" or absolute URL) if the
        JNLP file is at a different location/name (line 18).
    (3) Change the URL for the map server in the argument tag enclosed within
        the application-desc tag (line 43).

  For more details on using Java Web Start to launch a NeXtMidas application,
  please see the "NeXtMidas User's Guide".

WMS Servers:
  There are a number of WMS servers available on the Internet, a few that
  are interesting include:

    Fulton County Government (http://wms.co.fulton.ga.us/wms/public)
      - Maps of streets and zoning information for Atlanta, GA.
      - Need to zoom in closely on Atlanta before anything will show up.

    Geography Network Canada (http://www.geographynetwork.ca/wmsconnector/
                               com.esri.wms.Esrimap/OBM_Full_I)
      - Maps of streets and public utilities around Toronto, ON.
      - Demonstrates connecting to an ESRI server.
      - Need to zoom in closely on Toronto before anything will show up.

    NASA World Wind (http://wms.jpl.nasa.gov/wms.cgi)
      - Imagery of the world and elevation data.
      - Demonstrates connecting to a NASA World Wind server.

    USGS EO see http://eoportal.cr.usgs.gov/EO/gis.php for updated URLs)
      - e.g. http://gisdata.usgs.gov/wmsconnector/com.esri.wms.Esrimap/&
               USGS_EDC_Ortho_StateLocal

  To debug your WMS server and see it's capabilities, append the following to
  the WMS URL "?SERVICE=WMS&REQUEST=GetCapabilities" and open it in your browser
  to see an XML document. e.g.
  http://nextmidas.techma.com:8888/wms/mapServer?SERVICE=WMS
         &REQUEST=GetCapabilities

Examples:
  1. Connect to OpenGIS-compatible Web Map Server (WMS):
       nM> mapdemo "http://nextmidas.techma.com:8888/wms/mapServer"

  2. Connect to NASA's WMS server:
       nM> mapdemo "http://wms.jpl.nasa.gov/wms.cgi" "WMS"

  3. Connect to NeXtMidas Map Server (NMS):
       nM> mapdemo "http://nextmidas.techma.com:8080/nms" "NMS"

  4. Connect to OGC-compatible Web Map Server (WMS):
       nM> mapdemo "http://nextmidas.techma.com:8800/wms/"

Switches:
  /LOOK=<look>  Change the look and feel on startup (for use via WebStart).

See Also: PLOT, nxm.sys.libg.LayerMap, nxm.sys.libg.LayerWMS