@groovy.transform.CompileStatic abstract class GeoJSONType<T extends Shape> extends AbstractMappingAwareCustomTypeMarshaller<T, Document, 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 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, Document nativeQuery) |
|
protected T |
readInternal(PersistentProperty property, java.lang.String key, Document nativeSource) |
|
boolean |
supports(MappingContext context) |
|
boolean |
supports(Datastore datastore) |
|
protected java.lang.Object |
writeInternal(PersistentProperty property, java.lang.String key, T value, Document nativeTarget) |