how to programmatically create circles?

4 messages
Open this post in threaded view
|

how to programmatically create circles?

 Hi, In my uDig/Geotools based application I have to programmatically create circle geometries based on centre + radius. I assume it will only affect geotools + JTS functionalities. I found this: http://docs.codehaus.org/display/GEOTDOC/01+How+to+Create+a+Geometry#id-01HowtoCreateaGeometry-CreatingaCircleHowever, my center is a Point in WGS84 and the radius is given in [m]/[km]. I guess I have to convert at first my center into another CRS, create the circle geometry and then, convert the geometry back into WGS84. Could anyone provide me the details how to realize these transformations and which CRS I have to use? Thanks, Matthias ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ GeoTools-GT2-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Open this post in threaded view
|

Re: how to programmatically create circles?

 On Tue, Sep 11, 2012 at 3:20 PM, Matthias Lendholt wrote: Hi, In my uDig/Geotools based application I have to programmatically create circle geometries based on centre + radius. I assume it will only affect geotools + JTS functionalities. I found this: http://docs.codehaus.org/display/GEOTDOC/01+How+to+Create+a+Geometry#id-01HowtoCreateaGeometry-CreatingaCircle However, my center is a Point in WGS84 and the radius is given in [m]/[km]. I guess I have to convert at first my center into another CRS, create the circle geometry and then, convert the geometry back into WGS84. Could anyone provide me the details how to realize these transformations and which CRS I have to use?Have a look at the PointBuffers process, also described here: http://geo-solutions.blogspot.it/2010/11/fun-stuff-computing-circular-buffers-in.html (back at the time it was in GeoServer, now it is in GeoTools process-vector unsupported module)CheersAndrea -- == Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.==Ing. Andrea Aime @geowolf Technical LeadGeoSolutions S.A.S.Via Poggio alle Viti 118755054  Massarosa (LU)Italyphone: +39 0584 962313fax:   +39 0584 962313 mob:   +39  339 8844549http://www.geo-solutions.ithttp://twitter.com/geosolutions_it ------------------------------------------------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ GeoTools-GT2-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users