Yes, there's quite a few places where CoordinateSequences should be used instead of getCoordinates. A consequence of them being defined after a lot of the code was written!

Paul Austin wrote:
I'll see if I can create a patch.

I also noticed that getArea for polygon is using the getCoordinates on
the exterior ring. Might be another place to change to coordinate
sequence to eek a little more performance for packed coordinate sequences.

PAul

Martin Davis wrote:
Certainly possible, and definitely a nice to have.   I'll see about
working this into the pipeline.  It's not hard to adapt the existing
code if someone wants to submit a patch.

Paul Austin wrote:
Would it be possible to add additional methods to CGAlgorithms to work
with CoordinateSequences (e.g. for isCCW)?

Cheers,
Paul
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel


_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel


--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022

_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel

Reply via email to