Skip to content
Permalink
Browse files

Add testing of raster tileindex with mixed SRS from WMS and WCS layers

  • Loading branch information...
rouault committed Jun 30, 2013
1 parent 8f79142 commit 8655ee5f1be2a333d8b25f3395465275c052d12d
Binary file not shown.
@@ -0,0 +1 @@
PROJCS["NAD_1927_UTM_Zone_11N",GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-117],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,64 @@
Content-Type: text/xml

<?xml version='1.0' encoding="ISO-8859-1" ?>
<CoverageDescription
version="1.0.0"
updateSequence="0"
xmlns="http://www.opengis.net/wcs"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengis.net/wcs/1.0.0/describeCoverage.xsd">
<CoverageOffering>
<name>grey_26711</name>
<label>grey_26711</label>
<lonLatEnvelope srsName="urn:ogc:def:crs:OGC:1.3:CRS84">
<gml:pos>-117.64116862079 33.848239887018</gml:pos>
<gml:pos>-117.5759124632 33.902673374966</gml:pos>
</lonLatEnvelope>
<domainSet>
<spatialDomain>
<gml:Envelope srsName="EPSG:4326">
<gml:pos>-117.64116862079 33.848239887018</gml:pos>
<gml:pos>-117.5759124632 33.902673374966</gml:pos>
</gml:Envelope>
<gml:Envelope srsName="EPSG:26711">
<gml:pos>440720 3745320</gml:pos>
<gml:pos>446720 3751320</gml:pos>
</gml:Envelope>
<gml:RectifiedGrid dimension="2">
<gml:limits>
<gml:GridEnvelope>
<gml:low>0 0</gml:low>
<gml:high>99 99</gml:high>
</gml:GridEnvelope>
</gml:limits>
<gml:axisName>x</gml:axisName>
<gml:axisName>y</gml:axisName>
<gml:origin>
<gml:pos>440720 3751320</gml:pos>
</gml:origin>
<gml:offsetVector>60 0</gml:offsetVector>
<gml:offsetVector>0 -60</gml:offsetVector>
</gml:RectifiedGrid>
</spatialDomain>
</domainSet>
<rangeSet>
<RangeSet>
<name>Range 1</name>
<label>My Label</label>
</RangeSet>
</rangeSet>
<supportedCRSs>
<requestResponseCRSs>EPSG:26711</requestResponseCRSs>
<nativeCRSs>EPSG:26711</nativeCRSs>
</supportedCRSs>
<supportedFormats>
<formats>GTiff</formats>
</supportedFormats>
<supportedInterpolations default="nearest neighbor">
<interpolationMethod>nearest neighbor</interpolationMethod>
<interpolationMethod>bilinear</interpolationMethod>
</supportedInterpolations>
</CoverageOffering>
</CoverageDescription>
@@ -0,0 +1,73 @@
Content-Type: text/xml

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<WCS_Capabilities
version="1.0.0"
updateSequence="0"
xmlns="http://www.opengis.net/wcs"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengis.net/wcs/1.0.0/wcsCapabilities.xsd">
<Service>
<name>MapServer WCS</name>
<label>title</label>
<fees>NONE</fees>
<accessConstraints>
NONE
</accessConstraints>
</Service>
<Capability>
<Request>
<GetCapabilities>
<DCPType>
<HTTP>
<Get><OnlineResource xlink:type="simple" xlink:href="http://localhost/path/to/?" /></Get>
</HTTP>
</DCPType>
<DCPType>
<HTTP>
<Post><OnlineResource xlink:type="simple" xlink:href="http://localhost/path/to/?" /></Post>
</HTTP>
</DCPType>
</GetCapabilities>
<DescribeCoverage>
<DCPType>
<HTTP>
<Get><OnlineResource xlink:type="simple" xlink:href="http://localhost/path/to/?" /></Get>
</HTTP>
</DCPType>
<DCPType>
<HTTP>
<Post><OnlineResource xlink:type="simple" xlink:href="http://localhost/path/to/?" /></Post>
</HTTP>
</DCPType>
</DescribeCoverage>
<GetCoverage>
<DCPType>
<HTTP>
<Get><OnlineResource xlink:type="simple" xlink:href="http://localhost/path/to/?" /></Get>
</HTTP>
</DCPType>
<DCPType>
<HTTP>
<Post><OnlineResource xlink:type="simple" xlink:href="http://localhost/path/to/?" /></Post>
</HTTP>
</DCPType>
</GetCoverage>
</Request>
<Exception>
<Format>application/vnd.ogc.se_xml</Format>
</Exception>
</Capability>
<ContentMetadata>
<CoverageOfferingBrief>
<name>grey_26711</name>
<label>grey_26711</label>
<lonLatEnvelope srsName="urn:ogc:def:crs:OGC:1.3:CRS84">
<gml:pos>-117.64116862079 33.848239887018</gml:pos>
<gml:pos>-117.5759124632 33.902673374966</gml:pos>
</lonLatEnvelope>
</CoverageOfferingBrief>
</ContentMetadata>
</WCS_Capabilities>
Binary file not shown.
@@ -0,0 +1,92 @@
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.0/capabilities_1_1_0.dtd"
[
<!ELEMENT VendorSpecificCapabilities EMPTY>
]> <!-- end of DOCTYPE declaration -->

<WMT_MS_Capabilities version="1.1.0">

<Service>
<Name>OGC:WMS</Name>
<Title>title</Title>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/?"/>
<ContactInformation>
</ContactInformation>
</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/?"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/?"/></Post>
</HTTP>
</DCPType>
</GetCapabilities>
<GetMap>
<Format>image/tiff</Format>
<Format>image/png</Format>
<Format>image/jpeg</Format>
<Format>image/gif</Format>
<Format>image/png; mode=8bit</Format>
<Format>application/x-pdf</Format>
<Format>image/svg+xml</Format>
<Format>application/vnd.google-earth.kml+xml</Format>
<Format>application/vnd.google-earth.kmz</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/?"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/?"/></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/?"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/?"/></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/?"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/path/to/?"/></Post>
</HTTP>
</DCPType>
</DescribeLayer>
</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>TEST</Name>
<Title>title</Title>
<Abstract>TEST</Abstract>
<SRS>EPSG:26711 EPSG:4326</SRS>
<LatLonBoundingBox minx="-117.641" miny="33.8482" maxx="-117.576" maxy="33.9027" />
<BoundingBox SRS="EPSG:26711"
minx="440720" miny="3.74532e+06" maxx="446720" maxy="3.75132e+06" />
<Layer queryable="0" opaque="0" cascaded="0">
<Name>grey</Name>
<Title>grey</Title>
<SRS>EPSG:26711</SRS>
<LatLonBoundingBox minx="-117.641" miny="33.848" maxx="-117.576" maxy="33.9027" />
<BoundingBox SRS="EPSG:26711"
minx="440682" miny="3.74525e+06" maxx="446743" maxy="3.75136e+06" />
</Layer>
</Layer>
</Capability>
</WMT_MS_Capabilities>
Binary file not shown.
@@ -0,0 +1,82 @@
#
# REQUIRES: INPUT=GDAL OUTPUT=PNG SUPPORTS=WCS SUPPORTS=PROJ
#
# RUN_PARMS: wcs_get_capabilities_tileindexmixedsrs_26711.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities" > [RESULT_DEVERSION]
#
# RUN_PARMS: wcs_describe_coverage_tileindexmixedsrs_26711.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WCS&VERSION=1.0.0&REQUEST=DescribeCoverage&COVERAGE=grey_26711" > [RESULT_DEVERSION]
#
# RUN_PARMS: wcs_get_coverage_tileindexmixedsrs_26711.tif [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&WIDTH=100&HEIGHT=100&FORMAT=image/tiff&BBOX=440720.000,3745320.000,446720.000,3751320.000&COVERAGE=grey_26711&CRS=EPSG:26711" > [RESULT_DEMIME]
#
# RUN_disabled_PARMS: wcs_get_coverage_110_tileindexmixedsrs_26711.dat [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WCS&VERSION=1.1.0&REQUEST=GetCoverage&WIDTH=100&HEIGHT=100&FORMAT=AAIGRID&BOUNDINGBOX=440720.000,3745320.000,446720.000,3751320.000,urn:ogc:def:crs:EPSG::26711&IDENTIFIER=grey_26711&GridCS=urn:ogc:def:crs:OGC::imageCRS&GridType=urn:ogc:def:method:WCS:1.1:2dGridIn2dCrs" > [RESULT]


MAP

NAME TEST
STATUS ON
SIZE 100 100
#EXTENT 440720.000 3745320.000 446720.000 3751320.000
IMAGECOLOR 0 0 0

PROJECTION
"+init=epsg:26711"
END

OUTPUTFORMAT
NAME GEOTIFF_BYTE
DRIVER "GDAL/GTiff"
MIMETYPE "image/tiff"
IMAGEMODE BYTE
EXTENSION "tif"
END

OUTPUTFORMAT
NAME AAIGRID
DRIVER "GDAL/AAIGRID"
MIMETYPE "image/x-aaigrid"
IMAGEMODE INT16
EXTENSION "grd"
FORMATOPTION "FILENAME=result.grd"
END

#
# Start of web interface definition
#
WEB

IMAGEPATH "/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"

METADATA
"wcs_onlineresource" "http://localhost/path/to/?"
"wcs_srs" "EPSG:26711 EPSG:4326"
"wcs_label" "title"
"ows_enable_request" "*"
END
END

LAYER
NAME grey_26711
TYPE raster
STATUS ON
DUMP TRUE
TILEINDEX "../gdal/data/tile_index_mixed_srs_26711.shp"
TILEITEM "location"
TILESRS "src_srs"
PROJECTION
# AUTO isn't supported by WCS server code
# and we must explicitely set a EPSG code
"+init=epsg:26711"
END
METADATA
"wcs_label" "grey_26711"
"wcs_rangeset_name" "Range 1" ### required to support DescribeCoverage request
"wcs_rangeset_label" "My Label" ### required to support DescribeCoverage request
"wcs_extent" "440720.000 3745320.000 446720.000 3751320.000"
"wcs_size" "100 100"
"wcs_resolution" "60 60"
# "wcs_srs" "EPSG:26711"
END
END

END # of map file
@@ -0,0 +1,65 @@
#
# REQUIRES: INPUT=GDAL OUTPUT=PNG SUPPORTS=WMS SUPPORTS=PROJ
#
# RUN_PARMS: wms_get_capabilities_tileindexmixedsrs.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetCapabilities" > [RESULT_DEVERSION]
#
# RUN_PARMS: wms_get_map_tileindexmixedsrs.tif [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:26711&BBOX=440720.000,3745320.000,446720.000,3751320.000&FORMAT=image/tiff&WIDTH=100&HEIGHT=100&STYLES=&LAYERS=grey" > [RESULT_DEMIME]


MAP

NAME TEST
STATUS ON
SIZE 100 100
# To make GetCapabilities happy
EXTENT 440720.000 3745320.000 446720.000 3751320.000
IMAGECOLOR 0 0 0

PROJECTION
"+init=epsg:26711"
END

OUTPUTFORMAT
NAME GEOTIFF_BYTE
DRIVER "GDAL/GTiff"
MIMETYPE "image/tiff"
IMAGEMODE BYTE
EXTENSION "tif"
END

#
# Start of web interface definition
#
WEB

IMAGEPATH "/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"

METADATA
"wms_onlineresource" "http://localhost/path/to/?"
"wms_srs" "EPSG:26711 EPSG:4326"
"wms_title" "title"
"ows_enable_request" "*"
END
END

LAYER
NAME grey
TYPE raster
STATUS ON
DUMP TRUE
TILEINDEX "../gdal/data/tile_index_mixed_srs.shp"
TILEITEM "location"
TILESRS "src_srs"
PROJECTION
AUTO
END
METADATA
"wms_title" "grey"
# For GetCapabilities
"wms_srs" "EPSG:26711"
END
END


END # of map file

0 comments on commit 8655ee5

Please sign in to comment.
You can’t perform that action at this time.