Package org.geotools.data.mongodb
Class GeoJSONMapper
- Object
-
- AbstractCollectionMapper
-
- GeoJSONMapper
-
- All Implemented Interfaces:
CollectionMapper
public class GeoJSONMapper extends AbstractCollectionMapper
Maps a collection containing valid GeoJSON.- Author:
- Justin Deoliveira, OpenGeo
-
-
Field Summary
-
Fields inherited from class AbstractCollectionMapper
MONGO_OBJECT_FEATURE_KEY
-
-
Constructor Summary
Constructors Constructor Description GeoJSONMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleFeatureTypebuildFeatureType(Name name, DBCollection collection)GeometrygetGeometry(DBObject obj)StringgetGeometryPath()StringgetPropertyPath(String property)voidsetGeometry(DBObject obj, Geometry g)DBObjecttoObject(Geometry g)-
Methods inherited from class AbstractCollectionMapper
buildFeature
-
-
-
-
Method Detail
-
getGeometryPath
public String getGeometryPath()
-
getGeometry
public Geometry getGeometry(DBObject obj)
-
toObject
public DBObject toObject(Geometry g)
-
setGeometry
public void setGeometry(DBObject obj, Geometry g)
-
buildFeatureType
public SimpleFeatureType buildFeatureType(Name name, DBCollection collection)
-
-