Package org.geotools.data.mongodb
Interface CollectionMapper
-
- All Known Implementing Classes:
AbstractCollectionMapper
,GeoJSONMapper
,MongoInferredMapper
,MongoSchemaMapper
public interface CollectionMapper
A 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 SimpleFeature
buildFeature(DBObject obj, SimpleFeatureType featureType)
SimpleFeatureType
buildFeatureType(Name name, DBCollection collection)
Geometry
getGeometry(DBObject obj)
String
getGeometryPath()
String
getPropertyPath(String property)
void
setGeometry(DBObject obj, Geometry g)
DBObject
toObject(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)
-
-