On Mon, Mar 14, 2011 at 11:45 AM, Michael Bedward <[email protected]> wrote: > 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 ?
Duh, forgot the method to compute a geodetic between two points was already there. Yeah, the usage of a Shape sounds certainly odd, unfortunately my predecessor in maintaining that module was very adamant about using only java classes and using the closest java class to the need, even if sometime that make it the interfaces harder to use. We _could_ add a clone of that method returning a double[] or a list of point2d indeed. 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
