gis.geos.GEOSGeometry.hex

GEOSGeometry.hex Returns the WKB of this Geometry in hexadecimal form. Please note that the SRID value is not included in this representation because it is not a part of the OGC specification (use the GEOSGeometry.hexewkb property instead).

gis.geos.GEOSGeometry.geom_typeid

GEOSGeometry.geom_typeid Returns the GEOS geometry type identification number. The following table shows the value for each geometry type: Geometry ID Point 0 LineString 1 LinearRing 2 Polygon 3 MultiPoint 4 MultiLineString 5 MultiPolygon 6 GeometryCollection 7

gis.geos.GEOSGeometry.hasz

GEOSGeometry.hasz Returns a boolean indicating whether the geometry is three-dimensional.

gis.geos.GEOSGeometry.equals_exact()

GEOSGeometry.equals_exact(other, tolerance=0) Returns true if the two geometries are exactly equal, up to a specified tolerance. The tolerance value should be a floating point number representing the error tolerance in the comparison, e.g., poly1.equals_exact(poly2, 0.001) will compare equality to within one thousandth of a unit.

gis.geos.GEOSGeometry.geom_type

GEOSGeometry.geom_type Returns a string corresponding to the type of geometry. For example: >>> pnt = GEOSGeometry('POINT(5 23)') >>> pnt.geom_type 'Point'

gis.geos.GEOSGeometry.geojson

GEOSGeometry.geojson Alias for GEOSGeometry.json.

gis.geos.GEOSGeometry.ewkb

GEOSGeometry.ewkb Return the EWKB representation of this Geometry as a Python buffer. This is an extension of the WKB specification that includes any SRID value that are a part of this geometry.

gis.geos.GEOSGeometry.extent

GEOSGeometry.extent This property returns the extent of this geometry as a 4-tuple, consisting of (xmin, ymin, xmax, ymax).

gis.geos.GEOSGeometry.ewkt

GEOSGeometry.ewkt Returns the “extended” Well-Known Text of the geometry. This representation is specific to PostGIS and is a superset of the OGC WKT standard. [1] Essentially the SRID is prepended to the WKT representation, for example SRID=4326;POINT(5 23). Note The output from this property does not include the 3dm, 3dz, and 4d information that PostGIS supports in its EWKT representations.

gis.geos.GEOSGeometry.envelope

GEOSGeometry.envelope Returns a Polygon that represents the bounding envelope of this geometry. Note that it can also return a Point if the input geometry is a point.