public class MortonContext extends Object
This class holds the the maximum spatial extent and tree-depth of the implied
QuadTree-index for a MortonCode
.
Constructor and Description |
---|
MortonContext(Envelope extent,
int depth)
Constructs a
MortonContext with the specified extent and max. |
Modifier and Type | Method and Description |
---|---|
boolean |
extentContains(Envelope envelope)
Checks whether the specified
Envelope is contained in the extent. |
boolean |
extentContains(Point pnt)
Checks whether the specified
Point is contained in the extent. |
CrsId |
getCrsId()
Returns the CrsId of the spatial extent
|
int |
getDepth()
Returns the maximum tree-depth
|
Envelope |
getExtent()
Returns the spatial extent of this instance
|
double |
getMaxX()
Returns the maximum X-coordinate of the extent.
|
double |
getMaxY()
Returns the maximum Y-coordinate of the extent.
|
double |
getMinX()
Returns the minimum X-coordinate of the extent
|
double |
getMinY()
Returns the minimum Y-coordinate of the extent
|
public MortonContext(Envelope extent, int depth)
MortonContext
with the specified extent and max. tree-depthextent
- the extent for this instancedepth
- the tree-depthpublic double getMaxX()
public double getMaxY()
public double getMinX()
public double getMinY()
public int getDepth()
public CrsId getCrsId()
public boolean extentContains(Point pnt)
Point
is contained in the extent.pnt
- a Point
valueIllegalArgumentException
- if the specified point does not share this extent's CrsId
public boolean extentContains(Envelope envelope)
Envelope
is contained in the extent.envelope
- an Envelope
valueIllegalArgumentException
- if the specified envelope does not share this extent's CrsId
public Envelope getExtent()
Envelope
representing the spatial extent of this instanceCopyright © 2015 geolatte.org. All rights reserved.