gis.geos.MultiPoint

class MultiPoint(*args, **kwargs) MultiPoint objects may be instantiated by passing in Point objects as arguments, or a single sequence of Point objects: >>> mp = MultiPoint(Point(0, 0), Point(1, 1)) >>> mp = MultiPoint( (Point(0, 0), Point(1, 1)) ) Changed in Django 1.10: In previous versions, an empty MultiPoint couldn’t be instantiated.

gis.geos.MultiPolygon

class MultiPolygon(*args, **kwargs) MultiPolygon objects may be instantiated by passing Polygon objects as arguments, or a single sequence of Polygon objects: >>> p1 = Polygon( ((0, 0), (0, 1), (1, 1), (0, 0)) ) >>> p2 = Polygon( ((1, 1), (1, 2), (2, 2), (1, 1)) ) >>> mp = MultiPolygon(p1, p2) >>> mp = MultiPolygon([p1, p2]) Changed in Django 1.10: In previous versions, an empty MultiPolygon couldn’t be instantiated. cascaded_union Deprecated since

gis.geos.MultiLineString.closed

closed New in Django 1.10. Returns True if and only if all elements are closed. Requires GEOS 3.5.

gis.geos.LineString

class LineString(*args, **kwargs) LineString objects are instantiated using arguments that are either a sequence of coordinates or Point objects. For example, the following are equivalent: >>> ls = LineString((0, 0), (1, 1)) >>> ls = LineString(Point(0, 0), Point(1, 1)) In addition, LineString objects may also be created by passing in a single sequence of coordinate or Point objects: >>> ls = LineString( ((0, 0), (1, 1)) ) >>> ls = LineString( [Point(0, 0

gis.geos.LinearRing

class LinearRing(*args, **kwargs) LinearRing objects are constructed in the exact same way as LineString objects, however the coordinates must be closed, in other words, the first coordinates must be the same as the last coordinates. For example: >>> ls = LinearRing((0, 0), (0, 1), (1, 1), (0, 0)) Notice that (0, 0) is the first and last coordinate – if they were not equal, an error would be raised.

gis.geos.MultiLineString

class MultiLineString(*args, **kwargs) MultiLineString objects may be instantiated by passing in LineString objects as arguments, or a single sequence of LineString objects: >>> ls1 = LineString((0, 0), (1, 1)) >>> ls2 = LineString((2, 2), (3, 3)) >>> mls = MultiLineString(ls1, ls2) >>> mls = MultiLineString([ls1, ls2]) Changed in Django 1.10: In previous versions, an empty MultiLineString couldn’t be instantiated. merged Returns a LineString represe

gis.geos.LineString.closed

closed New in Django 1.10. Returns whether or not this LineString is closed.

gis.geos.GEOSGeometry.wkt

GEOSGeometry.wkt Returns the Well-Known Text of the geometry (an OGC standard). Changed in Django 1.10: Non-significant zeros are stripped from the output.

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.