public static class GeoRegion.Impl extends GeoPath.Impl implements GeoRegion
GeoPath.Impl.PointIt, GeoPath.Impl.SegIt
GeoRegion.Impl
GeoPath.PointIterator, GeoPath.SegmentIterator
bc, id, length, pts
Constructor and Description |
---|
GeoRegion.Impl(double[] lls)
Create a region of LatLon pairs.
|
GeoRegion.Impl(double[] lls,
boolean isDegrees)
Create a region of LatLon pairs.
|
GeoRegion.Impl(Geo[] coords) |
GeoRegion.Impl(GeoArray points)
Create a region from a GeoArray.
|
Modifier and Type | Method and Description |
---|---|
BoundingCircle |
getBoundingCircle()
compute a point and radius around the extent.
|
java.lang.Object |
getRegionId()
Deprecated.
use getID() instead.
|
boolean |
isPointInside(Geo p)
Is the Geo inside the region?
|
boolean |
isSegmentNear(GeoSegment s,
double epsilon)
Does the segment s come within epsilon (in radians) of us?
|
void |
setRegionId(java.lang.Object rid)
Deprecated.
use getID() instead.
|
getID, getPathID, getPointID, getPoints, getSegID, length, pointIterator, segmentIterator, setID, setPoints, setPoints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPoints, length, pointIterator, segmentIterator
public GeoRegion.Impl(Geo[] coords)
public GeoRegion.Impl(double[] lls)
lls
- alternating lat/lon in decimal degrees.public GeoRegion.Impl(double[] lls, boolean isDegrees)
lls
- alternating lat/lon values.isDegrees
- true if lat/lon are in degrees, false if in radians.public GeoRegion.Impl(GeoArray points)
points
- public void setRegionId(java.lang.Object rid)
public java.lang.Object getRegionId()
public boolean isSegmentNear(GeoSegment s, double epsilon)
GeoPath
isSegmentNear
in interface GeoPath
isSegmentNear
in class GeoPath.Impl
public boolean isPointInside(Geo p)
GeoRegion
isPointInside
in interface GeoRegion
public BoundingCircle getBoundingCircle()
GeoExtent
getBoundingCircle
in interface GeoExtent
getBoundingCircle
in class GeoPath.Impl
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details