[mapserver-users] problem with map file

Bart van den Eijnden bartvde at xs4all.nl
Mon Jun 16 12:57:34 PDT 2003


------------ai3SZKa3hmWwpUmObcOW1A
Content-Type: text/plain; charset=iso-8859-15; format=flowed

Hi list,

I have a problem with my map file but cannot seem to resolve the problem.
I have 6 layers in my map file, but when I perform a 
request=GetCapabilities I only get one of them in the capabilities. I have 
attached both the mapfile and the capabilities.

Does anybody have an idea?

Thanks in advance,
Bart 
------------ai3SZKa3hmWwpUmObcOW1A
Content-Disposition: attachment;
	filename="capabilities.txt"
Content-Type: text/plain;
	name="capabilities.txt"

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://www.digitalearth.gov/wmt/xml/capabilities_1_1_0.dtd"
 [
 <!ELEMENT VendorSpecificCapabilities EMPTY>
 ]>  <!-- end of DOCTYPE declaration -->

<WMT_MS_Capabilities version="1.1.0" updateSequence="0">

<!-- MapServer version 4.0-beta1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->

<Service> <!-- a service IS a MapServer mapfile -->
  <Name>GetMap</Name> <!-- WMT defined -->
  <Title>UMN MapServer Geostreets</Title>
  <Abstract>UMN MapServer Geostreets</Abstract>
  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8081/bart/demo_init.html?"/>
  <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:8081/bart/demo_init.html?"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8081/bart/demo_init.html?"/></Post>
        </HTTP>
      </DCPType>
    </GetCapabilities>
    <GetMap>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <Format>image/wbmp</Format>
      <Format>application/x-shockwave-flash</Format>
      <Format>text/html</Format>
      <Format>application/x-pdf</Format>
      <Format>image/tiff</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8081/bart/demo_init.html?"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8081/bart/demo_init.html?"/></Post>
        </HTTP>
      </DCPType>
    </GetMap>
    <GetFeatureInfo>
      <Format>text/plain</Format>
      <Format>text/html</Format>
      <Format>application/vnd.ogc.gml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8081/bart/demo_init.html?"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8081/bart/demo_init.html?"/></Post>
        </HTTP>
      </DCPType>
    </GetFeatureInfo>
  </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 />
  <Layer>
    <Name>GEOSTREETS</Name>
    <Title>UMN MapServer Geostreets</Title>
    <SRS>EPSG:28992</SRS>
    <LatLonBoundingBox minx="388108" miny="5.20312e+006" maxx="500896" maxy="5.31024e+006" />
    <BoundingBox SRS="EPSG:28992"
                minx="388108" miny="5.20312e+006" maxx="500896" maxy="5.31024e+006" />
    <ScaleHint min="0.0249451" max="7.73299e+007" />
    <Layer queryable="0" opaque="0" cascaded="0">
        <Name>level1ecw</Name>
<!-- WARNING: Mandatory metadata 'wms_title' was missing in this context. -->
        <Title>level1ecw</Title>
        <ScaleHint min="0" max="5.98683" />
    </Layer>
  </Layer>
</Capability>
</WMT_MS_Capabilities>


------------ai3SZKa3hmWwpUmObcOW1A
Content-Disposition: attachment;
	filename="mapfile.txt.txt"
Content-Type: text/plain;
	name="mapfile.txt.txt"

#
# Start of map file
#
NAME GEOSTREETS
STATUS ON
SIZE 600 600
EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897
UNITS METERS
IMAGECOLOR 255 255 255

#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
  HEADER demo_header.html
  TEMPLATE demo.html
  FOOTER demo_footer.html
  MINSCALE 50
  MAXSCALE 155000000000
  IMAGEPATH "set in demo_init.html"
  IMAGEURL "set in demo_init.html"
  METADATA
    WMS_TITLE "UMN MapServer Geostreets"
    WMS_ABSTRACT "UMN MapServer Geostreets"
    WMS_ACCESSCONSTRAINTS none
    WMS_ONLINERESOURCE "http://localhost:8081/bart/demo_init.html"
    WMS_SRS "EPSG:28992"
  END
END

#
# Start of layer definitions
#

LAYER
      NAME "level1ecw"
      DATA "E:\klicnet\data\webstreets\Gstreets_2003\ecw\level1.ecw"
      TYPE RASTER
      MINSCALE 0
      MAXSCALE 12000
      STATUS ON
      DUMP TRUE
      END
   END
  METADATA
    WMS_TITLE "Geostreets Level 1"
    WMS_ABSTRACT "Geostreets Level 1"
    WMS_SRS "EPSG:28992"
  END
END

LAYER
      NAME "level2ecw"
      DATA "E:\klicnet\data\webstreets\Gstreets_2003\ecw\level2.ecw"
      TYPE RASTER
      MINSCALE 12000
      MAXSCALE 25000
      STATUS ON
      DUMP TRUE
      END
   END
  METADATA
    WMS_TITLE "Geostreets Level 2"
    WMS_ABSTRACT "Geostreets Level 2"
    WMS_SRS "EPSG:28992"
  END
END

LAYER
      NAME "level3ecw"
      DATA "E:\klicnet\data\webstreets\Gstreets_2003\ecw\level3.ecw"
      TYPE RASTER
      MINSCALE 35000
      MAXSCALE 100000
      STATUS ON
      DUMP TRUE
      END
   END
  METADATA
    WMS_TITLE "Geostreets Level 3"
    WMS_ABSTRACT "Geostreets Level 3"
    WMS_SRS "EPSG:28992"
  END
END

LAYER
      NAME "level4ecw"
      DATA "E:\klicnet\data\webstreets\Gstreets_2003\ecw\level4.ecw"
      TYPE RASTER
      MINSCALE 100000
      MAXSCALE 250000
      STATUS ON
      DUMP TRUE
      END
   END
  METADATA
    WMS_TITLE "Geostreets Level 4"
    WMS_ABSTRACT "Geostreets Level 4"
    WMS_SRS "EPSG:28992"
  END
END

LAYER
      NAME "level5ecw"
      DATA "E:\klicnet\data\webstreets\Gstreets_2003\ecw\level5.ecw"
      TYPE RASTER
      MINSCALE 250000
      MAXSCALE 1000000
      STATUS ON
      DUMP TRUE
      END
   END
  METADATA
    WMS_TITLE "Geostreets Level 5"
    WMS_ABSTRACT "Geostreets Level 5"
    WMS_SRS "EPSG:28992"
  END
END

LAYER
      NAME "level6ecw"
      DATA "E:\klicnet\data\webstreets\Gstreets_2003\ecw\level6.ecw"
      TYPE RASTER
      MINSCALE 1000000
      MAXSCALE 15000000
      STATUS ON
      DUMP TRUE
      END
   END
  METADATA
    WMS_TITLE "Geostreets Level 6"
    WMS_ABSTRACT "Geostreets Level 6"
    WMS_SRS "EPSG:28992"
  END
END

END # Map File


------------ai3SZKa3hmWwpUmObcOW1A--




More information about the MapServer-users mailing list