[mapserver-dev] GetCapabilities and schema validation issues

Stephen Woodbridge woodbri at swoodbridge.com
Mon Apr 8 13:00:29 PDT 2013


Hi Tom,

Thanks, that got us part of the way there, but there still seems to be a 
problem(s).

Adding ows_schemas_location seems to have solved the the wms schema 
requests, but we are still getting requests going to:

http://schemas.opengis.net/sld/1.10/sld_capabilities.xsd

rather than to the host specified in ows_schemas_location. So this might 
be a bug or oversight related to the sld code.

Next we tried adding:
    "ows_sld_enabled"  "false"

Based on this link:
http://mapserver.org/ogc/wms_server.html#web-object-metadata

But this seems to be ignored also as sld was still advertised in the 
getcapabilities document.

I looked at the source code and can not find

$ grep -li ows_sld_enabled *
$ grep -li sld_enabled *
mapwms.c

So we tried sld_enabled instead of ows_sld_enabled, but no joy with this 
one either.

This looks like it might be another bug, or my error in understanding 
the docs and source code.

Below is the getcapabilities document:

-Steve W


I added the following into my .map file

"ows_schemas_location"	"http://10.50.0.35"
"ows_sld_enabled"	"false"

You can see in the capabilities xml file, it did accept my schema 
location, however, it is still giving the default location for " 
http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd "

We really need a location that is not on the internet.

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<WMS_Capabilities version="1.3.0"  xmlns="http://www.opengis.net/wms" 
xmlns:sld="http://www.opengis.net/sld" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:ms="http://mapserver.gis.umn.edu/mapserver" 
xsi:schemaLocation="http://www.opengis.net/wms 
http://10.50.0.35/wms/1.3.0/capabilities_1_3_0.xsd 
http://www.opengis.net/sld 
http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd 
http://mapserver.gis.umn.edu/mapserver 
http://10.50.0.35/cgi-bin/mapserv?service=WMS&version=1.3.0&request=GetSchemaExtension">

<!-- MapServer version 6.1-dev (MS4W 3.0.4-dev) OUTPUT=GIF OUTPUT=PNG 
OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO 
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI 
SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR 
INPUT=GDAL INPUT=SHAPEFILE -->

<Service>
   <Name>WMS</Name>
   <Title>iMaptools Tiger 2011 Mapping</Title>
   <Abstract>This WMS is iMaptools Tiger 2011 Mapping demo service. It 
is using Tiger 2011 shapefile data.</Abstract>
   <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?"/>
   <ContactInformation>
     <ContactPersonPrimary>
       <ContactPerson>Stephen Woodbridge</ContactPerson>
       <ContactOrganization>iMaptools.com</ContactOrganization>
     </ContactPersonPrimary>
       <ContactPosition>Owner</ContactPosition>
 
<ContactElectronicMailAddress>info at imaptools.com</ContactElectronicMailAddress>
   </ContactInformation>
   <MaxWidth>2100</MaxWidth>
   <MaxHeight>2100</MaxHeight>
</Service>

<Capability>
   <Request>
     <GetCapabilities>
       <Format>text/xml</Format>
       <DCPType>
         <HTTP>
           <Get><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?"/></Get>
           <Post><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?"/></Post>
         </HTTP>
       </DCPType>
     </GetCapabilities>
     <GetMap>
       <Format>image/png</Format>
       <Format>image/jpeg</Format>
       <Format>image/gif</Format>
       <Format>image/png; mode=8bit</Format>
       <Format>application/x-pdf</Format>
       <Format>image/svg+xml</Format>
       <Format>image/tiff</Format>
       <Format>application/vnd.google-earth.kml+xml</Format>
       <Format>application/vnd.google-earth.kmz</Format>
       <DCPType>
         <HTTP>
           <Get><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?"/></Get>
           <Post><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?"/></Post>
         </HTTP>
       </DCPType>
     </GetMap>
     <GetFeatureInfo>
       <Format>text/plain</Format>
       <Format>application/vnd.ogc.gml</Format>
       <DCPType>
         <HTTP>
           <Get><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?"/></Get>
           <Post><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?"/></Post>
         </HTTP>
       </DCPType>
     </GetFeatureInfo>
   </Request>
   <Exception>
     <Format>XML</Format>
     <Format>INIMAGE</Format>
     <Format>BLANK</Format>
   </Exception>
   <Layer>
     <Name>Tiger_2011</Name>
     <Title>iMaptools Tiger 2011 Mapping</Title>
     <Abstract>This WMS is iMaptools Tiger 2011 Mapping demo service. It 
is using Tiger 2011 shapefile data.</Abstract>
     <CRS>EPSG:4269</CRS>
     <CRS>EPSG:4326</CRS>
     <CRS>EPSG:900913</CRS>
     <CRS>EPSG:3857</CRS>
     <CRS>EPSG:26915</CRS>
     <CRS>EPSG:200068</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-111.444</westBoundLongitude>
         <eastBoundLongitude>-110.295</eastBoundLongitude>
         <southBoundLatitude>31.6083</southBoundLatitude>
         <northBoundLatitude>32.5333</northBoundLatitude>

1000
   </EX_GeographicBoundingBox>
     <BoundingBox CRS="EPSG:4326"
                 minx="31.6083" miny="-111.444" maxx="32.5333" 
maxy="-110.295" />
     <Attribution>
         <Title>U.S. Census Bureau 2011 TIGER/Line® Shapefiles</Title>
         <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://www.census.gov/geo/www/tiger/tgrshp2011/tgrshp2011.html"/>
     </Attribution>
     <Layer>
       <Name>cb</Name>
<!-- WARNING: Mandatory metadata '..._GROUP_TITLE' was missing in this 
context. -->
       <Title>cb</Title>
       <Abstract>cb</Abstract>
         <Style>
           <Name>default</Name>
           <Title>default</Title>
           <LegendURL width="35" height="5">
              <Format>image/png; mode=24bit</Format>
              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:type="simple" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=cb&format=image/png; 
mode=24bit&STYLE=default"/>
           </LegendURL>
         </Style>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>World_Z0</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>World_Z0</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-180</westBoundLongitude>
         <eastBoundLongitude>180</eastBoundLongitude>
         <southBoundLatitude>-89.9989</southBoundLatitude>
         <northBoundLatitude>83.6451</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-89.9989" miny="-180" maxx="83.6451" 
maxy="180" />
         <MinScaleDenominator>1e+008</MinScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>World_Z1</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>World_Z1</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-180</westBoundLongitude>
         <eastBoundLongitude>180</eastBoundLongitude>
         <southBoundLatitude>-89.9989</southBoundLatitude>
         <northBoundLatitude>83.5996</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-89.9989" miny="-180" maxx="83.5996" 
maxy="180" />
         <MinScaleDenominator>5e+007</MinScaleDenominator>
         <MaxScaleDenominator>1e+008</MaxScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>World_Z2</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>World_Z2</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-180</westBoundLongitude>
         <eastBoundLongitude>180</eastBoundLongitude>
         <southBoundLatitude>-89.9998</southBoundLatitude>
         <northBoundLatitude>83.6338</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-89.9998" miny="-180" maxx="83.6338" 
maxy="180" />
         <MaxScaleDenominator>5e+007</MaxScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>Forest</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>Forest</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-149.574</westBoundLongitude>
         <eastBoundLongitude>-71.1241</eastBoundLongitude>
         <southBoundLatitude>28.9611</southBoundLatitude>
         <northBoundLatitude>61.5343</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="28.9611" miny="-149.574" maxx="61.5343" 
maxy="-71.1241" />
         <MaxScaleDenominator>2e+008</MaxScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>Lakes_Z0</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>Lakes_Z0
1000
</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-124.954</westBoundLongitude>
         <eastBoundLongitude>109.93</eastBoundLongitude>
         <southBoundLatitude>-16.5364</southBoundLatitude>
         <northBoundLatitude>66.9693</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-16.5364" miny="-124.954" maxx="66.9693" 
maxy="109.93" />
         <MinScaleDenominator>1e+008</MinScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>Lakes_Z1</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>Lakes_Z1</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-165.898</westBoundLongitude>
         <eastBoundLongitude>176.083</eastBoundLongitude>
         <southBoundLatitude>-50.62</southBoundLatitude>
         <northBoundLatitude>81.9403</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-50.62" miny="-165.898" maxx="81.9403" 
maxy="176.083" />
         <MinScaleDenominator>2e+007</MinScaleDenominator>
         <MaxScaleDenominator>1e+008</MaxScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>Lakes_Z2</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>Lakes_Z2</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-165.966</westBoundLongitude>
         <eastBoundLongitude>176.094</eastBoundLongitude>
         <southBoundLatitude>-50.6697</southBoundLatitude>
         <northBoundLatitude>81.9553</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-50.6697" miny="-165.966" maxx="81.9553" 
maxy="176.094" />
         <MaxScaleDenominator>2e+007</MaxScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>World_Boundaries_Z1</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>World_Boundaries_Z1</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-141.002</westBoundLongitude>
         <eastBoundLongitude>145.94</eastBoundLongitude>
         <southBoundLatitude>-55.114</southBoundLatitude>
         <northBoundLatitude>70.0648</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-55.114" miny="-141.002" maxx="70.0648" 
maxy="145.94" />
         <MaxScaleDenominator>1.2e+008</MaxScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>World_Admin-1_Z1</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>World_Admin-1_Z1</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-139.047</westBoundLongitude>
         <eastBoundLongitude>178.449</eastBoundLongitude>
         <southBoundLatitude>-49.2507</southBoundLatitude>
         <northBoundLatitude>81.1382</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-49.2507" miny="-139.047" maxx="81.1382" 
maxy="178.449" />
         <MinScaleDenominator>2e+007</MinScaleDenominator>
         <MaxScaleDenominator>1e+008</MaxScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>World_Admin-1_Z2</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>World_Admin-1_Z2</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-139.047</westBoundLongitude>
         <eastBoundLongitude>178.449</eastBoundLongitude>
         <southBoundLatitude>-49.2507</southBoundLatitude>
         <northBoundLatitude>81.1382</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     m
1000
inx="-49.2507" miny="-139.047" maxx="81.1382" maxy="178.449" />
         <MinScaleDenominator>5e+006</MinScaleDenominator>
         <MaxScaleDenominator>2e+007</MaxScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>World_Names_Z0</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>World_Names_Z0</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-132</westBoundLongitude>
         <eastBoundLongitude>155</eastBoundLongitude>
         <southBoundLatitude>-78</southBoundLatitude>
         <northBoundLatitude>55</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-78" miny="-132" maxx="55" maxy="155" />
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>World_Names_Z1</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>World_Names_Z1</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-175.218</westBoundLongitude>
         <eastBoundLongitude>179.217</eastBoundLongitude>
         <southBoundLatitude>-51.7195</southBoundLatitude>
         <northBoundLatitude>64.1966</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-51.7195" miny="-175.218" maxx="64.1966" 
maxy="179.217" />
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>World_Names_Z2</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>World_Names_Z2</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-179.59</westBoundLongitude>
         <eastBoundLongitude>179.383</eastBoundLongitude>
         <southBoundLatitude>-89.9829</southBoundLatitude>
         <northBoundLatitude>82.4838</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-89.9829" miny="-179.59" maxx="82.4838" 
maxy="179.383" />
         <MinScaleDenominator>4e+006</MinScaleDenominator>
         <MaxScaleDenominator>2e+007</MaxScaleDenominator>
       </Layer>
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>US_Places</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>US_Places</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-176.658</westBoundLongitude>
         <eastBoundLongitude>178.878</eastBoundLongitude>
         <southBoundLatitude>-14.3611</southBoundLatitude>
         <northBoundLatitude>71.2981</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="-14.3611" miny="-176.658" maxx="71.2981" 
maxy="178.878" />
         <Style>
           <Name>default</Name>
           <Title>default</Title>
           <LegendURL width="107" height="53">
              <Format>image/png</Format>
              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:type="simple" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=US_Places&format=image/png&STYLE=default"/>
           </LegendURL>
         </Style>
         <MinScaleDenominator>1e+006</MinScaleDenominator>
         <MaxScaleDenominator>4e+006</MaxScaleDenominator>
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>US_State_Capitals</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>US_State_Capitals</Title>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-157.858</westBoundLongitude>
         <eastBoundLongitude>-69.78</eastBoundLongitude>
         <southBoundLatitude>21.3069</southBoundLatitude>
         <northBoundLatitude>58.3019</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"

1000
                 minx="21.3069" miny="-157.858" maxx="58.3019" 
maxy="-69.78" />
         <Style>
           <Name>default</Name>
           <Title>default</Title>
           <LegendURL width="119" height="21">
              <Format>image/png</Format>
              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:type="simple" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=US_State_Capitals&format=image/png&STYLE=default"/>
           </LegendURL>
         </Style>
         <MinScaleDenominator>1e+006</MinScaleDenominator>
         <MaxScaleDenominator>4e+006</MaxScaleDenominator>
     </Layer>
     <Layer>
       <Name>cd</Name>
<!-- WARNING: Mandatory metadata '..._GROUP_TITLE' was missing in this 
context. -->
       <Title>cd</Title>
       <Abstract>cd</Abstract>
         <Style>
           <Name>default</Name>
           <Title>default</Title>
           <LegendURL width="35" height="5">
              <Format>image/png; mode=24bit</Format>
              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:type="simple" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=cd&format=image/png; 
mode=24bit&STYLE=default"/>
           </LegendURL>
         </Style>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>Equator</Name>
<!-- WARNING: Mandatory metadata '..._title' was missing in this 
context. -->
         <Title>Equator</Title>
         <CRS>EPSG:4326</CRS>
         <!-- WARNING: Optional Ex_GeographicBoundingBox could not be 
established for this layer.  Consider setting the EXTENT in the LAYER 
object, or wms_extent metadata. Also check that your data exists in the 
DATA statement -->
         <MinScaleDenominator>5e+007</MinScaleDenominator>
       </Layer>
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>state_far</Name>
         <Title>State polygons</Title>
         <Abstract>State polygon features from the U.S. Census STATE 
data layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-111.664</westBoundLongitude>
         <eastBoundLongitude>-111.664</eastBoundLongitude>
         <southBoundLatitude>34.2931</southBoundLatitude>
         <northBoundLatitude>34.2931</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="34.2931" miny="-111.664" maxx="34.2931" 
maxy="-111.664" />
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>state</Name>
         <Title>State polygons</Title>
         <Abstract>State polygon features from the U.S. Census STATE 
data layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.817</westBoundLongitude>
         <eastBoundLongitude>-109.045</eastBoundLongitude>
         <southBoundLatitude>31.3322</southBoundLatitude>
         <northBoundLatitude>37.0043</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3322" miny="-114.817" maxx="37.0043" 
maxy="-109.045" />
         <MaxScaleDenominator>5e+006</MaxScaleDenominator>
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>place</Name>
         <Title>Place polygons</Title>
         <Abstract>Place polygon features from the U.S. Census PLACE 
data layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.817</westBoundLongitude>
         <eastBoundLongitude>-109.045</eastBoundLongitude>
         <southBoundLatitude>31.3326</southBoundLatitude>
         <northBoundLatitude>37.0006</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3326" miny="-114.817" maxx="37.0006" 
maxy="-109.045" />
         <MaxScaleDenominator>1e+006</MaxScaleDenominator>

1000
    </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>area_landmarks_far</Name>
         <Title>Landmark polygons far</Title>
         <Abstract>Landmark polygon features from the U.S. Census AREALM 
data layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.661</westBoundLongitude>
         <eastBoundLongitude>-109.301</eastBoundLongitude>
         <southBoundLatitude>31.3351</southBoundLatitude>
         <northBoundLatitude>34.1726</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3351" miny="-114.661" maxx="34.1726" 
maxy="-109.301" />
         <MinScaleDenominator>2.5e+006</MinScaleDenominator>
         <MaxScaleDenominator>5e+006</MaxScaleDenominator>
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>area_landmarks</Name>
         <Title>Landmark polygons</Title>
         <Abstract>Landmark polygon features from the U.S. Census AREALM 
data layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.661</westBoundLongitude>
         <eastBoundLongitude>-109.129</eastBoundLongitude>
         <southBoundLatitude>31.3351</southBoundLatitude>
         <northBoundLatitude>34.1726</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3351" miny="-114.661" maxx="34.1726" 
maxy="-109.129" />
         <MaxScaleDenominator>2.5e+006</MaxScaleDenominator>
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>military</Name>
         <Title>Military polygons</Title>
         <Abstract>Military polygon features from the U.S. Census MIL 
data layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-176.81</westBoundLongitude>
         <eastBoundLongitude>174.159</eastBoundLongitude>
         <southBoundLatitude>13.3145</southBoundLatitude>
         <northBoundLatitude>68.8801</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="13.3145" miny="-176.81" maxx="68.8801" 
maxy="174.159" />
         <MaxScaleDenominator>5e+006</MaxScaleDenominator>
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>area_water_far</Name>
         <Title>Area Water Far</Title>
         <Abstract>Area Water features from the U.S. Census AREAWATER 
data layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.731</westBoundLongitude>
         <eastBoundLongitude>-109.14</eastBoundLongitude>
         <southBoundLatitude>31.3804</southBoundLatitude>
         <northBoundLatitude>34.3043</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3804" miny="-114.731" maxx="34.3043" 
maxy="-109.14" />
         <MinScaleDenominator>500000</MinScaleDenominator>
         <MaxScaleDenominator>7e+006</MaxScaleDenominator>
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>area_water</Name>
         <Title>Area Water</Title>
         <Abstract>Area Water features from the U.S. Census AREAWATER 
data layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.731</westBoundLongitude>
         <eastBoundLongitude>-109.048</eastBoundLongitude>
         <southBoundLatitude>31.3334</southBoundLatitude>
         <northBoundLatitude>34.3106</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3334" miny="-114.731" maxx="34.3106" 
maxy="-109.048" />
         <MaxScaleDenominator>500000</MaxScaleDenominator>
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>linear_water</Name>
         <Title>Streams and Rivers</Title>
         <Abstract>Streams and River
1000
s from the U.S. Census LINEARWATER data layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.715</westBoundLongitude>
         <eastBoundLongitude>-109.048</eastBoundLongitude>
         <southBoundLatitude>31.3323</southBoundLatitude>
         <northBoundLatitude>34.3191</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3323" miny="-114.715" maxx="34.3191" 
maxy="-109.048" />
         <MaxScaleDenominator>15000</MaxScaleDenominator>
     </Layer>
     <Layer>
       <Name>streets</Name>
<!-- WARNING: Mandatory metadata '..._GROUP_TITLE' was missing in this 
context. -->
       <Title>streets</Title>
       <Abstract>streets</Abstract>
         <Style>
           <Name>default</Name>
           <Title>default</Title>
           <LegendURL width="35" height="5">
              <Format>image/png; mode=24bit</Format>
              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:type="simple" 
xlink:href="http://10.50.0.35/cgi-bin/mapserv?version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=streets&format=image/png; 
mode=24bit&STYLE=default"/>
           </LegendURL>
         </Style>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>primary_roads</Name>
         <Title>Primary Road features</Title>
         <Abstract>Primary Road features from the U.S. Census 
PRIMARYROADS data layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-158.104</westBoundLongitude>
         <eastBoundLongitude>145.815</eastBoundLongitude>
         <southBoundLatitude>15.1184</southBoundLatitude>
         <northBoundLatitude>62.8805</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="15.1184" miny="-158.104" maxx="62.8805" 
maxy="145.815" />
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>pri_sec_roads</Name>
         <Title>Primary and Secondary Roadway features</Title>
         <Abstract>Primary and Secondary Roadway features from the U.S. 
Census PRISECROADS data layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.787</westBoundLongitude>
         <eastBoundLongitude>-109.045</eastBoundLongitude>
         <southBoundLatitude>31.3326</southBoundLatitude>
         <northBoundLatitude>37.0017</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3326" miny="-114.787" maxx="37.0017" 
maxy="-109.045" />
         <MinScaleDenominator>500000</MinScaleDenominator>
         <MaxScaleDenominator>5e+006</MaxScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>roads</Name>
         <Title>Roadway features</Title>
         <Abstract>Road way features from the U.S. Census ROADS data 
layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.715</westBoundLongitude>
         <eastBoundLongitude>-109.048</eastBoundLongitude>
         <southBoundLatitude>31.3326</southBoundLatitude>
         <northBoundLatitude>34.3087</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3326" miny="-114.715" maxx="34.3087" 
maxy="-109.048" />
         <MaxScaleDenominator>500000</MaxScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>hwyshieldsfar</Name>
         <Title>Hwy Shields Far</Title>
         <Abstract>Hwy Shields for the U.S. Census ROADS data 
layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.787</westBoundLongitude>
         <eastBoundLongitude>-109.045</eastBoundLongitude>
         <southBoundLatitude>31.3326</southBoundLatitude>

a20
       <northBoundLatitude>37.0017</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3326" miny="-114.787" maxx="37.0017" 
maxy="-109.045" />
         <MinScaleDenominator>300000</MinScaleDenominator>
         <MaxScaleDenominator>5e+006</MaxScaleDenominator>
       </Layer>
       <Layer queryable="0" opaque="0" cascaded="0">
         <Name>hwyshieldsnear</Name>
         <Title>Hwy Shields Near</Title>
         <Abstract>Hwy Shields for the U.S. Census ROADS data 
layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.715</westBoundLongitude>
         <eastBoundLongitude>-109.048</eastBoundLongitude>
         <southBoundLatitude>31.3326</southBoundLatitude>
         <northBoundLatitude>34.3087</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3326" miny="-114.715" maxx="34.3087" 
maxy="-109.048" />
         <MaxScaleDenominator>300000</MaxScaleDenominator>
       </Layer>
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>rails</Name>
         <Title>Railway features</Title>
         <Abstract>Railway features from the U.S. Census RAILS data 
layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-165.401</westBoundLongitude>
         <eastBoundLongitude>145.206</eastBoundLongitude>
         <southBoundLatitude>14.1699</southBoundLatitude>
         <northBoundLatitude>65.0001</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="14.1699" miny="-165.401" maxx="65.0001" 
maxy="145.206" />
     </Layer>
     <Layer queryable="0" opaque="0" cascaded="0">
         <Name>point_landmarks</Name>
         <Title>Landmark Points</Title>
         <Abstract>Point landmarks from the U.S. Census POINTLM data 
layer.</Abstract>
         <CRS>EPSG:4269</CRS>
         <CRS>EPSG:4326</CRS>
     <EX_GeographicBoundingBox>
         <westBoundLongitude>-114.433</westBoundLongitude>
         <eastBoundLongitude>-109.122</eastBoundLongitude>
         <southBoundLatitude>31.3353</southBoundLatitude>
         <northBoundLatitude>34.2847</northBoundLatitude>
     </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4269"
                     minx="31.3353" miny="-114.433" maxx="34.2847" 
maxy="-109.122" />
         <MaxScaleDenominator>15000</MaxScaleDenominator>
     </Layer>
   </Layer>
</Capability>
</WMS_Capabilities>


On 4/8/2013 12:23 PM, Tom Kralidis wrote:
>> Date: Mon, 8 Apr 2013 12:17:29 -0400
>> From: woodbri at swoodbridge.com
>> To: mapserver-dev at lists.osgeo.org
>> Subject: [mapserver-dev] GetCapabilities and schema validation issues
>>
>> Hi All,
>>
>> A user working with geoserver and mapserver is working on an intranet
>> with no internet access. It looks like when geoserver is configured to
>> pull maps from mapserver it issues a getCapabilities request that
>> mapserver faithfully serves up, then geoserver issues a request to get
>> xsd to validate it.
>>
>> This is where we have a problem, because we can not access
>> http://schemas.opengis.net because there is not internet access.
>>
>> QUESTION(S):
>>
>> 1. I need to ask if there is a way to turn of schema validation in
>> geoserver, but probably better asked on geoserver list
>>
>> 2. Is there an easy way to change the host where the xsd is located to
>> one on the local intranet?
>>
>
> Try setting MAP.WEB.METADATA.ows_schemas_location (http://mapserver.org/ogc/wms_server.html#web-object-metadata)?
>
>> Any other ideas on how to work around this at the application level and
>> not by hacking the network or DNS configs?
>>
>> -Steve W
> ts.osgeo.org/mailman/listinfo/mapserver-dev 		 	   		
>



More information about the mapserver-dev mailing list