Hi,

If the timestamps are attributtes, then you just need to create a query 
that sorts by that attributte, and then you can go through the result 
list. Like there is no special function to get a feature which id is 
exactly before an other feature's id. (or is there?)

Peter

Sunburned Surveyor wrote:
> I know that working with time (temporal features) in GIS can get
> really complex really quickly, but I want to cautiously ask about
> existing support in GeoTools for SimpleFeatures with one or more
> temporal attributes.
> 
> I know that Peter began to explore this area a little bit with his GPX
> code, and there are a couple of Temporal classes there. Is there other
> temporal support in GeoTools?
> 
> What I'm looking for is pretty simple. Here is an example:
> 
> Given a set of SimpleFeature objects that represent waypoints, find
> the waypoint in the set that is immediately "before" a given waypoint
> in the set. Here is what the method signature might look like:
> 
> public void getWaypointImmediatelyBefore(Collection<WaypointSimpleFeature>
> argWaypoints)
> {
>    // Implementation goes here...
> }
> 
> There would be other similar, but simple methods. I thought I would
> bounce this by the mailing list before I took off on my own crazy
> implementation using Joda. I don't know if a "temporal feature" is
> something that could be abstracted with an interface, but maybe
> someone has already done it!
> 
> Thanks for any suggestions.
> 
> Landon
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to