Difference between revisions of "Tiled imagery layer"

From OSGeo
Jump to navigation Jump to search
Line 100: Line 100:
 
   
 
   
 
   LAYER
 
   LAYER
     CONNECTION "http://sigma.openplans.org:3128/geoserver/wms?styles=&"
+
     CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?"
 
     CONNECTIONTYPE WMS
 
     CONNECTIONTYPE WMS
 
       METADATA
 
       METADATA

Revision as of 08:33, 29 June 2006

Multi-Res Tiled Imagery

This is a page to create a mapfile to stick in front of Ka-Map's tile.php to cache tiles for a multi-resolution dataset to grab via wms the best resolution data possible for any particular area. Please add in a layer for any imagery you feel is missing.

MAP
  EXTENT -180 -90 180 90
  IMAGECOLOR 255 255 255
  IMAGETYPE png
  SIZE 500 250
  STATUS ON
  UNITS DD
  NAME "World Demo"

  OUTPUTFORMAT
    NAME png
    MIMETYPE image/png
    DRIVER GD/PNG
    EXTENSION png
    IMAGEMODE PC256
    TRANSPARENT FALSE
  END

  PROJECTION
    "init=epsg:4326"
  END
  LEGEND
      IMAGECOLOR 255 255 255
    KEYSIZE 18 12
    KEYSPACING 5 5
    LABEL
      SIZE MEDIUM
      TYPE BITMAP
      BUFFER 0
      COLOR 0 0 89
      FORCE FALSE
      MINDISTANCE -1
      MINFEATURESIZE -1
      OFFSET 0 0
      PARTIALS TRUE
    END
    POSITION LL
    STATUS ON
  END

  QUERYMAP
      COLOR 255 0 0
    SIZE -1 -1
    STATUS OFF
    STYLE HILITE
  END

  REFERENCE
    COLOR -1 -1 -1
    EXTENT -180 -90 180 90
    IMAGE "../htdocs/images/world_key.png"
    OUTLINECOLOR 255 0 0
    SIZE 240 120
    STATUS ON
      MARKER 0
      MARKERSIZE 0
      MINBOXSIZE 3
      MAXBOXSIZE 0
  END

  SCALEBAR
      BACKGROUNDCOLOR 0 0 0
      COLOR 255 255 255
    IMAGECOLOR 255 255 255
    INTERVALS 5
    LABEL
      SIZE SMALL
      TYPE BITMAP
      BUFFER 0
      COLOR 0 0 0
      FORCE FALSE
      MINDISTANCE -1
      MINFEATURESIZE -1
      OFFSET 0 0
      PARTIALS TRUE
      POSITION CR
    END
      OUTLINECOLOR 0 0 0
    POSITION LL
    SIZE 250 3
    STATUS ON
    STYLE 0
    TRANSPARENT TRUE
    UNITS KILOMETERS
  END

  WEB
    IMAGEPATH "/tmp/"
    IMAGEURL "/tmp/"
      METADATA
        "original_projection" "init=epsg:4326"
        "original_extents"  "-180,-90,180,90"
      END
    QUERYFORMAT text/html
  END

  LAYER
    CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?"
    CONNECTIONTYPE WMS
      METADATA
        "wms_srs" "EPSG:4326"
        "wms_onlineresource"  "http://wms.jpl.nasa.gov/wms.cgi?"
        "wms_name"  "modis,global_mosaic"
        "wms_formatlist"  "image/png,image/gif,image/jpeg,image/wbmp"
        "wms_format"  "image/jpeg"
        "wms_server_version"  "1.1.1"
        "wms_title" "NASA"
      END
    NAME "NASA"
    SIZEUNITS PIXELS
    STATUS ON
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    TYPE RASTER 
  END

END