Jukka,
you're right - EPSG should be upper case. I wanted to address two different 
things in my last post: use of srs in the bbox parameter in GET requests (now 
traced as #3183, thanks Assefa) and the ability to define a output srs (which 
is not implemented as far I can see).

My map and layer projections are defined as EPSG:31468. Defining a srsName in 
get or post requests ...


http://.../mapserv56b4?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=test&srsName=EPSG:4326

<?xml version="1.0" ?>
<wfs:GetFeature
        service="WFS"
        version="1.1.0"
        outputFormat="text/xml; subtype=gml/3.1.1"
        srsName='EPSG:4326'
        xmlns:wfs="http://www.opengis.net/wfs";
        xmlns:ogc="http://www.opengis.net/ogc";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">
<wfs:Query typeName="test"></wfs:Query>
</wfs:GetFeature>


... leads to "msWFSGetFeature(): WFS server error. Invalid GetFeature Request: 
SRSNAME value should be valid for all the TYPENAMES. Please check the 
capabilities and reformulate your request." Having the capabilities in mind 
it's correct as there are no <OtherSRS> listed. But it would be a very useful 
feature I think and I wonder if there are plans to implement it.

Only for testing purposes, I did modify map->projection right before calling 
msGMLWriteWFSQuery() and I think there are only litte changes required.

Martin

-------- Original-Nachricht --------
> Datum: Tue, 20 Oct 2009 15:32:21 +0300
> Von: "Rahkonen Jukka" <[email protected]>
> An: "Martin Kofahl" <[email protected]>, [email protected]
> Betreff: Re: [mapserver-users] use of srsName in wfs 1.1

> Hi,
> 
> It would be much easier to repeat your situation if you could mail us
> the whole GetFeature requests you have been trying. First thing that
> comes into my mind is that it would be good to try to follow the
> standard text as strictly as possible.  For example, while using
> epsg:31469 instead of EPSG:31469 may work, I think it probably
> shouldn't.  At least is some place the standars says:
> 
> "Additional GET parameters, as described in this section, shall be
> expressed as name-value pairs. Parameter names shall not be case
> sensitive. Parameter values shall be case sensitive. Parameters in a
> request may be specified in any order."
> 
> -Jukka Rahkonen-
> 
> > Martin Kofahl wrote:
> > 
> > Hi,
> > I'm interested in querying a MapServer 5.6-beta4 WFS 1.1 
> > service with different projection parameters.
> > 
> > According to chapter 14.3.3  of the wfs 1.1 spec one can 
> > define different reference systems for the bbox (GET-style)
> >     &bbox=4393767,5877790,4673506,6071483,epsg:31468
> > and for the gml output
> >     &srsName=epsg:4326
> > 
> > However, my attempts were in vain. I can choose between 
> > "Wrong number of arguments for BBOX" and "SRSNAME value 
> > should be valid for all the TYPENAMES".
> > 
> > Someone can help me?
> > Martin
> > _______________________________________________
> > mapserver-users mailing list
> > [email protected]
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > 
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to