Did you introduce your own FeatureStore? Or are you using one of the existing
ones ....
The WFS 2.0 specification introduced a bunch of new abilities for Filter -
including the concept of Revisions.
I assume you actually want to query the most recent "edit" rather than the most
recent date?
There are two sets of functions:
* Temporal functions included in ECQL (like BEFORE and AFTER)
* FeatureId can now consist of two parts a FeatureId and a RevisionId. Options
exist for fetching the "history" of a FeatureId, the default is to obtain the
most recent revision. As far as I know this was implemented as an experiment
for GeoGig but has not appeared in any stable GeoTools plugin ... yet.
For more information see:
* http://docs.geotools.org/latest/userguide/library/opengis/filter.html#temporal
*
http://docs.geotools.org/latest/userguide/library/opengis/filter.html#identifer
--
Jody Garnett
On 28 August 2014 at 12:49:15 pm, Jim Hughes (jn...@ccri.com) wrote:
Hi all,
Two questions:
Suppose one were using a GeoTools FeatureStore to manage the location
and times of things. 1) Does there exist a natural way using an ECQL
filter and/or a GeoTools query to ask for the most recent location of
the each thing?
If one didn't care about the previous locations, I could imagine
updating the location of each feature as new data streams in. 2) Given
the idea of adding and modifying a feature, is there a standard way to
'add-modifying-if-necessary' features to a FeatureStore?
As a user of the GeoTools api, it seems like one could go to some
lengths to roll this kind of behavior by first querying by attribute
(say by serial number) or by id and then updating the entry. I suppose
I'm curious if there's currently a more direct way.
Thanks,
Jim
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users