v...@csiro ha scritto:
> Hi, I am quite new to GeoServer and would like to ask how does geoserver
> determine the srsName?
> I made the request without specifying the srsName
> 
> I have the following mapping 
> 
> <AttributeMapping>
>       <targetAttribute>sa:samplingLocation</targetAttribute>                  
>               <sourceExpression>
>                       <OCQL>LongLat</OCQL>
>               </sourceExpression>
>       <targetAttributeNode>gml:PointPropertyType</targetAttributeNode>
> </AttributeMapping>
> 
> and this is my result
> 
> <gml:Point srsName="urn:x-ogc:def:crs:EPSG:4326">
>   <gml:pos>118.685393377 -26.2059254496</gml:pos> 
>   </gml:Point>
> 
> how does it determine that the srsName is "urn:x-ogc:def:crs:EPSG:4326"? 
> is it derived from the database? if so then how does it know to append
> urn:x-ogc:def:crs

That is forced in by the usage of WFS 1.1. It's the official way to 
express the SRS, everything that's encoded in GML3 is using the urn form
unless the user explicitly asks for a reprojection (in which case you
may end up with EPSG:XYWZ form if that's what the user asked for).

There is no way to configure the GML3 output to use any of the old
SRS expressions. Afaik a server would not pass the CITE tests
if it was using those.

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to