org.eclipse.ohf.stem.definitions.adapters.spatial.geo
Class LatLong
java.lang.Object
org.eclipse.ohf.stem.definitions.adapters.spatial.geo.LatLong
public class LatLong
- extends java.lang.Object
This class is a collection of latitude/longitude data pairs partititioned
into one or more "segments". Each segment is a sequence of latitude/longitude
data pairs. A segment could form a closed polygon or it could be a path. A
LatLong.SegmentBuilder
can be used to construct a LatLong.Segment
.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LatLong
public LatLong()
add
public void add(LatLong.Segment segment)
- Add a segment to a collection
- Parameters:
segment
- the segment to add to the collection
add
public void add(java.util.List<LatLong.Segment> segments)
- Parameters:
segments
- add the list of segments to the collection maintained by
LatLong
add
public void add(LatLong latLong)
- Add the segments from one
LatLong
to this one.
- Parameters:
latLong
- the LatLong
instance that contains the segments
to add.
getSegments
public final java.util.List<LatLong.Segment> getSegments()
- Returns:
- the list of segments
size
public final int size()
- Returns:
- the number of segments
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()