Re: [Geotools-gt2-users] Calculate points on an arc

2020-02-04 Thread paul.malm
Thanks, I have it to work now ☺! GREATE! /Paul Från: Ian Turton [mailto:ijtur...@gmail.com] Skickat: den 4 februari 2020 09:15 Till: Malm, Paul (Operations AIM); geotools-users Ämne: Re: [Geotools-gt2-users] Calculate points on an arc It depends on the version of GeoTools you are using - prior

Re: [Geotools-gt2-users] Calculate points on an arc

2020-02-04 Thread Ian Turton
den 3 februari 2020 12:14 > *Till:* Malm, Paul (Operations AIM) > *Kopia:* geotools-users > *Ämne:* Re: [Geotools-gt2-users] Calculate points on an arc > > > > You can use the org.geotools.referencing.GeodeticCalculator to do this, > something like: > > >

Re: [Geotools-gt2-users] Calculate points on an arc

2020-02-03 Thread Ian Turton
You can use the org.geotools.referencing.GeodeticCalculator to do this, something like: private void createPolygon(Point centre, Point start, Point end) { ArrayList coords = new ArrayList<>(); coords.add(start.getCoordinate()); CALC.setStartingGeographicPoint(centre.getX(),

[Geotools-gt2-users] Calculate points on an arc

2020-02-03 Thread paul.malm
Hi list, I would like to draw a circle arc in WGS84 coordinates I have an arc start point (lat/lon in WGS84), an arc end point (lat/lon in WGS84), an arc center point (lat/lon in WGS84), a bearing from the center point to the start point the arc radius in meter. Now I would like to calculate