@groovy.transform.CompileStatic abstract class GeoJSONType<T extends Shape> extends AbstractMappingAwareCustomTypeMarshaller<T, org.bson.Document, org.bson.Document>
Abstract class for persisting Shape instances in GeoJSON format. See http://geojson.org/geojson-spec.html
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
COORDINATES |
|
static java.lang.String |
GEO_TYPE |
Constructor and description |
---|
GeoJSONType
(java.lang.Class<T> targetType) |
Type Params | Return Type | Name and description |
---|---|---|
|
static org.bson.Document |
convertToGeoDocument(Shape value) |
|
abstract T |
createFromCoords(java.util.List<java.util.List<java.lang.Double>> coords) |
|
protected void |
queryInternal(PersistentProperty property, java.lang.String key, PropertyCriterion value, org.bson.Document nativeQuery) |
|
protected T |
readInternal(PersistentProperty property, java.lang.String key, org.bson.Document nativeSource) |
|
boolean |
supports(MappingContext context) |
|
boolean |
supports(Datastore datastore) |
|
protected java.lang.Object |
writeInternal(PersistentProperty property, java.lang.String key, T value, org.bson.Document nativeTarget) |