Package org.gdal.ogr

Class Geometry

java.lang.Object
org.gdal.ogr.Geometry
All Implemented Interfaces:
Cloneable

public class Geometry extends Object implements Cloneable
  • Constructor Details

    • Geometry

      public Geometry(long cPtr, boolean cMemoryOwn)
    • Geometry

      public Geometry(int type, String wkt, byte[] nLen, String gml)
    • Geometry

      public Geometry(int type)
  • Method Details

    • getCPtr

      public static long getCPtr(Geometry obj)
    • delete

      public void delete()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Object clone()
    • GetPoint_2D

      public double[] GetPoint_2D(int iPoint)
    • GetPoint

      public double[] GetPoint(int iPoint)
    • CreateFromWkt

      public static Geometry CreateFromWkt(String wkt)
    • CreateFromWkb

      public static Geometry CreateFromWkb(byte[] wkb)
    • CreateFromGML

      public static Geometry CreateFromGML(String gml)
    • CreateFromJson

      public static Geometry CreateFromJson(String json)
    • ExportToWkb

      public int ExportToWkb(byte[] wkbArray, int byte_order)
    • ExportToWkt

      public int ExportToWkt(String[] argout)
    • ExportToIsoWkt

      public int ExportToIsoWkt(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 String ExportToGML(Vector options)
    • ExportToGML

      public String ExportToGML()
    • ExportToKML

      public String ExportToKML(String altitude_mode)
    • ExportToKML

      public String ExportToKML()
    • ExportToJson

      public String ExportToJson(Vector options)
    • ExportToJson

      public 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 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(Vector options)
    • MakeValid

      public Geometry MakeValid()
    • Normalize

      public Geometry Normalize()
    • RemoveLowerDimensionSubGeoms

      public Geometry RemoveLowerDimensionSubGeoms()
    • Buffer

      public Geometry Buffer(double distance, int quadsecs)
    • Buffer

      public Geometry Buffer(double distance)
    • Intersection

      public Geometry Intersection(Geometry other)
    • Union

      public Geometry Union(Geometry other)
    • UnionCascaded

      public Geometry UnionCascaded()
    • Difference

      public Geometry Difference(Geometry other)
    • SymDifference

      public Geometry SymDifference(Geometry other)
    • SymmetricDifference

      public Geometry SymmetricDifference(Geometry other)
    • 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 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

      public Geometry GetLinearGeometry(double dfMaxAngleStepSizeDegrees, Vector options)
    • GetLinearGeometry

      public Geometry GetLinearGeometry(double dfMaxAngleStepSizeDegrees)
    • GetLinearGeometry

      public Geometry GetLinearGeometry()
    • GetCurveGeometry

      public Geometry GetCurveGeometry(Vector options)
    • GetCurveGeometry

      public Geometry GetCurveGeometry()
    • Value

      public Geometry Value(double dfDistance)
    • Transform

      public Geometry Transform(GeomTransformer transformer)
    • CreatePreparedGeometry

      public PreparedGeometry CreatePreparedGeometry()
    • ExportToWkt

      public String ExportToWkt()