@Immutable public abstract class DefaultGeometry extends Object implements Geometry, Serializable
Modifier and Type | Field and Description |
---|---|
static com.esri.core.geometry.SpatialReference |
SPATIAL_REFERENCE_4326
Default spatial reference for Well Known Text / Well Known Binary.
|
Modifier | Constructor and Description |
---|---|
protected |
DefaultGeometry(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry) |
Modifier and Type | Method and Description |
---|---|
String |
asGeoJson()
Returns a JSON representation of this geospatial type.
|
ByteBuffer |
asWellKnownBinary()
Returns a Well-known
Binary (WKB) representation of this geospatial type.
|
String |
asWellKnownText()
Returns a Well-known Text (WKT)
representation of this geospatial type.
|
boolean |
contains(Geometry other)
Tests whether this geospatial type instance contains another instance.
|
boolean |
equals(Object o) |
static <T extends com.esri.core.geometry.ogc.OGCGeometry> |
fromOgcGeoJson(String source,
Class<T> klass) |
static <T extends com.esri.core.geometry.ogc.OGCGeometry> |
fromOgcWellKnownBinary(ByteBuffer source,
Class<T> klass) |
static <T extends com.esri.core.geometry.ogc.OGCGeometry> |
fromOgcWellKnownText(String source,
Class<T> klass) |
com.esri.core.geometry.Geometry |
getEsriGeometry() |
com.esri.core.geometry.ogc.OGCGeometry |
getOgcGeometry() |
static com.datastax.oss.driver.shaded.guava.common.collect.ImmutableList<Point> |
getPoints(com.esri.core.geometry.ogc.OGCLineString lineString) |
int |
hashCode() |
protected static com.esri.core.geometry.Point |
toEsri(Point p) |
String |
toString() |
public static final com.esri.core.geometry.SpatialReference SPATIAL_REFERENCE_4326
4326 is the EPSG identifier of the World Geodetic System (WGS) in its later revision, WGS 84.
protected DefaultGeometry(@NonNull com.esri.core.geometry.ogc.OGCGeometry ogcGeometry)
@NonNull public static <T extends com.esri.core.geometry.ogc.OGCGeometry> T fromOgcWellKnownText(@NonNull String source, @NonNull Class<T> klass)
@NonNull public static <T extends com.esri.core.geometry.ogc.OGCGeometry> T fromOgcWellKnownBinary(@NonNull ByteBuffer source, @NonNull Class<T> klass)
@NonNull public static <T extends com.esri.core.geometry.ogc.OGCGeometry> T fromOgcGeoJson(@NonNull String source, @NonNull Class<T> klass)
@NonNull public static com.datastax.oss.driver.shaded.guava.common.collect.ImmutableList<Point> getPoints(@NonNull com.esri.core.geometry.ogc.OGCLineString lineString)
protected static com.esri.core.geometry.Point toEsri(Point p)
@NonNull public com.esri.core.geometry.ogc.OGCGeometry getOgcGeometry()
@NonNull public com.esri.core.geometry.Geometry getEsriGeometry()
@NonNull public String asWellKnownText()
Geometry
asWellKnownText
in interface Geometry
@NonNull public ByteBuffer asWellKnownBinary()
Geometry
Note that, due to DSE implementation details, the resulting byte buffer always uses little-endian order, regardless of the platform's native order.
asWellKnownBinary
in interface Geometry
@NonNull public String asGeoJson()
Geometry
public boolean contains(@NonNull Geometry other)
Geometry
Copyright © 2017–2019. All rights reserved.