Package edu.ucsb.nceas.metacat.spatial
Class SpatialDocument
java.lang.Object
edu.ucsb.nceas.metacat.spatial.SpatialDocument
Class representing the spatial portions of an xml document as a geotools
Feature.
-
Constructor Summary
ConstructorDescriptionSpatialDocument
(String docid, DBConnection dbconn) Constructor that queries the db -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.feature.simple.SimpleFeature
Returns a geotools (multi)point feature with geometry plus attributes ready to be inserted into our spatial dataset cacheorg.opengis.feature.simple.SimpleFeature
Returns a geotools (multi)polygon feature with geometry plus attributes ready to be inserted into our spatial dataset cache
-
Constructor Details
-
SpatialDocument
Constructor that queries the db- Parameters:
docid
- The document id to be represented spatiallydbconn
- The database connection shared from the refering method.
-
-
Method Details
-
getPolygonFeature
public org.opengis.feature.simple.SimpleFeature getPolygonFeature()Returns a geotools (multi)polygon feature with geometry plus attributes ready to be inserted into our spatial dataset cache -
getPointFeature
public org.opengis.feature.simple.SimpleFeature getPointFeature()Returns a geotools (multi)point feature with geometry plus attributes ready to be inserted into our spatial dataset cache
-