org.gbanga.api.geojson
Class LineString

java.lang.Object
  extended by org.gbanga.api.geojson.Geometry
      extended by org.gbanga.api.geojson.LineString

public class LineString
extends Geometry

The line string is a geometry object in the GeoJSON standard.

Author:
Matthias
See Also:
GeoJSON.org, linestring

Field Summary
 float[][] coordinates
          Polygons consist of an array with one element (outer array) and the coordinates of the line (inner arrays).
 java.lang.String type
          The named type of a line string.
 
Constructor Summary
LineString(java.util.Collection<Coordinates> ps)
          Creates a line string with a given collection of coordinates (order-sensitive).
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coordinates

public float[][] coordinates

Polygons consist of an array with one element (outer array) and the coordinates of the line (inner arrays).

Example:

[
     [13.359375, 31.2890625], 
     [0, 17.9296875], 
     [9.84375, 5.9765625], 
 ]


type

public java.lang.String type
The named type of a line string.

Constructor Detail

LineString

public LineString(java.util.Collection<Coordinates> ps)
Creates a line string with a given collection of coordinates (order-sensitive).

Parameters:
ps - an order-sensitive collection of coordinates