Property | Type | Description | |
---|---|---|---|
GEO |
Method | Description | |
---|---|---|
GetDistCalc ( ) : DistanceCalculator | ||
GetWorldBounds ( ) : Rectangle |
The extent of x & y coordinates should fit within the return'ed rectangle. Do *NOT* invoke reset() on this return type.
|
|
IsGeo ( ) : bool |
Is this a geospatial context (true) or simply 2d spatial (false).
|
|
MakeCircle ( System.Point point, double distance ) : Circle |
Construct a circle. The units of "distance" should be the same as x & y.
|
|
MakeCircle ( double x, double y, double distance ) : Circle |
Construct a circle. The units of "distance" should be the same as x & y.
|
|
MakePoint ( double x, double y ) : System.Point |
Construct a point.
|
|
MakeRectangle ( System.Point lowerLeft, System.Point upperRight ) : Rectangle |
Construct a rectangle. The parameters will be normalized.
|
|
MakeRectangle ( double minX, double maxX, double minY, double maxY ) : Rectangle |
Construct a rectangle. If just one longitude is on the dateline (+/- 180) then potentially adjust its sign to ensure the rectangle does not cross the dateline.
|
|
SpatialContext ( bool geo ) : System | ||
SpatialContext ( bool geo, DistanceCalculator calculator, Rectangle worldBounds ) : System |
|
|
ToString ( ) : String | ||
VerifyX ( double x ) : void |
Ensure fits in {@link #getWorldBounds()}
|
|
VerifyY ( double y ) : void |
Ensure fits in {@link #getWorldBounds()}
|
Method | Description | |
---|---|---|
MakeShapeReadWriter ( ) : |
Method | Description | |
---|---|---|
ReadShape ( String value ) : Shape | ||
ToString ( Shape shape ) : String |
public MakeCircle ( System.Point point, double distance ) : Circle | ||
point | System.Point | |
distance | double | |
return | Circle |
public MakeCircle ( double x, double y, double distance ) : Circle | ||
x | double | |
y | double | |
distance | double | |
return | Circle |
public MakePoint ( double x, double y ) : System.Point | ||
x | double | |
y | double | |
return | System.Point |
public MakeRectangle ( System.Point lowerLeft, System.Point upperRight ) : Rectangle | ||
lowerLeft | System.Point | |
upperRight | System.Point | |
return | Rectangle |
public MakeRectangle ( double minX, double maxX, double minY, double maxY ) : Rectangle | ||
minX | double | |
maxX | double | |
minY | double | |
maxY | double | |
return | Rectangle |
protected MakeShapeReadWriter ( ) : |
||
return |
public SpatialContext ( bool geo, DistanceCalculator calculator, Rectangle worldBounds ) : System | ||
geo | bool | Establishes geo vs cartesian / Euclidean. |
calculator | DistanceCalculator | Optional; defaults to Haversine or cartesian depending on units. |
worldBounds | Rectangle | Optional; defaults to GEO_WORLDBOUNDS or MAX_WORLDBOUNDS depending on units. |
return | System |