Difference between revisions of "Tiled imagery layer"

From OSGeo
Jump to navigation Jump to search
(Link to tiling category)
 
(9 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
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.
 
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.
  
<nowiki>
+
MAP
MAP
+
  EXTENT -180 -90 180 90
  EXTENT -180 -90 180 90
+
  IMAGECOLOR 255 255 255
  IMAGECOLOR 255 255 255
+
  IMAGETYPE png
  IMAGETYPE png
+
  SIZE 500 500
  SIZE 500 250
+
  STATUS ON
  STATUS ON
+
  UNITS DD
  UNITS DD
+
  NAME "World Demo"
  NAME "World Demo"
+
 
+
  OUTPUTFORMAT
  OUTPUTFORMAT
+
    NAME png
    NAME png
+
    MIMETYPE image/png
    MIMETYPE image/png
+
    DRIVER GD/PNG
    DRIVER GD/PNG
+
    EXTENSION png
    EXTENSION png
+
    IMAGEMODE PC256
    IMAGEMODE PC256
+
    TRANSPARENT FALSE
    TRANSPARENT FALSE
+
  END
  END
+
  OUTPUTFORMAT
 
+
    NAME "jpeg"
  PROJECTION
+
    MIMETYPE "image/jpeg"
    "init=epsg:4326"
+
    DRIVER "GD/JPEG"
  END
+
    EXTENSION "jpg"
  LEGEND
+
    IMAGEMODE RGB
      IMAGECOLOR 255 255 255
+
    TRANSPARENT FALSE
    KEYSIZE 18 12
+
  END
    KEYSPACING 5 5
+
    LABEL
+
  PROJECTION
      SIZE MEDIUM
+
    "init=epsg:4326"
      TYPE BITMAP
+
  END
      BUFFER 0
+
  LEGEND
      COLOR 0 0 89
+
      IMAGECOLOR 255 255 255
      FORCE FALSE
+
    KEYSIZE 18 12
      MINDISTANCE -1
+
    KEYSPACING 5 5
      MINFEATURESIZE -1
+
    LABEL
      OFFSET 0 0
+
      SIZE MEDIUM
      PARTIALS TRUE
+
      TYPE BITMAP
    END
+
      BUFFER 0
    POSITION LL
+
      COLOR 0 0 89
    STATUS ON
+
      FORCE FALSE
  END
+
      MINDISTANCE -1
 
+
      MINFEATURESIZE -1
  QUERYMAP
+
      OFFSET 0 0
      COLOR 255 0 0
+
      PARTIALS TRUE
    SIZE -1 -1
+
    END
    STATUS OFF
+
    POSITION LL
    STYLE HILITE
+
    STATUS ON
  END
+
  END
 
+
  REFERENCE
+
  QUERYMAP
    COLOR -1 -1 -1
+
      COLOR 255 0 0
    EXTENT -180 -90 180 90
+
    SIZE -1 -1
    IMAGE "../htdocs/images/world_key.png"
+
    STATUS OFF
    OUTLINECOLOR 255 0 0
+
    STYLE HILITE
    SIZE 240 120
+
  END
    STATUS ON
+
      MARKER 0
+
  REFERENCE
      MARKERSIZE 0
+
    COLOR -1 -1 -1
      MINBOXSIZE 3
+
    EXTENT -180 -90 180 90
      MAXBOXSIZE 0
+
    IMAGE "../htdocs/images/world_key.png"
  END
+
    OUTLINECOLOR 255 0 0
 
+
    SIZE 240 120
  SCALEBAR
+
    STATUS ON
      BACKGROUNDCOLOR 0 0 0
+
      MARKER 0
      COLOR 255 255 255
+
      MARKERSIZE 0
    IMAGECOLOR 255 255 255
+
      MINBOXSIZE 3
    INTERVALS 5
+
      MAXBOXSIZE 0
    LABEL
+
  END
      SIZE SMALL
+
      TYPE BITMAP
+
  SCALEBAR
      BUFFER 0
+
      BACKGROUNDCOLOR 0 0 0
      COLOR 0 0 0
+
      COLOR 255 255 255
      FORCE FALSE
+
    IMAGECOLOR 255 255 255
      MINDISTANCE -1
+
    INTERVALS 5
      MINFEATURESIZE -1
+
    LABEL
      OFFSET 0 0
+
      SIZE SMALL
      PARTIALS TRUE
+
      TYPE BITMAP
      POSITION CR
+
      BUFFER 0
    END
+
      COLOR 0 0 0
      OUTLINECOLOR 0 0 0
+
      FORCE FALSE
    POSITION LL
+
      MINDISTANCE -1
    SIZE 250 3
+
      MINFEATURESIZE -1
    STATUS ON
+
      OFFSET 0 0
    STYLE 0
+
      PARTIALS TRUE
    TRANSPARENT TRUE
+
      POSITION CR
    UNITS KILOMETERS
+
    END
  END
+
      OUTLINECOLOR 0 0 0
 
+
    POSITION LL
  WEB
+
    SIZE 250 3
    IMAGEPATH "/tmp/"
+
    STATUS ON
    IMAGEURL "/tmp/"
+
    STYLE 0
      METADATA
+
    TRANSPARENT TRUE
        "original_projection" "init=epsg:4326"
+
    UNITS KILOMETERS
        "original_extents"  "-180,-90,180,90"
+
  END
      END
+
    QUERYFORMAT text/html
+
  WEB
  END
+
    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"  "BMNG"
 +
        "wms_formatlist"  "image/png,image/gif,image/jpeg,image/wbmp"
 +
        "wms_format"  "image/jpeg"
 +
        "wms_server_version"  "1.1.1"
 +
        "wms_title" "BMNG"
 +
      END
 +
    NAME "BMNG"
 +
    GROUP "imagery"
 +
    SIZEUNITS PIXELS
 +
    STATUS ON
 +
    MINSCALE 1000000
 +
    TOLERANCE 0
 +
    TOLERANCEUNITS PIXELS
 +
    TYPE RASTER
 +
  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"
 +
    GROUP "imagery"
 +
    SIZEUNITS PIXELS
 +
    STATUS ON
 +
    MAXSCALE 1000000
 +
    MINSCALE 24000
 +
    TOLERANCE 0
 +
    TOLERANCEUNITS PIXELS
 +
    TYPE RASTER
 +
  END
 
   LAYER
 
   LAYER
    CONNECTION "http://sigma.openplans.org:3128/geoserver/wms?styles=&"
+
    PROJECTION "init=EPSG:4326"
    CONNECTIONTYPE WMS
+
    NAME "URBANAREAMPLS"
      METADATA
+
    TYPE RASTER
        "wms_srs" "EPSG:4326"
+
    STATUS ON
        "wms_onlineresource"  "http://sigma.openplans.org:3128/geoserver/wms?"
+
    MAXSCALE 24000
        "wms_name"  "topp:major_roads,topp:roads,topp:poly_landmarks,topp:states,topp:water_shorelines"
+
    MINSCALE 800
        "wms_formatlist"  "image/png,image/gif,image/jpeg,image/wbmp"
+
    CONNECTION "http://gisdata.usgs.gov/servlet/com.esri.wms.Esrimap?WMTVER=1.1.1&ServiceName=USGS_EDC_Ortho_Urban&layers=Apr_2004_0.3m_Color_Minneapolis-StPaul_index&format=png"
        "wms_format"  "image/png"
+
    CONNECTIONTYPE WMS
        "wms_server_version" "1.1.0"
+
    METADATA
        "wms_title" "TIGER"
+
      "wms_srs"             "EPSG:4326"
      END
+
      "wms_title"         "Apr_2004_0.3m_Color_Minneapolis-StPaul_index"
    NAME "TIGER"
+
      "wms_connectiontimeout" "1000"
    SIZEUNITS PIXELS
+
    END
    STATUS ON
+
   END  
    TOLERANCE 0
+
END
    TOLERANCEUNITS PIXELS
 
    TYPE RASTER
 
    UNITS METERS
 
   END
 
 
 
END
 
  
  
</nowiki>
+
[[Category:Tiling]]

Latest revision as of 01:11, 25 February 2010

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 500
  STATUS ON
  UNITS DD
  NAME "World Demo"

  OUTPUTFORMAT
    NAME png
    MIMETYPE image/png
    DRIVER GD/PNG
    EXTENSION png
    IMAGEMODE PC256
    TRANSPARENT FALSE
  END
  OUTPUTFORMAT
    NAME "jpeg"
    MIMETYPE "image/jpeg"
    DRIVER "GD/JPEG"
    EXTENSION "jpg"
    IMAGEMODE RGB
    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"  "BMNG"
        "wms_formatlist"  "image/png,image/gif,image/jpeg,image/wbmp"
        "wms_format"  "image/jpeg"
        "wms_server_version"  "1.1.1"
        "wms_title" "BMNG"
      END
    NAME "BMNG"
    GROUP "imagery"
    SIZEUNITS PIXELS
    STATUS ON
    MINSCALE 1000000
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    TYPE RASTER 
  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"
    GROUP "imagery"
    SIZEUNITS PIXELS
    STATUS ON
    MAXSCALE 1000000
    MINSCALE 24000
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    TYPE RASTER 
  END
 LAYER
    PROJECTION "init=EPSG:4326"
    NAME "URBANAREAMPLS"
    TYPE RASTER
    STATUS ON
    MAXSCALE 24000
    MINSCALE 800
    CONNECTION "http://gisdata.usgs.gov/servlet/com.esri.wms.Esrimap?WMTVER=1.1.1&ServiceName=USGS_EDC_Ortho_Urban&layers=Apr_2004_0.3m_Color_Minneapolis-StPaul_index&format=png"
    CONNECTIONTYPE WMS
    METADATA
      "wms_srs"             "EPSG:4326"
      "wms_title"          "Apr_2004_0.3m_Color_Minneapolis-StPaul_index"
      "wms_connectiontimeout" "1000"
    END
 END    
END