On Mon, Mar 14, 2011 at 2:05 AM, Michael Bedward
<[email protected]> wrote:
> It would be nice if GeodeticCalculator had a getGeodeticCurve method
> that returned a JTS Geometry rather than a java.awt.Shape. But the
> referencing module avoids depending on JTS so I guess this isn't
> possible (?)

Correct. I was thinking that a cool way to address it would be doing a quick WPS
process with annotations. These kind of processes remain pretty usable
to the normal java programmer, see this one that I've made which
solves a related problem
using again the GeodeticCalculator:

http://svn.codehaus.org/geoserver/trunk/src/extension/wps/wps-core/src/main/java/org/geoserver/wps/gs/PointBuffers.java

and some description/screenshot of what it does:
http://geo-solutions.blogspot.com/2010/11/fun-stuff-computing-circular-buffers-in.html

We'd need to backport the annotations from GeoServer to GeoTools to
do that, which would take a bit of time, but afaik Jody is interested
in doing that.

In any case, even if it's not a process writing a stand alone tool
using the geodetic
calculator would not be hard.
Ah, another, probably simpler, possibility is to have the caculator
itself return a double[] with all
the coordinates instead of a LineString

Cheers
Andrea

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to