Bastian Schäffer ha scritto:
> Hi Andrea,
> 
> thank you for the clarifications.
> 
> We use GML3,
> 
> ***snip***
> configuration = new
> org.geotools.gml3.ApplicationSchemaConfiguration(namespace, schemaLocation);
>               
> encoder = new org.geotools.xml.Encoder(configuration);
> encoder.setNamespaceAware(true);
> encoder.setSchemaLocation("http://www.opengis.net/gml
> http://schemas.opengis.net/gml/3.1.1/base/feature.xsd";, namespace + " "
> + schemaLocation);
> QName ns = new
> QName("http://www.opengis.net/gml","FeatureCollection","wfs";);
> 
> encoder.encode(featureCollection, ns, os);
> ***snip***
> 
> the outcome is
> http://www.opengis.net/gml/srs/epsg.xml#4326
> 
> which is not compliant to the current OGC policy. I am under the
> impression that if such an URL is used, then is should be the correct one.

Hum, I'm not the expert in the area but as far as I remember you get
the proper srsName if you get the proper axis orientation, otherwise
you get the old name for backwards compatibility.
Here is the rationale (see "The axis order issue"):
http://geoserver.org/display/GEOSDOC/2.+WFS+-+Web+Feature+Service

Have you seen the GeoServer GML3 output?

> So my question is, how can we switch it?

Not sure if GeoServer is doing anything specific to get the urn
names pop up. Justin should know more.

> Besides, do GML2 and GML3 differ in terms of srsName? Do they dictate at
> all what goes into the srsName? Clemens Portele as the chairman of the
> GML standards group told me: "GML does not prescribe any specific CRS
> registry or identifier set"

Right, Geotools handles all vector data access and GML encoding from
a WFS perspective, which is not surprising since GeoServer developers
heavily contribute back to Geotools.
uDig adds the desktop perspective with data listeners, the recent
work on the map context, they have been long time maintainers of
rendering, etc.

52N WPS has certainly another perspective to contribute, please
join in and help us making GeoTools more useful for you as well.

Cheers
Andrea


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

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to