Hi,
I've just made the first pull request for arc support:
https://github.com/geotools/geotools/pull/498/files

This one adds:
* CircularArc, the class that manages the linearization and bbox computation
  of a arc of circle by 3 points
* A bunch of actual geometry classes representing linestring and rings, made
  of just circular elements (CircularString, CircularRing) and made of a mix
  of circular and straight elements (CompundCurve, CompoundRing)
* WKTReader2 changed to parse into in memory curve geometry representation
* Integration with geometry converter so that
  Converters.convert("CIRCULARSTRING...", Geometry.class)
  works with all the curved geometries as well
* Rendering optimization, so that curves linearize using a tolerance that's
  compatible with the size of the pixel on screen (so, at just the right
amount
  of detail).

Here is a couple of property files and how they are rendering in the
streaming
rendering tests:

_=geom:LineString:4326,name:String
cp.1=COMPOUNDCURVE(CIRCULARSTRING(0 0, 2 0, 2 1, 2 3, 4 3),(4 3, 4 5, 1 4,
0 0))|Compound
cp.2=CIRCULARSTRING(-10 0, -8 2, -6 0, -8 -2, -10 0)|Circle
cp.3=CIRCULARSTRING(-7 -8, -5 -6, -3 -8, -1 -10, 1 -8))|Wave


​_=geom:Polygon:4326,name:String
cp.1=CURVEPOLYGON(COMPOUNDCURVE(CIRCULARSTRING(0 0, 2 0, 2 1, 2 3, 4 3),(4
3, 4 5, 1 4, 0 0)), CIRCULARSTRING(1.7 1, 1.4 0.4, 1.6 0.4, 1.6 0.5, 1.7 1)
)|Complex
cp.2=CURVEPOLYGON(CIRCULARSTRING(-10 0, -8 2, -6 0, -8 -2, -10 0))|Circle
cp.3=CURVEPOLYGON(CIRCULARSTRING(-7 -8, -5 -6, -3 -8, -5 -10, -7
-8),CIRCULARSTRING(-6 -8, -5 -7, -4 -8, -5 -9, -6 -8))|Donut


​
Feedback welcomed. In the meantime I'm going to move on with GML encoding
and Oracle reading.

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

-------------------------------------------------------
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to