gis.geos.GEOSGeometry.ogr

GEOSGeometry.ogr Returns an OGRGeometry object corresponding to the GEOS geometry. Note Requires GDAL.

gis.geos.GEOSGeometry.json

GEOSGeometry.json Returns the GeoJSON representation of the geometry. Note that the result is not a complete GeoJSON structure but only the geometry key content of a GeoJSON structure. See also GeoJSON Serializer.

gis.geos.GEOSGeometry.num_geom

GEOSGeometry.num_geom Returns the number of geometries in this geometry. In other words, will return 1 on anything but geometry collections.

gis.geos.GEOSGeometry.length

GEOSGeometry.length Returns the length of this geometry (e.g., 0 for a Point, the length of a LineString, or the circumference of a Polygon).

gis.geos.GEOSGeometry.kml

GEOSGeometry.kml Returns a KML (Keyhole Markup Language) representation of the geometry. This should only be used for geometries with an SRID of 4326 (WGS84), but this restriction is not enforced.

gis.geos.GEOSGeometry.interpolate()

GEOSGeometry.interpolate(distance)

gis.geos.GEOSGeometry.intersects()

GEOSGeometry.intersects(other) Returns True if GEOSGeometry.disjoint() is False.

gis.geos.GEOSGeometry.intersection()

GEOSGeometry.intersection(other) Returns a GEOSGeometry representing the points shared by this geometry and other.

gis.geos.GEOSGeometry.interpolate_normalized()

GEOSGeometry.interpolate_normalized(distance) Given a distance (float), returns the point (or closest point) within the geometry (LineString or MultiLineString) at that distance. The normalized version takes the distance as a float between 0 (origin) and 1 (endpoint). Reverse of GEOSGeometry.project().

gis.geos.GEOSGeometry.hasz

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