[mapserver-users] mapserver as a tiling client for an untiled WMS

DeDuikertjes DeDuikertjes at xs4all.nl
Sun Apr 18 12:04:03 PDT 2010


Michael,

Thank you.

Do I understand correctly that this GDAL WMS Minidriver with this xml 
file for a given map area (bounding box) will do a series of "normal" 
WMS requests (as opposed to "tiled" WMS requests) to the server to 
obtain a set of tiles which will be stitched together and incorporated 
in the map?

MArco


Smith, Michael ERDC-CRREL-NH schreef:
> Marco,
>
> To use the GDAL WMS Minidriver, create an XML file like below and then
> reference that xml file in your MapServer layer. For more info about the
> format of the WMS xml, see here http://www.gdal.org/frmt_wms.html
>
> Example xml
> -----------
>
> <GDAL_WMS>
>   <Service name="WMS">
>       <Version>1.1.1</Version>
>  <ServerUrl>http://hazards.fema.gov/wmsconnector/wmsconnector/com.esri.wms.E
> srimap/NFHL?transparent=true&</ServerUrl>
>         <SRS>EPSG:4326</SRS>
>         <Layers>Flood_Hazard_Zones_General</Layers>
>         <Styles>default</Styles>
>         <ImageFormat>image/gif</ImageFormat>
>     </Service>
>     <DataWindow>
>         <UpperLeftX>-180.0</UpperLeftX>
>         <UpperLeftY>90.0</UpperLeftY>
>         <LowerRightX>180.0</LowerRightX>
>         <LowerRightY>-90.0</LowerRightY>
>         <TileLevel>19</TileLevel>
>         <TileCountX>2</TileCountX>
>         <TileCountY>1</TileCountY>
>     </DataWindow>
>     <Projection>EPSG:4326</Projection>
>     <BlockSizeX>1024</BlockSizeX>
>     <BlockSizeY>1024</BlockSizeY>
>     <BandsCount>3</BandsCount>
>      <Cache>    
>         <Path>/htdocs/orm/gdalwmscache</Path>
>         <Depth>2</Depth>
>         <Extension>.gif</Extension>
>      </Cache>
>   <AdviseRead>true</AdviseRead>
>   <VerifyAdviseRead>true</VerifyAdviseRead>
> </GDAL_WMS>
>
> ----------------
>
> Mapfile section
> ---------------
>
> LAYER
>   NAME femaq3
>   DATA "/data/fema/fema_gen_wms.xml"
>   OFFSITE 255 255 255
>   TYPE raster
>   STATUS off
>   PROJECTION
>     "proj=latlong"
>     "ellps=GRS80"
>   END
>   CLASS
>       NAME "100 year floodplain"
>       SYMBOL 0
>     COLOR 255 0 0
>   END
>   CLASS
>       NAME "500 year floodplain"
>       SYMBOL 0
>     COLOR 255 192 203
>   END
> END
>
>
>   



More information about the MapServer-users mailing list