Package org.gdal.ogr
Class Geometry
- java.lang.Object
-
- org.gdal.ogr.Geometry
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Geometry extends java.lang.Object implements java.lang.Cloneable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intAddGeometry(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)GeometryBoundary()GeometryBuffer(double distance)GeometryBuffer(double distance, int quadsecs)GeometryCentroid()java.lang.Objectclone()GeometryClone()voidCloseRings()booleanContains(Geometry other)GeometryConvexHull()intCoordinateDimension()static GeometryCreateFromGML(java.lang.String gml)static GeometryCreateFromJson(java.lang.String json)static GeometryCreateFromWkb(byte[] wkb)static GeometryCreateFromWkt(java.lang.String wkt)booleanCrosses(Geometry other)GeometryDelaunayTriangulation()GeometryDelaunayTriangulation(double dfTolerance)GeometryDelaunayTriangulation(double dfTolerance, int bOnlyEdges)voiddelete()GeometryDifference(Geometry other)booleanDisjoint(Geometry other)doubleDistance(Geometry other)doubleDistance3D(Geometry other)voidEmpty()booleanEqual(Geometry other)booleanequals(java.lang.Object obj)booleanEquals(Geometry other)java.lang.StringExportToGML()java.lang.StringExportToGML(java.util.Vector options)byte[]ExportToIsoWkb()byte[]ExportToIsoWkb(int byte_order)intExportToIsoWkt(java.lang.String[] argout)java.lang.StringExportToJson()java.lang.StringExportToJson(java.util.Vector options)java.lang.StringExportToKML()java.lang.StringExportToKML(java.lang.String altitude_mode)byte[]ExportToWkb()intExportToWkb(byte[] wkbArray, int byte_order)byte[]ExportToWkb(int byte_order)java.lang.StringExportToWkt()intExportToWkt(java.lang.String[] argout)voidFlattenTo2D()doubleGetArea()GeometryGetBoundary()intGetCoordinateDimension()static longgetCPtr(Geometry obj)GeometryGetCurveGeometry()GeometryGetCurveGeometry(java.util.Vector options)intGetDimension()voidGetEnvelope(double[] argout)voidGetEnvelope3D(double[] argout)intGetGeometryCount()java.lang.StringGetGeometryName()GeometryGetGeometryRef(int geom)intGetGeometryType()GeometryGetLinearGeometry()GeometryGetLinearGeometry(double dfMaxAngleStepSizeDegrees)GeometryGetLinearGeometry(double dfMaxAngleStepSizeDegrees, java.util.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)intGetPointCount()double[][]GetPoints()double[][]GetPoints(int nCoordDimension)voidGetPointZM(int iPoint, double[] argout)SpatialReferenceGetSpatialReference()doubleGetX()doubleGetX(int point)doubleGetY()doubleGetY(int point)doubleGetZ()doubleGetZ(int point)intHasCurveGeometry()intHasCurveGeometry(int bLookForCircular)inthashCode()booleanIntersect(Geometry other)GeometryIntersection(Geometry other)booleanIntersects(Geometry other)intIs3D()booleanIsEmpty()intIsMeasured()booleanIsRing()booleanIsSimple()booleanIsValid()doubleLength()GeometryMakeValid()booleanOverlaps(Geometry other)GeometryPointOnSurface()GeometryPolygonize()intRemoveGeometry(int iSubGeom)GeometryRemoveLowerDimensionSubGeoms()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)GeometrySimplify(double tolerance)GeometrySimplifyPreserveTopology(double tolerance)voidSwapXY()GeometrySymDifference(Geometry other)GeometrySymmetricDifference(Geometry other)booleanTouches(Geometry other)GeometryTransform(GeomTransformer transformer)intTransform(CoordinateTransformation trans)intTransformTo(SpatialReference reference)GeometryUnion(Geometry other)GeometryUnionCascaded()GeometryValue(double dfDistance)booleanWithin(Geometry other)intWkbSize()
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(Geometry obj)
-
delete
public void delete()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
clone
public java.lang.Object clone()
-
GetPoint_2D
public double[] GetPoint_2D(int iPoint)
-
GetPoint
public double[] GetPoint(int iPoint)
-
CreateFromWkt
public static Geometry CreateFromWkt(java.lang.String wkt)
-
CreateFromWkb
public static Geometry CreateFromWkb(byte[] wkb)
-
CreateFromGML
public static Geometry CreateFromGML(java.lang.String gml)
-
CreateFromJson
public static Geometry CreateFromJson(java.lang.String json)
-
ExportToWkb
public int ExportToWkb(byte[] wkbArray, int byte_order)
-
ExportToWkt
public int ExportToWkt(java.lang.String[] argout)
-
ExportToIsoWkt
public int ExportToIsoWkt(java.lang.String[] argout)
-
ExportToWkb
public byte[] ExportToWkb(int byte_order)
-
ExportToWkb
public byte[] ExportToWkb()
-
ExportToIsoWkb
public byte[] ExportToIsoWkb(int byte_order)
-
ExportToIsoWkb
public byte[] ExportToIsoWkb()
-
ExportToGML
public java.lang.String ExportToGML(java.util.Vector options)
-
ExportToGML
public java.lang.String ExportToGML()
-
ExportToKML
public java.lang.String ExportToKML(java.lang.String altitude_mode)
-
ExportToKML
public java.lang.String ExportToKML()
-
ExportToJson
public java.lang.String ExportToJson(java.util.Vector options)
-
ExportToJson
public java.lang.String 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
public int AddGeometryDirectly(Geometry other_disown)
-
AddGeometry
public int AddGeometry(Geometry other)
-
RemoveGeometry
public int RemoveGeometry(int iSubGeom)
-
Clone
public Geometry Clone()
-
GetGeometryType
public int GetGeometryType()
-
GetGeometryName
public java.lang.String 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
public Geometry GetGeometryRef(int geom)
-
Simplify
public Geometry Simplify(double tolerance)
-
SimplifyPreserveTopology
public Geometry SimplifyPreserveTopology(double tolerance)
-
DelaunayTriangulation
public Geometry DelaunayTriangulation(double dfTolerance, int bOnlyEdges)
-
DelaunayTriangulation
public Geometry DelaunayTriangulation(double dfTolerance)
-
DelaunayTriangulation
public Geometry DelaunayTriangulation()
-
Polygonize
public Geometry Polygonize()
-
Boundary
public Geometry Boundary()
-
GetBoundary
public Geometry GetBoundary()
-
ConvexHull
public Geometry ConvexHull()
-
MakeValid
public Geometry MakeValid()
-
RemoveLowerDimensionSubGeoms
public Geometry RemoveLowerDimensionSubGeoms()
-
Buffer
public Geometry Buffer(double distance, int quadsecs)
-
Buffer
public Geometry Buffer(double distance)
-
UnionCascaded
public Geometry UnionCascaded()
-
Distance
public double Distance(Geometry other)
-
Distance3D
public double Distance3D(Geometry other)
-
Empty
public void Empty()
-
IsEmpty
public boolean IsEmpty()
-
IsValid
public boolean IsValid()
-
IsSimple
public boolean IsSimple()
-
IsRing
public boolean IsRing()
-
Intersects
public boolean Intersects(Geometry other)
-
Intersect
public boolean Intersect(Geometry other)
-
Equals
public boolean Equals(Geometry other)
-
Equal
public boolean Equal(Geometry other)
-
Disjoint
public boolean Disjoint(Geometry other)
-
Touches
public boolean Touches(Geometry other)
-
Crosses
public boolean Crosses(Geometry other)
-
Within
public boolean Within(Geometry other)
-
Contains
public boolean Contains(Geometry other)
-
Overlaps
public boolean Overlaps(Geometry other)
-
TransformTo
public int TransformTo(SpatialReference reference)
-
Transform
public int Transform(CoordinateTransformation trans)
-
GetSpatialReference
public SpatialReference GetSpatialReference()
-
AssignSpatialReference
public void AssignSpatialReference(SpatialReference reference)
-
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
public Geometry Centroid()
-
PointOnSurface
public Geometry PointOnSurface()
-
WkbSize
public int 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
public Geometry GetLinearGeometry(double dfMaxAngleStepSizeDegrees, java.util.Vector options)
-
GetLinearGeometry
public Geometry GetLinearGeometry(double dfMaxAngleStepSizeDegrees)
-
GetLinearGeometry
public Geometry GetLinearGeometry()
-
GetCurveGeometry
public Geometry GetCurveGeometry(java.util.Vector options)
-
GetCurveGeometry
public Geometry GetCurveGeometry()
-
Value
public Geometry Value(double dfDistance)
-
Transform
public Geometry Transform(GeomTransformer transformer)
-
ExportToWkt
public java.lang.String ExportToWkt()
-
-