HI,
as you might be aware, I've been working on adding circular arc based
geometry
support to GeoTools by creating various subclasses of LinearString and
LinearRing
that contains the arcs of circle control points, and that linearize
themselves
on the fly if any normal JTS method is used (the class works by delegation,
builds on the fly a linearized version of itself and then delegates all the
topological
methods to it).

Doing this work I've found I had to add a couple of hacks that might not
have
been necessary if JTS own code was a bit more extensible.
In particular:
* LinearRing.validateConstruction is private, however for a CircularRing I
would have
  needed a different logic
* The code is calling super.isClosed() instead of isClosed(), also
disallowing
  subclasses to override that method

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to