Tiled imagery layer

From OSGeo
Revision as of 08:20, 29 June 2006 by Wiki-Crschmidt (talk | contribs) (→‎Multi-Res Tiled Imagery: i hate wikitext)
Jump to navigation Jump to search

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://sigma.openplans.org:3128/geoserver/wms?styles=&"
    CONNECTIONTYPE WMS
      METADATA
        "wms_srs" "EPSG:4326"
        "wms_onlineresource"  "http://sigma.openplans.org:3128/geoserver/wms?"
        "wms_name"  "topp:major_roads,topp:roads,topp:poly_landmarks,topp:states,topp:water_shorelines"
        "wms_formatlist"  "image/png,image/gif,image/jpeg,image/wbmp"
        "wms_format"  "image/png"
        "wms_server_version"  "1.1.0"
        "wms_title" "TIGER"
      END
    NAME "TIGER"
    SIZEUNITS PIXELS
    STATUS ON
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    TYPE RASTER 
    UNITS METERS
  END

END