[mapserver-users] mapfile questions

Hao Ding hdi12 at it.canterbury.ac.nz
Fri Aug 9 18:06:05 PDT 2002


Hi,

I am implementing an OGC WMS client and setting up MapServer as the WMS 
  server. I used itasca demo dataset and mapfile to do some experiments, 
but met some questions that confused me. Any tips to this questions will 
  be very much appreciated.

1. How to set Layer object in the mapfile to make a layer queriable?

2. There is no EXTENT objects set in WEB and Layer level except one in 
  the Map level, which is

    EXTENT 388013.643812817 5200395.13465842 500802.348432817 
5313156.99196842.

In the resulting wms capabilities xml file as below, I find the 
BoundingBox of t he root Layer corresponds to above EXTENT, but as for 
the root Layer's LatLonBoundingBox and the child Layer's BoundingBox and 
LatLonBoundingBox I do not know where they are come from. Which one 
should I use to make a GetMap query?

<Layer>
     <Name>DEMO</Name>
     <Title>UMN MapServer Itasca Demo</Title>
     <SRS>EPSG:26915</SRS>
     <LatLonBoundingBox minx="-94.5002" miny="46.9476" maxx="-92.9892" 
maxy="47.9717" />
     <BoundingBox SRS="EPSG:26915"
                 minx="388014" miny="5.2004e+06" maxx="500802" 
maxy="5.31316e+06" />
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>ctybdpy2</Name>
         <Title>County Boundary</Title>
         <SRS>EPSG:26915</SRS>
         <LatLonBoundingBox minx="-175.959" miny="-8.2419e+12" 
maxx="173.59" maxy="8.2419e+12" />
         <BoundingBox SRS="EPSG:26915"
                     minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" 
maxy="2.5e+07" />
     </Layer>
......

3. What should I add in the mapfile if I want to get a GML file from 
MapServer when requesting for a point featureInfo?

4. I cannot find any mapfile object corresponding to the wms 
capabilities Style tag. How to set up mapfile to add Styles?

Sorry about answering so many questions and taking your time to read 
them. Please give me your answers if you know any of them. Thanks!

Hao




More information about the MapServer-users mailing list