Package org.gdal.ogr

Class Geometry

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class Geometry
    extends java.lang.Object
    implements java.lang.Cloneable
    • Constructor Detail

      • Geometry

        public Geometry​(long cPtr,
                        boolean cMemoryOwn)
      • Geometry

        public Geometry​(int type,
                        java.lang.String wkt,
                        byte[] nLen,
                        java.lang.String gml)
      • Geometry

        public Geometry​(int type)
    • Method Detail

      • getCPtr

        public static long getCPtr​(Geometry obj)
      • delete

        public void delete()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.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)
      • 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()
      • 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)
      • 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)
      • 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)
      • ExportToWkt

        public java.lang.String ExportToWkt()