Ticket #5072: geodjango.diff
File geodjango.diff, 684 bytes (added by , 17 years ago) |
---|
-
contrib/gis/geos/geometries.py
166 166 raise TypeError, 'Invalid initialization input for LineStrings.' 167 167 168 168 # Creating the coordinate sequence 169 cs = GEOSCoordSeq(GEOSPointer(0, create_cs(c_uint(ncoords), c_uint(ndim))) )169 cs = GEOSCoordSeq(GEOSPointer(0, create_cs(c_uint(ncoords), c_uint(ndim))), z=bool(ndim==3)) 170 170 171 171 # Setting each point in the coordinate sequence 172 172 for i in xrange(ncoords): 173 173 if numpy_coords: cs[i] = coords[i,:]