On Sat, Jun 14, 2014 at 1:10 AM, Jody Garnett <[email protected]>
wrote:
> That proposal is still in complete, the API change and tasks are based on
> the proposal template.
>
No existing API will change. I can add a layout of the 2-3 extra methods
that
curved geometries will have, which are mostly mentioned in the proposal
already:
Geometry linearize();
Geometry linearize(tolerance);
The ones containing CircularArc may provide a way to obtain the arcs (but
maybe not, CircularArc could just
be a LineString subclass). I'll fill it in with more details, but don't
think I can give you the full details
of CircularArc without actually implementing it.
I'll fill in more details beginning next week, along with some references
to doc pages to be modified.
> Expect you still thinking of making "control points" that can be edited
> and linearise as needed. What does the control point method look like?
>
It's going to be based on a approach similar to JTS, one segment every x
degrees, just forcing the start
of the sampling not at the beginning of the arc, but at a fixed location
(I've just basically repeated what is
written in the proposal, in the linearization section, but see there, it
has more details)
The approach was also already discussed with you in the geotools-devel
thread referenced by my first mail, I've basically
proposed to implement what you suggested (unless I've misunderstood it).
When you mention control points I think beizer curves, which have no place
is this proposal, we'll only
support arcs of circle (which is also written in the proposal,
"GeoTools ad the moment provides not support for geometries containing
arcs of circle ... This proposal aims to add such support...").
I guess I'll have to make it more explicit?
>
> I note on the location tech front that there has been a license change for
> JTS and some communication with Spatial4j
> <https://www.locationtech.org/proposals/spatial4j>. Is it worth looking
> at what Spatial4J has - my quick inspection shows a Circle. Expect they are
> focused on the geography problem (rather than geometry problem).
>
They have a circle by center point, which is one of the geometries I've
mentioned, but I don't
see much of interest in its implementation (maybe the rectangle/circle
intersection test, which
is also widely described on the internet, but also somehow out of scope, as
stated in the proposal,
the geometry will get linearized when doing JTS topological operations).
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
-------------------------------------------------------
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel