public class Line extends Object
double[]
 coordinates.
 NOTES:
spatial-extras module
 | Modifier and Type | Field and Description | 
|---|---|
| double | maxLatmaximum latitude of this line's bounding box | 
| double | maxLonmaximum longitude of this line's bounding box | 
| double | minLatminimum latitude of this line's bounding box | 
| double | minLonminimum longitude of this line's bounding box | 
| Constructor and Description | 
|---|
| Line(double[] lats,
    double[] lons)Creates a new Line from the supplied latitude/longitude array. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| double | getLat(int vertex)Returns latitude value at given index | 
| double[] | getLats()Returns a copy of the internal latitude array | 
| double | getLon(int vertex)Returns longitude value at given index | 
| double[] | getLons()Returns a copy of the internal longitude array | 
| int | hashCode() | 
| int | numPoints()returns the number of vertex points | 
| String | toGeoJSON()prints polygons as geojson | 
| String | toString() | 
public final double minLat
public final double maxLat
public final double minLon
public final double maxLon
public Line(double[] lats,
            double[] lons)
public int numPoints()
public double getLat(int vertex)
public double getLon(int vertex)
public double[] getLats()
public double[] getLons()
public String toGeoJSON()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.