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.MultiLineString.closed

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

gis.geos.MultiLineString.merged

merged Returns a LineString representing the line merge of all the components in this MultiLineString.

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.MultiPolygon.cascaded_union

cascaded_union Deprecated since version 1.10: Use the GEOSGeometry.unary_union property instead. Returns a Polygon that is the union of all of the component polygons in this collection. The algorithm employed is significantly more efficient (faster) than trying to union the geometries together individually. [2]

gis.geos.Point

class Point(x=None, y=None, z=None, srid=None) Point objects are instantiated using arguments that represent the component coordinates of the point or with a single sequence coordinates. For example, the following are equivalent: >>> pnt = Point(5, 23) >>> pnt = Point([5, 23]) Empty Point objects may be instantiated by passing no arguments or an empty sequence. The following are equivalent: >>> pnt = Point() >>> pnt = Point([]) Changed in Django 1.10: I

gis.geos.Polygon

class Polygon(*args, **kwargs) Polygon objects may be instantiated by passing in parameters that represent the rings of the polygon. The parameters must either be LinearRing instances, or a sequence that may be used to construct a LinearRing: >>> ext_coords = ((0, 0), (0, 1), (1, 1), (1, 0), (0, 0)) >>> int_coords = ((0.4, 0.4), (0.4, 0.6), (0.6, 0.6), (0.6, 0.4), (0.4, 0.4)) >>> poly = Polygon(ext_coords, int_coords) >>> poly = Polygon(LinearRing(ext_coor

gis.geos.Polygon.num_interior_rings

num_interior_rings Returns the number of interior rings in this geometry.

gis.geos.PreparedGeometry

class PreparedGeometry All methods on PreparedGeometry take an other argument, which must be a GEOSGeometry instance. contains(other) contains_properly(other) covers(other) crosses(other) disjoint(other) intersects(other) overlaps(other) touches(other) within(other)