[Geoserver-devel] Versioned feature collection support in, please test

Hi,
I've just committed on 1.6.x the support for
GetVersionedFeatureCollection, which will return a
feature collection with 4 extra attributes, author,
date, message and version, all related to the latest
changes.

In order to use it, you'll have to build both gt2 2.4.x
and gs 1.6.x.

I've also added new sample calls in the versioning
configuration. Documentation is still pending, but
if all you want to do is to grab the versioned feature
collection you might use a query like:

<wfsv:GetVersionedFeature service="WFSV" version="1.0.0"
   outputFormat="GML2"
   xmlns:topp="http://www.openplans.org/topp&quot;
   xmlns:wfs="http://www.opengis.net/wfs&quot;
   xmlns:wfsv="http://www.opengis.net/wfsv&quot;
   xmlns:ogc="http://www.opengis.net/ogc&quot;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
   xsi:schemaLocation="http://www.opengis.net/wfsv
http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-versioninig.xsd&quot;&gt;
   <wfs:Query typeName="topp:archsites">
     <ogc:Filter>
        <ogc:FeatureId fid="archsites.1"/>
        <ogc:FeatureId fid="archsites.2"/>
        <ogc:FeatureId fid="archsites.26"/>
     </ogc:Filter>
   </wfs:Query>
</wfsv:GetVersionedFeature>

Remember to specify explicitly the GML2 output format,
WFS 1.0 output is not fully working and if you don't
specify it you'll get GML3 output instead.

Let me know if it works, and if anything broke... I
had to do quite some major changes to add this
extra operation.

Cheers
Andrea

Great work Andrea.

As Andrea said this was not easy, and exposed some major holes in our
implementation of how geoserver builds objects which represents the xml
schemas, which the xml parsers and encoders need to function. As Andrea
found out painfully if they are not composed correctly, the parser +
encoder do not work very well.

I suggest that before much more functionality is built into versioning
that we fix this issue. I have fixed half of the problem on geotools
trunk but still have work to do in GeoServer. It is not a ton of work
but considerable.

Otherwise i fear that everyone who tries to tackle this will suffer the
same painful state as Andrea did.

My 2c

-Justin

Andrea Aime wrote:

Hi,
I've just committed on 1.6.x the support for
GetVersionedFeatureCollection, which will return a
feature collection with 4 extra attributes, author,
date, message and version, all related to the latest
changes.

In order to use it, you'll have to build both gt2 2.4.x
and gs 1.6.x.

I've also added new sample calls in the versioning
configuration. Documentation is still pending, but
if all you want to do is to grab the versioned feature
collection you might use a query like:

<wfsv:GetVersionedFeature service="WFSV" version="1.0.0"
   outputFormat="GML2"
   xmlns:topp="http://www.openplans.org/topp&quot;
   xmlns:wfs="http://www.opengis.net/wfs&quot;
   xmlns:wfsv="http://www.opengis.net/wfsv&quot;
   xmlns:ogc="http://www.opengis.net/ogc&quot;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
   xsi:schemaLocation="http://www.opengis.net/wfsv
http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-versioninig.xsd&quot;&gt;
   <wfs:Query typeName="topp:archsites">
     <ogc:Filter>
        <ogc:FeatureId fid="archsites.1"/>
        <ogc:FeatureId fid="archsites.2"/>
        <ogc:FeatureId fid="archsites.26"/>
     </ogc:Filter>
   </wfs:Query>
</wfsv:GetVersionedFeature>

Remember to specify explicitly the GML2 output format,
WFS 1.0 output is not fully working and if you don't
specify it you'll get GML3 output instead.

Let me know if it works, and if anything broke... I
had to do quite some major changes to add this
extra operation.

Cheers
Andrea

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,476046f9245411336712104!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org