title: Generate a polygon from a line(GPS coordinate) in a defined distance(km) with geotools in JAVA
body: <p>With geotools would it be possible that generating a polygon from a line (coords[]) in a defined distance?
  E.g. (100,100), (101,100), (102,100) with distance 1km.
  So from each point it generates a circle and becomes sth. like:</p>
  
  <p>--------------           before</p>
  
  <p>(========)        after</p>
  
  <p>Or I have to firstly convert GPS coordinates into orthogonal coordinates in km, and then generating a polygon using Trigonometric functions, and finally, convert it back into GPS? </p>