Package org.geotools.data.mongodb
Class MongoSchemaMapper
- Object
-
- AbstractCollectionMapper
-
- MongoSchemaMapper
-
- All Implemented Interfaces:
CollectionMapper
public class MongoSchemaMapper extends AbstractCollectionMapper
- Author:
- tkunicki@boundlessgeo.com
-
-
Field Summary
-
Fields inherited from class AbstractCollectionMapper
MONGO_OBJECT_FEATURE_KEY
-
-
Constructor Summary
Constructors Constructor Description MongoSchemaMapper(SimpleFeatureType schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleFeatureType
buildFeatureType(Name name, DBCollection collection)
Geometry
getGeometry(DBObject dbo)
String
getGeometryPath()
String
getPropertyPath(String property)
void
setGeometry(DBObject dbo, Geometry g)
DBObject
toObject(Geometry g)
-
Methods inherited from class AbstractCollectionMapper
buildFeature
-
-
-
-
Constructor Detail
-
MongoSchemaMapper
public MongoSchemaMapper(SimpleFeatureType schema)
-
-
Method Detail
-
getGeometryPath
public String getGeometryPath()
-
getGeometry
public Geometry getGeometry(DBObject dbo)
-
toObject
public DBObject toObject(Geometry g)
-
setGeometry
public void setGeometry(DBObject dbo, Geometry g)
-
buildFeatureType
public SimpleFeatureType buildFeatureType(Name name, DBCollection collection)
-
-