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 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)
-
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)
-
-