[mapserver-users] OtherSRS is not shown in WFS Capabilities

Mauricio Pazos mauricio.pazos at axios.es
Mon Feb 22 10:16:23 EST 2010


Hello everyone, 

I have configured the WFS  to provide many SRS as output like is shown in the 
example http://www.mapserver.org/ogc/wfs_server.html.

This is part of the mapfile


MAP
        NAME "WFS"
        STATUS ON
        SIZE 400 300
        EXTENT 530000 4740000 610000 4820000
        UNITS METERS
        IMAGECOLOR 255 255 255
WEB
        METADATA
                "wfs_title"             "WFS"
                "wfs_abstract"          "Web Feature Service Default TEST"
                "wfs_onlineresource"    "http://192.168.2.22/cgi-bin/wfs?"
                "wfs_srs"               "EPSG:23030 EPSG:25830 EPSG:4326"
        END
END

PROJECTION
        "init=epsg:23030"
END

LAYER
        NAME "RIVER_BASIN"
        METADATA
                "wfs_title"             "RIVER_BASIN"
                "wfs_abstract"          "River Basin"
                "wfs_extent"            "515055 4740000 624945 4810000"
                "gml_featureid"         "ID"
                "gml_include_items"     "all"
        END
        TYPE POLYGON
        STATUS ON
        CONNECTIONTYPE oraclespatial
        CONNECTION "WFSNEW/axios at orcl"
        DATA "GEOM FROM VRIVER_BASIN USING UNIQUE ID SRID 23030 VERSION 10g"
        PROJECTION
                  "init=epsg:23030"
        END
        DUMP TRUE
        CLASS
                STYLE
                        OUTLINECOLOR 0 0 0
                        COLOR 120 120 120
                END
        END
END # RIVER_BASIN

As you can see there are three SRSs specified "EPSG:23030 EPSG:25830 EPSG:4326" 
as output in the web metadata section, but the capabilities operation present 
only the first (EPSG:23030) as DefaultSRS element. 

This is part of the capability response

<wfs:WFS_Capabilities version="1.1.0" 
xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">

...

<FeatureTypeList>

<Operations>
<Operation>Query</Operation>
</Operations>

<FeatureType>
 <Name>RIVER_BASIN</Name>
 <Title>RIVER_BASIN</Title>
 <Abstract>River Basin</Abstract>

 <DefaultSRS>EPSG:23030</DefaultSRS>

<OutputFormats>
 <Format>text/xml; subtype=gml/3.1.1</Format>
</OutputFormats>

...

</ogc:Filter_Capabilities>
</wfs:WFS_Capabilities>


I think it should present 
<DefaultSRS>EPSG:23030</DefaultSRS>
<OtherSRS>EPSG:25830</OtherSRS>
<OtherSRS>EPSG:4326</OtherSRS>

What is wrong? Any idea?

Thanks in advance. 

-- 
Mauricio Pazos
www.axios.es


More information about the mapserver-users mailing list