FWD: [mapserver-users] warning in capabilities XML output
Hao Ding
hdi12 at it.canterbury.ac.nz
Thu Jul 11 19:33:02 EDT 2002
Hi,
The warning disappeared when I add metadata 'WMS_GROUP_TITLE' in the layer
metadata. The new problem is the capabilities XML output is failed to be
parsed.
The code in my program is:
Document xmlDoc = XmlDocument.createXmlDocument(xmlSource)
The 'xmlSource' is the capabilties request UEL.
It works well with the URL
"http://wmt.digitalearth.gov/cgi-bin/wmt.cgi?REQUEST=GetCapabilities", which
is capabilities of the NASA wms map server.
Now I replaced the URL with mine
"http://localhost:8080/cgi-bin/mapserv?map=demo.map&REQUEST=GetCapabilities"
I got the error parse message:
SAXException Illegal character or entity reference syntax.
org.xml.sax.SAXParseException: Illegal character or entity reference syntax.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
at org.apache.crimson.parser.Parser2.parseLiteral(Parser2.java:748)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1399)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at
org.apache.crimson.tree.XmlDocument.createXmlDocument(XmlDocument.java:315) at
org.apache.crimson.tree.XmlDocument.createXmlDocument(XmlDocument.java:208) at
wms.wmsCatelog.main(wmsCatelog.java:32)
I think there must be something wrong in the capabilities xml output (see
attached file). I am not sure if it is my fault that cause some problems in
the xml output. Thanks for your help!
Regards,
Ding
>===== Original Message From Hao Ding <hdi12 at it.canterbury.ac.nz> =====
Hi,
I set up the mapserver as the WMS server. In the capabilities XML output there
was a warning:
WARNING:Mandatory metadata 'WMS_GROUP_TITLE' was missing in this context
I did not found any discription about the metadata 'WMS_GROUP_TITLE' in the
"Mapserver WMS Server How To". Where should this mandatory metadata be set in
the mapfile? Thanks for any help!
Regards,
Ding
-------------- next part --------------
<?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">
<Service> <!-- a service IS a MapServer mapfile -->
<Name>GetMap</Name> <!-- WMT defined -->
<Title>UMN MapServer Itasca Demo</Title>
<Abstract>This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota.</Abstract>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8080/cgi-bin/mapserv?map=demo.map&"/>
<ContactInformation>
</ContactInformation>
<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:8080/cgi-bin/mapserv?map=demo.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8080/cgi-bin/mapserv?map=demo.map&"/></Post>
</HTTP>
</DCPType>
</GetCapabilities>
<GetMap>
<Format>image/gif</Format>
<Format>image/png</Format>
<Format>image/wbmp</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8080/cgi-bin/mapserv?map=demo.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8080/cgi-bin/mapserv?map=demo.map&"/></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:8080/cgi-bin/mapserv?map=demo.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:8080/cgi-bin/mapserv?map=demo.map&"/></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>DEMO</Name>
<Title>UMN MapServer Itasca Demo</Title>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="388014" miny="5.2004e+06" maxx="500802" maxy="5.31316e+06" />
<BoundingBox SRS="EPSG:26915"
minx="388014" miny="5.2004e+06" maxx="500802" maxy="5.31316e+06" />
<ScaleHint min="0.498903" max="773.299" />
<Layer queryable="0" opaque="0" cascaded="0">
<Name>ctybdpy2</Name>
<Title>County Boundary</Title>
<Abstract>Itasca County boundary shapefile. See http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more information.</Abstract>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<BoundingBox SRS="EPSG:26915"
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
</Layer>
<Layer>
<Name>cities</Name>
<Title>cities</Title>
<Layer queryable="1" opaque="0" cascaded="0">
<Name>mcd90py2</Name>
<Title>Minor Civil Divisions</Title>
<Abstract>Minor civil divisions for Itasca County. (boundaries only)</Abstract>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<BoundingBox SRS="EPSG:26915"
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
</Layer>
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>twprgpy3</Name>
<Title>Township Boundaries</Title>
<Abstract>Pulic Land Survey (PLS) township boundaries for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/twprgne2.html for more information.</Abstract>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<BoundingBox SRS="EPSG:26915"
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
</Layer>
<Layer queryable="1" opaque="0" cascaded="0">
<Name>lakespy2</Name>
<Title>Lakes and Rivers</Title>
<Abstract>DLG lake and river polygons for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html for more information.</Abstract>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<BoundingBox SRS="EPSG:26915"
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
</Layer>
<Layer queryable="1" opaque="0" cascaded="0">
<Name>dlgstln2</Name>
<Title>Streams</Title>
<Abstract>DLG streams for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html for more information.</Abstract>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<BoundingBox SRS="EPSG:26915"
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
</Layer>
<Layer>
<Name>roads</Name>
<Title>roads</Title>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>ctyrdln3</Name>
<Title>County Roads</Title>
<Abstract>County roads. (lines only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information.</Abstract>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<BoundingBox SRS="EPSG:26915"
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<ScaleHint min="0" max="149.671" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>ctyrdln3_anno</Name>
<Title>County Roads</Title>
<Abstract>County roads. (shields only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information.</Abstract>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<BoundingBox SRS="EPSG:26915"
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<ScaleHint min="0" max="149.671" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>majrdln3</Name>
<Title>Highways</Title>
<Abstract>Highways- state, US and interstate. (lines only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information.</Abstract>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<BoundingBox SRS="EPSG:26915"
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<ScaleHint min="0" max="299.342" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>majrdln3_anno</Name>
<Title>Highways</Title>
<Abstract>Highways- state, US and interstate. (shields only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information.</Abstract>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<BoundingBox SRS="EPSG:26915"
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<ScaleHint min="0" max="299.342" />
</Layer>
</Layer>
<Layer queryable="1" opaque="0" cascaded="0">
<Name>airports</Name>
<Title>Airports</Title>
<Abstract>Airport runways for Itasca County.</Abstract>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<BoundingBox SRS="EPSG:26915"
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>cities</Name>
<Title>Minor Civil Divisions</Title>
<Abstract>Minor civil divisions for Itasca County. (annotation only)</Abstract>
<SRS>EPSG:26915</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
<BoundingBox SRS="EPSG:26915"
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07" />
</Layer>
</Layer>
</Capability>
</WMT_MS_Capabilities>
More information about the mapserver-users
mailing list