## geotools-gt2-users

 [Geotools-gt2-users] Centerpoint between two points From: - 2010-04-08 18:22:45 ```Hi, can you please tell me the best way to calculate the center point between two other given points with latitude and longitude? Thx, Torgue -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 ```
 Re: [Geotools-gt2-users] Centerpoint between two points From: Ian Turton - 2010-04-08 20:12:10 ```On Thu, Apr 8, 2010 at 2:22 PM, wrote: > Hi, > > can you please tell me the best way to calculate the center point  between two other given points with latitude and longitude? x=(x2-x1)/2 y = (y2 - y1)/2 Or did you mean something else? Ian -- Ian Turton ```
 Re: [Geotools-gt2-users] Centerpoint between two points From: Torx - 2010-04-09 08:13:20 ```I just want to do some calculations on geographic coordinates with geotools. But I can't find it in the complex reference. Something like Pseudocode Point point1 = new Point(40.154,5.787); Point point2 = new Point(38.489,10.478); Point center = SomehelperClass.calculateCenter(point1,point2); -- View this message in context: http://n2.nabble.com/Centerpoint-between-two-points-tp4872890p4875796.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ```
 Re: [Geotools-gt2-users] Centerpoint between two points From: Michael Bedward - 2010-04-23 04:22:08 ```On 9 April 2010 17:54, Torx wrote: > > I just want to do some calculations on geographic coordinates with geotools. > But I can't find it in the complex reference. Ian's simple suggestion is all you need, but for other operations with geographic coordinates (e.g. distance, azimuth) have a look at the very handy GeodeticCalculator class... http://geotools.org/javadocs/org/geotools/referencing/GeodeticCalculator.html Michael ```