[Tilecache] GetCapabilities document is not valid

Holger Jaekel holger.jaekel at gaf.de
Tue Mar 4 04:01:33 EST 2008


Hi everyone,

the capabilities document generated by TileCache is not valid. Look at
the layers section of the document from
http://schemas.opengeospatial.net/wms/1.1.1/WMS_MS_Capabilities.dtd

<Layer>
  <Layer queryable="0" opaque="0" cascaded="1">
    <Name>linktothepast</Name>
    <Title>linktothepast</Title>
    <SRS>EPSG:4326</SRS>
    <BoundingBox srs="EPSG:4326" minx="0.000000" miny="0.000000"
                          maxx="4096.000000" maxy="4096.000000" />
  </Layer>
  <Layer queryable="0" opaque="0" cascaded="1">
    <Name>boston-freemap-remote-mapserver</Name>
    <Title>boston-freemap-remote-mapserver</Title>
    <SRS>EPSG:4326</SRS>
    <BoundingBox srs="EPSG:4326" minx="-180.000000" miny="-90.000000"
                          maxx="180.000000" maxy="90.000000" />
  </Layer>
  [ more layers... ]
</Layer>

But the DTD says:

<!-- Nested list of zero or more map Layers offered by this server. -->
<!ELEMENT Layer ( Name?, Title, Abstract?, KeywordList?, SRS*,
                  LatLonBoundingBox?, BoundingBox*, Dimension*, Extent*,
                  Attribution?, AuthorityURL*, Identifier*,
MetadataURL*, DataURL*,
                  FeatureListURL*, Style*, ScaleHint?, Layer* ) >

So the section must have this structure:

<Layer queryable="0" opaque="0" cascaded="1">
  <Name>linktothepast</Name>
  <Title>linktothepast</Title>
  <SRS>EPSG:4326</SRS>
  <BoundingBox SRS="EPSG:4326" minx="0.000000" miny="0.000000"
                        maxx="4096.000000" maxy="4096.000000" />
  <Layer queryable="0" opaque="0" cascaded="1">
    <Name>boston-freemap-remote-mapserver</Name>
    <Title>boston-freemap-remote-mapserver</Title>
    <SRS>EPSG:4326</SRS>
    <BoundingBox SRS="EPSG:4326" minx="-180.000000" miny="-90.000000"
                          maxx="180.000000" maxy="90.000000" />
  </Layer>
  [ more layers... ]
</Layer>

The attribute "SRS" of "BoundingBox" must be written in upper case. The
values for maxx and maxy look strange for me, but this may be a
configuration problem.

I did not find a Jira for reporting bugs of TileCache, so I write it to
the mailing list. I hope this is correct.

Regards,
  Holger

---
Holger Jaekel
phone: +49 (89) 121528-75	mailto:holger.jaekel at gaf.de	
fax:   +49 (89) 121528-79	http://www.gaf.de	
GAF AG     Arnulfstr. 197     80634 Muenchen     Germany

Vorstand: Dr. Peter Volk, Aufsichtsratsvorsitzender: Marcello Maranesi

Amtsgericht Muenchen HRB 140 509, Firmensitz: Muenchen


      



More information about the Tilecache mailing list