Thanks so much Martin! This makes a lot more sense to me now.

Landon


On Wed, Aug 7, 2013 at 8:49 AM, Martin Davis <[email protected]> wrote:

> There are big differences:
>
> 1) CoordinateSequenceFilter has access to the entire sequence, while
> CoordinateFilter only sees a single Coordinate at a time.  This means that
> it has no ability to determine the context around the coordinate, which
> prevents using it to implement operations which require using adjacent
> coordinates (or even the entire sequence).
>
> 2) CoordinateSequenceFilter can determine whether a coordinate lies at the
> start or end of the sequence, which allows for special handling for cases
> that need it.
>
> 3) CoordinateSequenceFilter allows access to coordinate values without the
> need of copying them out into a new Coordinate object. This is not possible
> with CoordinateFilter, which means it is not an efficient framework for
> some kinds of algorithms.
>
> In general use CoordinateSequenceFilter instead of CoordinateFilter,
> unless the use case is simple and does not need to be optimized.
>
>
> On Wed, Aug 7, 2013 at 8:25 AM, Landon Blake <[email protected]
> > wrote:
>
>> Is there a major functional difference between CoordinateFilter and
>> CoordinateSequenceFilter? It seems everything you could accomplish with
>> CoordinateSequenceFilter could be done with CoordinateFilter.
>>
>> Is the main distinction the fact that using CoordinateSequenceFilter
>> would indicate when you moved from visiting one ring in a Polygon to the
>> next ring? It seems like you wouldn't get this distinction in an
>> implementation of CoordinateFilter.
>>
>> I'm just trying to understand the key differences in these interfaces,
>> and when you might choose one over the other.
>>
>> Thanks.
>>
>> Landon
>>
>>
>> ------------------------------------------------------------------------------
>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> It's a free troubleshooting tool designed for production.
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in minutes.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Jts-topo-suite-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
>>
>>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Jts-topo-suite-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
>
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to