Hi Andrea,

Perhaps it doesn't need any tinkering to do what Hendrik needs because
there is already a shapeToGeometry method in the JTS utility class.

But after saying that, it does seem a bit odd to have
GeodeticCalculator spitting out Shapes. I guess this reflected some
(common ?) use case but wouldn't it be more natural for it to return
an array or List of Point2Ds or DirectPositions ?

Michael

On 14 March 2011 18:49, Andrea Aime <[email protected]> wrote:
>
> 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