Package org.gdal.ogr
Class Geometry
java.lang.Object
org.gdal.ogr.Geometry
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintAddGeometry(Geometry other) intAddGeometryDirectly(Geometry other_disown) voidAddPoint(double x, double y) voidAddPoint(double x, double y, double z) voidAddPoint_2D(double x, double y) voidAddPointM(double x, double y, double m) voidAddPointZM(double x, double y, double z, double m) doubleArea()voidAssignSpatialReference(SpatialReference reference) Boundary()Buffer(double distance) Buffer(double distance, int quadsecs) Centroid()clone()Clone()voidbooleanintstatic GeometryCreateFromGML(String gml) static GeometryCreateFromJson(String json) static GeometryCreateFromWkb(byte[] wkb) static GeometryCreateFromWkt(String wkt) booleanDelaunayTriangulation(double dfTolerance) DelaunayTriangulation(double dfTolerance, int bOnlyEdges) voiddelete()Difference(Geometry other) booleandoubledoubleDistance3D(Geometry other) voidEmpty()booleanbooleanbooleanExportToGML(Vector options) byte[]byte[]ExportToIsoWkb(int byte_order) intExportToIsoWkt(String[] argout) ExportToJson(Vector options) ExportToKML(String altitude_mode) byte[]intExportToWkb(byte[] wkbArray, int byte_order) byte[]ExportToWkb(int byte_order) intExportToWkt(String[] argout) voiddoubleGetArea()intstatic longGetCurveGeometry(Vector options) intvoidGetEnvelope(double[] argout) voidGetEnvelope3D(double[] argout) intGetGeometryRef(int geom) intGetLinearGeometry(double dfMaxAngleStepSizeDegrees) GetLinearGeometry(double dfMaxAngleStepSizeDegrees, Vector options) doubleGetM()doubleGetM(int point) double[]GetPoint(int iPoint) voidGetPoint(int iPoint, double[] argout) double[]GetPoint_2D(int iPoint) voidGetPoint_2D(int iPoint, double[] argout) intdouble[][]double[][]GetPoints(int nCoordDimension) voidGetPointZM(int iPoint, double[] argout) doubleGetX()doubleGetX(int point) doubleGetY()doubleGetY(int point) doubleGetZ()doubleGetZ(int point) intintHasCurveGeometry(int bLookForCircular) inthashCode()booleanIntersection(Geometry other) booleanIntersects(Geometry other) intIs3D()booleanIsEmpty()intbooleanIsRing()booleanIsSimple()booleanIsValid()doubleLength()booleanintRemoveGeometry(int iSubGeom) voidSegmentize(double dfMaxLength) voidSet3D(int b3D) voidSetCoordinateDimension(int dimension) voidSetMeasured(int bMeasured) voidSetPoint(int point, double x, double y) voidSetPoint(int point, double x, double y, double z) voidSetPoint_2D(int point, double x, double y) voidSetPointM(int point, double x, double y, double m) voidSetPointZM(int point, double x, double y, double z, double m) Simplify(double tolerance) SimplifyPreserveTopology(double tolerance) voidSwapXY()SymDifference(Geometry other) SymmetricDifference(Geometry other) booleanTransform(GeomTransformer transformer) intintTransformTo(SpatialReference reference) Value(double dfDistance) booleanlongWkbSize()
-
Constructor Details
-
Geometry
public Geometry(long cPtr, boolean cMemoryOwn) -
Geometry
-
Geometry
public Geometry(int type)
-
-
Method Details
-
getCPtr
-
delete
public void delete() -
equals
-
hashCode
public int hashCode() -
clone
-
GetPoint_2D
public double[] GetPoint_2D(int iPoint) -
GetPoint
public double[] GetPoint(int iPoint) -
CreateFromWkt
-
CreateFromWkb
-
CreateFromGML
-
CreateFromJson
-
ExportToWkb
public int ExportToWkb(byte[] wkbArray, int byte_order) -
ExportToWkt
-
ExportToIsoWkt
-
ExportToWkb
public byte[] ExportToWkb(int byte_order) -
ExportToWkb
public byte[] ExportToWkb() -
ExportToIsoWkb
public byte[] ExportToIsoWkb(int byte_order) -
ExportToIsoWkb
public byte[] ExportToIsoWkb() -
ExportToGML
-
ExportToGML
-
ExportToKML
-
ExportToKML
-
ExportToJson
-
ExportToJson
-
AddPoint
public void AddPoint(double x, double y, double z) -
AddPoint
public void AddPoint(double x, double y) -
AddPointM
public void AddPointM(double x, double y, double m) -
AddPointZM
public void AddPointZM(double x, double y, double z, double m) -
AddPoint_2D
public void AddPoint_2D(double x, double y) -
AddGeometryDirectly
-
AddGeometry
-
RemoveGeometry
public int RemoveGeometry(int iSubGeom) -
Clone
-
GetGeometryType
public int GetGeometryType() -
GetGeometryName
-
Length
public double Length() -
Area
public double Area() -
GetArea
public double GetArea() -
GetPointCount
public int GetPointCount() -
GetPoints
public double[][] GetPoints(int nCoordDimension) -
GetPoints
public double[][] GetPoints() -
GetX
public double GetX(int point) -
GetX
public double GetX() -
GetY
public double GetY(int point) -
GetY
public double GetY() -
GetZ
public double GetZ(int point) -
GetZ
public double GetZ() -
GetM
public double GetM(int point) -
GetM
public double GetM() -
GetPoint
public void GetPoint(int iPoint, double[] argout) -
GetPointZM
public void GetPointZM(int iPoint, double[] argout) -
GetPoint_2D
public void GetPoint_2D(int iPoint, double[] argout) -
GetGeometryCount
public int GetGeometryCount() -
SetPoint
public void SetPoint(int point, double x, double y, double z) -
SetPoint
public void SetPoint(int point, double x, double y) -
SetPointM
public void SetPointM(int point, double x, double y, double m) -
SetPointZM
public void SetPointZM(int point, double x, double y, double z, double m) -
SetPoint_2D
public void SetPoint_2D(int point, double x, double y) -
SwapXY
public void SwapXY() -
GetGeometryRef
-
Simplify
-
SimplifyPreserveTopology
-
DelaunayTriangulation
-
DelaunayTriangulation
-
DelaunayTriangulation
-
Polygonize
-
Boundary
-
GetBoundary
-
ConvexHull
-
MakeValid
-
MakeValid
-
Normalize
-
RemoveLowerDimensionSubGeoms
-
Buffer
-
Buffer
-
Intersection
-
Union
-
UnionCascaded
-
Difference
-
SymDifference
-
SymmetricDifference
-
Distance
-
Distance3D
-
Empty
public void Empty() -
IsEmpty
public boolean IsEmpty() -
IsValid
public boolean IsValid() -
IsSimple
public boolean IsSimple() -
IsRing
public boolean IsRing() -
Intersects
-
Intersect
-
Equals
-
Equal
-
Disjoint
-
Touches
-
Crosses
-
Within
-
Contains
-
Overlaps
-
TransformTo
-
Transform
-
GetSpatialReference
-
AssignSpatialReference
-
CloseRings
public void CloseRings() -
FlattenTo2D
public void FlattenTo2D() -
Segmentize
public void Segmentize(double dfMaxLength) -
GetEnvelope
public void GetEnvelope(double[] argout) -
GetEnvelope3D
public void GetEnvelope3D(double[] argout) -
Centroid
-
PointOnSurface
-
WkbSize
public long WkbSize() -
GetCoordinateDimension
public int GetCoordinateDimension() -
CoordinateDimension
public int CoordinateDimension() -
Is3D
public int Is3D() -
IsMeasured
public int IsMeasured() -
SetCoordinateDimension
public void SetCoordinateDimension(int dimension) -
Set3D
public void Set3D(int b3D) -
SetMeasured
public void SetMeasured(int bMeasured) -
GetDimension
public int GetDimension() -
HasCurveGeometry
public int HasCurveGeometry(int bLookForCircular) -
HasCurveGeometry
public int HasCurveGeometry() -
GetLinearGeometry
-
GetLinearGeometry
-
GetLinearGeometry
-
GetCurveGeometry
-
GetCurveGeometry
-
Value
-
Transform
-
CreatePreparedGeometry
-
ExportToWkt
-