anl.aida.gis
Class FeatureSpatialMap
java.lang.Object
anl.aida.gis.FeatureSpatialMap
public class FeatureSpatialMap
- extends java.lang.Object
Stores a feature in a spatial index. The feature geometry is converted to
WGS84.
Field Summary |
private org.opengis.referencing.crs.CoordinateReferenceSystem |
crs
|
private com.vividsolutions.jts.index.SpatialIndex |
index
|
private static simphony.util.messages.MessageCenter |
msg
|
private org.opengis.referencing.crs.CoordinateReferenceSystem |
wgs84
|
private org.opengis.referencing.operation.MathTransform |
wgsToLocal
|
Constructor Summary |
FeatureSpatialMap(org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> features)
|
FeatureSpatialMap(java.io.File shapeFile)
|
Method Summary |
private void |
addFeatures(org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> features)
|
java.util.List<org.opengis.feature.simple.SimpleFeature> |
findFeature(com.vividsolutions.jts.geom.Point pt)
Gets the list of features that contain the specified point. |
private void |
initCRS()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
msg
private static simphony.util.messages.MessageCenter msg
index
private com.vividsolutions.jts.index.SpatialIndex index
crs
private org.opengis.referencing.crs.CoordinateReferenceSystem crs
wgs84
private org.opengis.referencing.crs.CoordinateReferenceSystem wgs84
wgsToLocal
private org.opengis.referencing.operation.MathTransform wgsToLocal
FeatureSpatialMap
public FeatureSpatialMap(java.io.File shapeFile)
FeatureSpatialMap
public FeatureSpatialMap(org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> features)
initCRS
private void initCRS()
addFeatures
private void addFeatures(org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> features)
findFeature
public java.util.List<org.opengis.feature.simple.SimpleFeature> findFeature(com.vividsolutions.jts.geom.Point pt)
- Gets the list of features that contain the specified point. Assumes the
point is in WGS84.
- Parameters:
pt
- the point
- Returns: