gis.geos.GEOSGeometry.simple

GEOSGeometry.simple Returns a boolean indicating whether the geometry is ‘simple’. A geometry is simple if and only if it does not intersect itself (except at boundary points). For example, a LineString object is not simple if it intersects itself. Thus, LinearRing and Polygon objects are always simple because they do cannot intersect themselves, by definition.

gis.geos.GEOSGeometry.ring

GEOSGeometry.ring Returns a boolean indicating whether the geometry is a LinearRing.

gis.geos.GEOSGeometry.relate_pattern()

GEOSGeometry.relate_pattern(other, pattern) Returns True if the elements in the DE-9IM intersection matrix for this geometry and the other matches the given pattern – a string of nine characters from the alphabet: {T, F, *, 0}.

gis.geos.GEOSGeometry.relate()

GEOSGeometry.relate(other) Returns the DE-9IM intersection matrix (a string) representing the topological relationship between this geometry and the other.

gis.geos.GEOSGeometry.project_normalized()

GEOSGeometry.project_normalized(point) Returns the distance (float) from the origin of the geometry (LineString or MultiLineString) to the point projected on the geometry (that is to a point of the line the closest to the given point). The normalized version returns the distance as a float between 0 (origin) and 1 (endpoint). Reverse of GEOSGeometry.interpolate().

gis.geos.GEOSGeometry.project()

GEOSGeometry.project(point)

gis.geos.GEOSGeometry.prepared

GEOSGeometry.prepared Returns a GEOS PreparedGeometry for the contents of this geometry. PreparedGeometry objects are optimized for the contains, intersects, covers, crosses, disjoint, overlaps, touches and within operations. Refer to the Prepared Geometries documentation for more information.

gis.geos.GEOSGeometry.point_on_surface

GEOSGeometry.point_on_surface Computes and returns a Point guaranteed to be on the interior of this geometry.

gis.geos.GEOSGeometry.overlaps()

GEOSGeometry.overlaps(other) Returns true if the DE-9IM intersection matrix for the two geometries is T*T***T** (for two points or two surfaces) 1*T***T** (for two curves).

gis.geos.GEOSGeometry.ogr

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