gis.geos.GEOSGeometry.valid_reason

GEOSGeometry.valid_reason Returns a string describing the reason why a geometry is invalid.

gis.geos.GEOSGeometry.valid

GEOSGeometry.valid Returns a boolean indicating whether the geometry is valid.

gis.geos.GEOSGeometry.union()

GEOSGeometry.union(other) Returns a GEOSGeometry representing all the points in this geometry and the other.

gis.geos.GEOSGeometry.unary_union

GEOSGeometry.unary_union New in Django 1.10. Computes the union of all the elements of this geometry. The result obeys the following contract: Unioning a set of LineStrings has the effect of fully noding and dissolving the linework. Unioning a set of Polygons will always return a Polygon or MultiPolygon geometry (unlike GEOSGeometry.union(), which may return geometries of lower dimension if a topology collapse occurs).

gis.geos.GEOSGeometry.transform()

GEOSGeometry.transform(ct, clone=False) Transforms the geometry according to the given coordinate transformation parameter (ct), which may be an integer SRID, spatial reference WKT string, a PROJ.4 string, a SpatialReference object, or a CoordTransform object. By default, the geometry is transformed in-place and nothing is returned. However if the clone keyword is set, then the geometry is not modified and a transformed clone of the geometry is returned instead. Note Requires GDAL. Raises G

gis.geos.GEOSGeometry.touches()

GEOSGeometry.touches(other) Returns True if the DE-9IM intersection matrix for the two geometries is FT*******, F**T***** or F***T****.

gis.geos.GEOSGeometry.sym_difference()

GEOSGeometry.sym_difference(other) Returns a GEOSGeometry combining the points in this geometry not in other, and the points in other not in this geometry.

gis.geos.GEOSGeometry.srs

GEOSGeometry.srs Returns a SpatialReference object corresponding to the SRID of the geometry or None. Note Requires GDAL.

gis.geos.GEOSGeometry.srid

GEOSGeometry.srid Property that may be used to retrieve or set the SRID associated with the geometry. For example: >>> pnt = Point(5, 23) >>> print(pnt.srid) None >>> pnt.srid = 4326 >>> pnt.srid 4326

gis.geos.GEOSGeometry.simplify()

GEOSGeometry.simplify(tolerance=0.0, preserve_topology=False) Returns a new GEOSGeometry, simplified to the specified tolerance using the Douglas-Peucker algorithm. A higher tolerance value implies fewer points in the output. If no tolerance is provided, it defaults to 0. By default, this function does not preserve topology. For example, Polygon objects can be split, be collapsed into lines, or disappear. Polygon holes can be created or disappear, and lines may cross. By specifying preserve_