public class XMLBoundingBoxIndexer extends BoundingBoxIndexer implements io.georocket.index.xml.XMLIndexer, io.georocket.index.CRSAware
| Modifier and Type | Field and Description |
|---|---|
protected org.opengis.referencing.crs.CoordinateReferenceSystem |
crs
The detected CRS or
null if either there was no CRS in the
chunk or if it was invalid |
protected java.lang.String |
crsStr
The string of the detected CRS
|
protected boolean |
flippedCRS
True if x and y are flipped in
crs |
protected int |
srsDimension
The spatial dimension of the element we're currently parsing or
-1 if it could not be determined or if we are currently
not parsing an element with spatial content. |
protected org.opengis.referencing.operation.MathTransform |
transform
A transformation from
crs to WGS84. |
boundingBoxInitialized, maxX, maxY, minX, minY| Constructor and Description |
|---|
XMLBoundingBoxIndexer() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isFlippedCRS(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Check if x and y are flipped in the given CRS
|
void |
onEvent(io.georocket.util.XMLStreamEvent event) |
void |
setFallbackCRSString(java.lang.String crsStr) |
addToBoundingBox, getResultprotected java.lang.String crsStr
protected org.opengis.referencing.crs.CoordinateReferenceSystem crs
null if either there was no CRS in the
chunk or if it was invalidprotected boolean flippedCRS
crsprotected org.opengis.referencing.operation.MathTransform transform
protected int srsDimension
-1 if it could not be determined or if we are currently
not parsing an element with spatial content.public static boolean isFlippedCRS(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
crs - the CRSpublic void setFallbackCRSString(java.lang.String crsStr)
setFallbackCRSString in interface io.georocket.index.CRSAwarepublic void onEvent(io.georocket.util.XMLStreamEvent event)
onEvent in interface io.georocket.index.xml.StreamIndexer<io.georocket.util.XMLStreamEvent>