Package org.geotools.data.mongodb
Interface CollectionMapper
-
- All Known Implementing Classes:
AbstractCollectionMapper,GeoJSONMapper,MongoInferredMapper,MongoSchemaMapper
public interface CollectionMapperA strategy for mapping a mongo collection to a feature.- Author:
- Justin Deoliveira, OpenGeo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SimpleFeaturebuildFeature(DBObject obj, SimpleFeatureType featureType)SimpleFeatureTypebuildFeatureType(Name name, DBCollection collection)GeometrygetGeometry(DBObject obj)StringgetGeometryPath()StringgetPropertyPath(String property)voidsetGeometry(DBObject obj, Geometry g)DBObjecttoObject(Geometry g)
-
-
-
Method Detail
-
getGeometry
Geometry getGeometry(DBObject obj)
-
setGeometry
void setGeometry(DBObject obj, Geometry g)
-
toObject
DBObject toObject(Geometry g)
-
getGeometryPath
String getGeometryPath()
-
buildFeatureType
SimpleFeatureType buildFeatureType(Name name, DBCollection collection)
-
buildFeature
SimpleFeature buildFeature(DBObject obj, SimpleFeatureType featureType)
-
-