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

Yewondwossen Assefa yassefa at dmsolutions.ca
Mon Feb 22 16:37:02 EST 2010


Hi There,

 There is a trac bug on this issue 
(http://trac.osgeo.org/mapserver/ticket/3227) and should be fixed in the 
next couple of weeks. It would be good if you can add your name to the 
bug to get an update on it and report any issues.

best regards,

Mauricio Pazos wrote:
> 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. 
>
>   


-- 
----------------------------------------------------------------
Assefa Yewondwossen           
Software Analyst   

Email: assefa at dmsolutions.ca    
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------




More information about the mapserver-users mailing list