Exemple #1
0
 /**
  * Returns the last <code>Point</code> of this <code>LineString</code>.
  *
  * @return the last <code>Point</code> of this <code>LineString</code>.
  */
 public Point getEndPoint() {
   return isEmpty() ? Points.createEmpty() : getPointN(getNumPoints() - 1);
 }
Exemple #2
0
 /**
  * Returns the first <code>Point</code> of this <code>LineString</code>.
  *
  * @return the first <code>Point</code> of this <code>LineString</code>.
  */
 public Point getStartPoint() {
   return isEmpty() ? Points.createEmpty() : getPointN(0);
 }