[mapserver-commits] r8676 - in trunk/msautotest/wxs: . expected
svn at osgeo.org
svn at osgeo.org
Sun Mar 8 16:26:48 EDT 2009
Author: warmerdam
Date: 2009-03-08 16:26:48 -0400 (Sun, 08 Mar 2009)
New Revision: 8676
Added:
trunk/msautotest/wxs/expected/wms_rast_cap.xml
trunk/msautotest/wxs/wms_raster.map
Log:
test extent setting from raster data (#79)
Added: trunk/msautotest/wxs/expected/wms_rast_cap.xml
===================================================================
--- trunk/msautotest/wxs/expected/wms_rast_cap.xml (rev 0)
+++ trunk/msautotest/wxs/expected/wms_rast_cap.xml 2009-03-08 20:26:48 UTC (rev 8676)
@@ -0,0 +1,145 @@
+Content-type: application/vnd.ogc.wms_xml
+
+<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
+<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
+ [
+ <!ELEMENT VendorSpecificCapabilities EMPTY>
+ ]> <!-- end of DOCTYPE declaration -->
+
+<WMT_MS_Capabilities version="1.1.1" updateSequence="123">
+
+<Service>
+ <Name>OGC:WMS</Name>
+ <Title>Test simple wms</Title>
+ <KeywordList>
+ <Keyword>ogc</Keyword>
+ <Keyword>wms</Keyword>
+ <Keyword>mapserver</Keyword>
+ </KeywordList>
+ <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.mapserver.org/"/>
+ <ContactInformation>
+ <ContactPersonPrimary>
+ <ContactPerson>Tom Kralidis</ContactPerson>
+ <ContactOrganization>MapServer</ContactOrganization>
+ </ContactPersonPrimary>
+ <ContactPosition>self</ContactPosition>
+ <ContactAddress>
+ <AddressType>postal</AddressType>
+ <Address>123 SomeRoad Road</Address>
+ <City>Toronto</City>
+ <StateOrProvince>Ontario</StateOrProvince>
+ <PostCode>xxx-xxx</PostCode>
+ <Country>Canada</Country>
+ </ContactAddress>
+ <ContactVoiceTelephone>+xx-xxx-xxx-xxxx</ContactVoiceTelephone>
+ <ContactFacsimileTelephone>+xx-xxx-xxx-xxxx</ContactFacsimileTelephone>
+ <ContactElectronicMailAddress>tomkralidis at xxxxxxx.xxx</ContactElectronicMailAddress>
+ </ContactInformation>
+ <Fees>None</Fees>
+ <AccessConstraints>None</AccessConstraints>
+</Service>
+
+<Capability>
+ <Request>
+ <GetCapabilities>
+ <Format>application/vnd.ogc.wms_xml</Format>
+ <DCPType>
+ <HTTP>
+ <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Get>
+ <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Post>
+ </HTTP>
+ </DCPType>
+ </GetCapabilities>
+ <GetMap>
+ <Format>image/png</Format>
+ <Format>image/gif</Format>
+ <Format>image/png; mode=24bit</Format>
+ <Format>image/jpeg</Format>
+ <Format>image/vnd.wap.wbmp</Format>
+ <Format>image/tiff</Format>
+ <Format>image/svg+xml</Format>
+ <DCPType>
+ <HTTP>
+ <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Get>
+ <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Post>
+ </HTTP>
+ </DCPType>
+ </GetMap>
+ <GetFeatureInfo>
+ <Format>text/plain</Format>
+ <Format>application/vnd.ogc.gml</Format>
+ <DCPType>
+ <HTTP>
+ <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Get>
+ <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Post>
+ </HTTP>
+ </DCPType>
+ </GetFeatureInfo>
+ <DescribeLayer>
+ <Format>text/xml</Format>
+ <DCPType>
+ <HTTP>
+ <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Get>
+ <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Post>
+ </HTTP>
+ </DCPType>
+ </DescribeLayer>
+ <GetLegendGraphic>
+ <Format>image/png</Format>
+ <Format>image/gif</Format>
+ <Format>image/png; mode=24bit</Format>
+ <Format>image/jpeg</Format>
+ <Format>image/vnd.wap.wbmp</Format>
+ <DCPType>
+ <HTTP>
+ <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Get>
+ <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Post>
+ </HTTP>
+ </DCPType>
+ </GetLegendGraphic>
+ <GetStyles>
+ <Format>text/xml</Format>
+ <DCPType>
+ <HTTP>
+ <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Get>
+ <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/wms_simple?"/></Post>
+ </HTTP>
+ </DCPType>
+ </GetStyles>
+ </Request>
+ <Exception>
+ <Format>application/vnd.ogc.se_xml</Format>
+ <Format>application/vnd.ogc.se_inimage</Format>
+ <Format>application/vnd.ogc.se_blank</Format>
+ </Exception>
+ <VendorSpecificCapabilities />
+ <UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/>
+ <Layer>
+ <Name>WMS_TEST</Name>
+ <Title>Test simple wms</Title>
+ <SRS>EPSG:42304</SRS>
+ <SRS>EPSG:42101</SRS>
+ <SRS>EPSG:4269</SRS>
+ <SRS>EPSG:4326</SRS>
+ <LatLonBoundingBox minx="-67.5725" miny="42" maxx="-58.9275" maxy="48.5" />
+ <BoundingBox SRS="EPSG:4326"
+ minx="-67.5725" miny="42" maxx="-58.9275" maxy="48.5" />
+ <Layer queryable="0" opaque="0" cascaded="0">
+ <Name>road</Name>
+ <Title>road</Title>
+ <SRS>EPSG:43204</SRS>
+ <LatLonBoundingBox minx="-117.546" miny="44.6656" maxx="-117.387" maxy="44.7671" />
+ <BoundingBox SRS="EPSG:32611"
+ minx="456800" miny="4.94595e+06" maxx="469300" maxy="4.95715e+06" />
+ </Layer>
+ <Layer queryable="0" opaque="0" cascaded="0">
+ <Name>grey</Name>
+<!-- WARNING: Mandatory metadata '..._title' was missing in this context. -->
+ <Title>grey</Title>
+ <SRS>EPSG:32611</SRS>
+ <SRS>EPSG:4326</SRS>
+ <!-- WARNING: Optional LatLonBoundingBox could not be established for this layer. Consider setting the EXTENT in the LAYER object, or wms_extent metadata. Also check that your data exists in the DATA statement -->
+ </Layer>
+ </Layer>
+</Capability>
+</WMT_MS_Capabilities>
Added: trunk/msautotest/wxs/wms_raster.map
===================================================================
--- trunk/msautotest/wxs/wms_raster.map (rev 0)
+++ trunk/msautotest/wxs/wms_raster.map 2009-03-08 20:26:48 UTC (rev 8676)
@@ -0,0 +1,127 @@
+#
+# Test WMS
+#
+# REQUIRES: INPUT=GDAL OUTPUT=PNG SUPPORTS=WMS
+#
+# The following test exists primarily to test the ability of displaying
+# layer extents in capabilities derived from the underlying raster file
+# without the user having to include in the file using EXTENT keyword. #79
+#
+# Capabilities
+# RUN_PARMS: wms_rast_cap.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities" > [RESULT_DEVERSION]
+
+NAME WMS_TEST
+STATUS ON
+SIZE 400 300
+#EXTENT 2018000 -73300 3410396 647400
+#UNITS METERS
+EXTENT -67.5725 42 -58.9275 48.5
+UNITS DD
+IMAGECOLOR 255 255 255
+SHAPEPATH ./data
+SYMBOLSET etc/symbols.sym
+FONTSET etc/fonts.txt
+
+
+OUTPUTFORMAT
+ NAME GDPNG
+ DRIVER "GD/PNG"
+ MIMETYPE "image/png"
+ IMAGEMODE RGB
+ EXTENSION "png"
+END
+
+
+#
+# Start of web interface definition
+#
+WEB
+
+ IMAGEPATH "/tmp/ms_tmp/"
+ IMAGEURL "/ms_tmp/"
+
+ METADATA
+ "ows_updatesequence" "123"
+ "wms_title" "Test simple wms"
+ "wms_onlineresource" "http://localhost/path/to/wms_simple?"
+ "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"
+ "ows_schemas_location" "http://schemas.opengis.net"
+ "ows_keywordlist" "ogc,wms,mapserver"
+ "ows_service_onlineresource" "http://www.mapserver.org/"
+ "ows_fees" "None"
+ "ows_accessconstraints" "None"
+ "ows_addresstype" "postal"
+ "ows_address" "123 SomeRoad Road"
+ "ows_city" "Toronto"
+ "ows_stateorprovince" "Ontario"
+ "ows_postcode" "xxx-xxx"
+ "ows_country" "Canada"
+ "ows_contactelectronicmailaddress" "tomkralidis at xxxxxxx.xxx"
+ "ows_contactvoicetelephone" "+xx-xxx-xxx-xxxx"
+ "ows_contactfacsimiletelephone" "+xx-xxx-xxx-xxxx"
+ "ows_contactperson" "Tom Kralidis"
+ "ows_contactorganization" "MapServer"
+ "ows_contactposition" "self"
+ END
+END
+
+PROJECTION
+ "init=epsg:4326"
+ #"init=./data/epsg2:42304"
+END
+
+
+#
+# Start of layer definitions
+#
+
+LAYER
+ NAME road
+ DATA toronto.tif
+ METADATA
+ "wms_title" "road"
+ "wms_description" "Roads of I.P.E."
+ "wms_srs" "EPSG:43204"
+ "gml_include_items" "all"
+ END
+ TYPE RASTER
+ STATUS ON
+ PROJECTION
+ "init=epsg:32611"
+ END
+
+ DUMP TRUE
+
+END # Layer
+
+LAYER
+ NAME grey
+ TYPE raster
+ STATUS ON
+ DUMP TRUE
+ TILEINDEX "wcs_index.shp"
+ TILEITEM "location"
+
+ PROJECTION
+ "init=epsg:32611"
+ END
+ METADATA
+ "wcs_label" "Test label"
+ "ows_srs" "EPSG:32611 EPSG:4326"
+ "wcs_resolution" "10 10"
+ "wcs_bandcount" "1"
+ "wcs_formats" "GEOTIFF_16 GDPNG AAIGRID"
+ "wcs_nativeformat" "GeoTIFF"
+ "wcs_description" "Test description"
+ "wcs_metadatalink_href" "http://www.gdal.org/metadata_test_link.html"
+ "wcs_keywordlist" "test,mapserver"
+ "wcs_abstract" "Category: Image
+Product: IKONOS-2 PAN/MSI
+Acquisition: 1999-10-11 18:47"
+ "wcs_rangeset_axes" "bands"
+ "wcs_rangeset_name" "Landsat 5 TM Bands"
+ "wcs_rangeset_label" "Bands"
+ "wcs_rangeset_description" "Bands for Landsat 5 TM"
+ END
+END
+END # Map File
More information about the mapserver-commits
mailing list