gis.geos.WKBWriter.write()

write(geom) Returns the WKB of the given geometry as a Python buffer object. Example: >>> from django.contrib.gis.geos import Point, WKBWriter >>> pnt = Point(1, 1) >>> wkb_w = WKBWriter() >>> wkb_w.write(pnt) <read-only buffer for 0x103a898f0, size -1, offset 0 at 0x103a89930>

gis.geos.WKBWriter.outdim

outdim This property may be set to change the output dimension of the geometry representation. In other words, if you have a 3D geometry then set to 3 so that the Z value is included in the WKB. Outdim Value Description 2 The default, output 2D WKB. 3 Output 3D WKB. Example: >>> from django.contrib.gis.geos import Point, WKBWriter >>> wkb_w = WKBWriter() >>> wkb_w.outdim 2 >>> pnt = Point(1, 1, 1) >>> wkb_w.write_hex(pnt) # By default, no Z valu

gis.geos.WKBWriter

class WKBWriter(dim=2) WKBWriter provides the most control over its output. By default it returns OGC-compliant WKB when its write method is called. However, it has properties that allow for the creation of EWKB, a superset of the WKB standard that includes additional information. See the WKBWriter.outdim documentation for more details about the dim argument. Changed in Django 1.10: The ability to pass the dim argument to the constructor was added. write(geom) Returns the WKB of the g

gis.geos.PreparedGeometry.within()

within(other)

gis.geos.WKBReader

class WKBReader Example: >>> from django.contrib.gis.geos import WKBReader >>> wkb_r = WKBReader() >>> wkb_r.read('0101000000000000000000F03F000000000000F03F') <Point object at 0x103a88910>

gis.geos.WKBWriter.byteorder

byteorder This property may be set to change the byte-order of the geometry representation. Byteorder Value Description 0 Big Endian (e.g., compatible with RISC systems) 1 Little Endian (e.g., compatible with x86 systems) Example: >>> from django.contrib.gis.geos import Point, WKBWriter >>> wkb_w = WKBWriter() >>> pnt = Point(1, 1) >>> wkb_w.write_hex(pnt) '0101000000000000000000F03F000000000000F03F' >>> wkb_w.byteorder = 0 '00000000013FF0000000

gis.geos.PreparedGeometry.crosses()

crosses(other)

gis.geos.PreparedGeometry.touches()

touches(other)

gis.geos.PreparedGeometry.overlaps()

overlaps(other)

gis.geos.PreparedGeometry.intersects()

intersects(other)