public class Geometry
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
Geometry(int type) |
Geometry(int type,
java.lang.String wkt,
byte[] nLen,
java.lang.String gml) |
Geometry(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
int |
AddGeometry(Geometry other) |
int |
AddGeometryDirectly(Geometry other_disown) |
void |
AddPoint_2D(double x,
double y) |
void |
AddPoint(double x,
double y) |
void |
AddPoint(double x,
double y,
double z) |
void |
AddPointM(double x,
double y,
double m) |
void |
AddPointZM(double x,
double y,
double z,
double m) |
double |
Area() |
void |
AssignSpatialReference(SpatialReference reference) |
Geometry |
Boundary() |
Geometry |
Buffer(double distance) |
Geometry |
Buffer(double distance,
int quadsecs) |
Geometry |
Centroid() |
java.lang.Object |
clone() |
Geometry |
Clone() |
void |
CloseRings() |
boolean |
Contains(Geometry other) |
Geometry |
ConvexHull() |
int |
CoordinateDimension() |
static Geometry |
CreateFromGML(java.lang.String gml) |
static Geometry |
CreateFromJson(java.lang.String json) |
static Geometry |
CreateFromWkb(byte[] wkb) |
static Geometry |
CreateFromWkt(java.lang.String wkt) |
boolean |
Crosses(Geometry other) |
Geometry |
DelaunayTriangulation() |
Geometry |
DelaunayTriangulation(double dfTolerance) |
Geometry |
DelaunayTriangulation(double dfTolerance,
int bOnlyEdges) |
void |
delete() |
Geometry |
Difference(Geometry other) |
boolean |
Disjoint(Geometry other) |
double |
Distance(Geometry other) |
double |
Distance3D(Geometry other) |
void |
Empty() |
boolean |
Equal(Geometry other) |
boolean |
Equals(Geometry other) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
ExportToGML() |
java.lang.String |
ExportToGML(java.util.Vector options) |
byte[] |
ExportToIsoWkb() |
byte[] |
ExportToIsoWkb(int byte_order) |
int |
ExportToIsoWkt(java.lang.String[] argout) |
java.lang.String |
ExportToJson() |
java.lang.String |
ExportToJson(java.util.Vector options) |
java.lang.String |
ExportToKML() |
java.lang.String |
ExportToKML(java.lang.String altitude_mode) |
byte[] |
ExportToWkb() |
int |
ExportToWkb(byte[] wkbArray,
int byte_order) |
byte[] |
ExportToWkb(int byte_order) |
java.lang.String |
ExportToWkt() |
int |
ExportToWkt(java.lang.String[] argout) |
void |
FlattenTo2D() |
double |
GetArea() |
Geometry |
GetBoundary() |
int |
GetCoordinateDimension() |
static long |
getCPtr(Geometry obj) |
Geometry |
GetCurveGeometry() |
Geometry |
GetCurveGeometry(java.util.Vector options) |
int |
GetDimension() |
void |
GetEnvelope(double[] argout) |
void |
GetEnvelope3D(double[] argout) |
int |
GetGeometryCount() |
java.lang.String |
GetGeometryName() |
Geometry |
GetGeometryRef(int geom) |
int |
GetGeometryType() |
Geometry |
GetLinearGeometry() |
Geometry |
GetLinearGeometry(double dfMaxAngleStepSizeDegrees) |
Geometry |
GetLinearGeometry(double dfMaxAngleStepSizeDegrees,
java.util.Vector options) |
double |
GetM() |
double |
GetM(int point) |
double[] |
GetPoint_2D(int iPoint) |
void |
GetPoint_2D(int iPoint,
double[] argout) |
double[] |
GetPoint(int iPoint) |
void |
GetPoint(int iPoint,
double[] argout) |
int |
GetPointCount() |
double[][] |
GetPoints() |
double[][] |
GetPoints(int nCoordDimension) |
void |
GetPointZM(int iPoint,
double[] argout) |
SpatialReference |
GetSpatialReference() |
double |
GetX() |
double |
GetX(int point) |
double |
GetY() |
double |
GetY(int point) |
double |
GetZ() |
double |
GetZ(int point) |
int |
HasCurveGeometry() |
int |
HasCurveGeometry(int bLookForCircular) |
int |
hashCode() |
boolean |
Intersect(Geometry other) |
Geometry |
Intersection(Geometry other) |
boolean |
Intersects(Geometry other) |
int |
Is3D() |
boolean |
IsEmpty() |
int |
IsMeasured() |
boolean |
IsRing() |
boolean |
IsSimple() |
boolean |
IsValid() |
double |
Length() |
Geometry |
MakeValid() |
boolean |
Overlaps(Geometry other) |
Geometry |
PointOnSurface() |
Geometry |
Polygonize() |
int |
RemoveGeometry(int iSubGeom) |
void |
Segmentize(double dfMaxLength) |
void |
Set3D(int b3D) |
void |
SetCoordinateDimension(int dimension) |
void |
SetMeasured(int bMeasured) |
void |
SetPoint_2D(int point,
double x,
double y) |
void |
SetPoint(int point,
double x,
double y) |
void |
SetPoint(int point,
double x,
double y,
double z) |
void |
SetPointM(int point,
double x,
double y,
double m) |
void |
SetPointZM(int point,
double x,
double y,
double z,
double m) |
Geometry |
Simplify(double tolerance) |
Geometry |
SimplifyPreserveTopology(double tolerance) |
void |
SwapXY() |
Geometry |
SymDifference(Geometry other) |
Geometry |
SymmetricDifference(Geometry other) |
boolean |
Touches(Geometry other) |
int |
Transform(CoordinateTransformation trans) |
int |
TransformTo(SpatialReference reference) |
Geometry |
Union(Geometry other) |
Geometry |
UnionCascaded() |
Geometry |
Value(double dfDistance) |
boolean |
Within(Geometry other) |
int |
WkbSize() |
public Geometry(long cPtr, boolean cMemoryOwn)
public Geometry(int type, java.lang.String wkt, byte[] nLen, java.lang.String gml)
public Geometry(int type)
public static long getCPtr(Geometry obj)
public void delete()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public double[] GetPoint_2D(int iPoint)
public double[] GetPoint(int iPoint)
public static Geometry CreateFromWkt(java.lang.String wkt)
public static Geometry CreateFromWkb(byte[] wkb)
public static Geometry CreateFromGML(java.lang.String gml)
public static Geometry CreateFromJson(java.lang.String json)
public int ExportToWkb(byte[] wkbArray, int byte_order)
public int ExportToWkt(java.lang.String[] argout)
public int ExportToIsoWkt(java.lang.String[] argout)
public byte[] ExportToWkb(int byte_order)
public byte[] ExportToWkb()
public byte[] ExportToIsoWkb(int byte_order)
public byte[] ExportToIsoWkb()
public java.lang.String ExportToGML(java.util.Vector options)
public java.lang.String ExportToGML()
public java.lang.String ExportToKML(java.lang.String altitude_mode)
public java.lang.String ExportToKML()
public java.lang.String ExportToJson(java.util.Vector options)
public java.lang.String ExportToJson()
public void AddPoint(double x, double y, double z)
public void AddPoint(double x, double y)
public void AddPointM(double x, double y, double m)
public void AddPointZM(double x, double y, double z, double m)
public void AddPoint_2D(double x, double y)
public int AddGeometryDirectly(Geometry other_disown)
public int AddGeometry(Geometry other)
public int RemoveGeometry(int iSubGeom)
public Geometry Clone()
public int GetGeometryType()
public java.lang.String GetGeometryName()
public double Length()
public double Area()
public double GetArea()
public int GetPointCount()
public double[][] GetPoints(int nCoordDimension)
public double[][] GetPoints()
public double GetX(int point)
public double GetX()
public double GetY(int point)
public double GetY()
public double GetZ(int point)
public double GetZ()
public double GetM(int point)
public double GetM()
public void GetPoint(int iPoint, double[] argout)
public void GetPointZM(int iPoint, double[] argout)
public void GetPoint_2D(int iPoint, double[] argout)
public int GetGeometryCount()
public void SetPoint(int point, double x, double y, double z)
public void SetPoint(int point, double x, double y)
public void SetPointM(int point, double x, double y, double m)
public void SetPointZM(int point, double x, double y, double z, double m)
public void SetPoint_2D(int point, double x, double y)
public void SwapXY()
public Geometry GetGeometryRef(int geom)
public Geometry Simplify(double tolerance)
public Geometry SimplifyPreserveTopology(double tolerance)
public Geometry DelaunayTriangulation(double dfTolerance, int bOnlyEdges)
public Geometry DelaunayTriangulation(double dfTolerance)
public Geometry DelaunayTriangulation()
public Geometry Polygonize()
public Geometry Boundary()
public Geometry GetBoundary()
public Geometry ConvexHull()
public Geometry MakeValid()
public Geometry Buffer(double distance, int quadsecs)
public Geometry Buffer(double distance)
public Geometry UnionCascaded()
public double Distance(Geometry other)
public double Distance3D(Geometry other)
public void Empty()
public boolean IsEmpty()
public boolean IsValid()
public boolean IsSimple()
public boolean IsRing()
public boolean Intersects(Geometry other)
public boolean Intersect(Geometry other)
public boolean Equals(Geometry other)
public boolean Equal(Geometry other)
public boolean Disjoint(Geometry other)
public boolean Touches(Geometry other)
public boolean Crosses(Geometry other)
public boolean Within(Geometry other)
public boolean Contains(Geometry other)
public boolean Overlaps(Geometry other)
public int TransformTo(SpatialReference reference)
public int Transform(CoordinateTransformation trans)
public SpatialReference GetSpatialReference()
public void AssignSpatialReference(SpatialReference reference)
public void CloseRings()
public void FlattenTo2D()
public void Segmentize(double dfMaxLength)
public void GetEnvelope(double[] argout)
public void GetEnvelope3D(double[] argout)
public Geometry Centroid()
public Geometry PointOnSurface()
public int WkbSize()
public int GetCoordinateDimension()
public int CoordinateDimension()
public int Is3D()
public int IsMeasured()
public void SetCoordinateDimension(int dimension)
public void Set3D(int b3D)
public void SetMeasured(int bMeasured)
public int GetDimension()
public int HasCurveGeometry(int bLookForCircular)
public int HasCurveGeometry()
public Geometry GetLinearGeometry(double dfMaxAngleStepSizeDegrees, java.util.Vector options)
public Geometry GetLinearGeometry(double dfMaxAngleStepSizeDegrees)
public Geometry GetLinearGeometry()
public Geometry GetCurveGeometry(java.util.Vector options)
public Geometry GetCurveGeometry()
public Geometry Value(double dfDistance)
public java.lang.String ExportToWkt()