#NEWLINE# def prototype( lgeos , geos_version ) : #NEWLINE# #INDENT# 'Protype functions in geos_c.h for different version of GEOS\n\n    Use the GEOS version, not the C API version.\n    ' #NEWLINE# '\n    Initialization, cleanup, version\n    ' #NEWLINE# lgeos . initGEOS . restype = None #NEWLINE# lgeos . initGEOS . argtypes = [ EXCEPTION_HANDLER_FUNCTYPE , EXCEPTION_HANDLER_FUNCTYPE ] #NEWLINE# lgeos . finishGEOS . restype = None #NEWLINE# lgeos . finishGEOS . argtypes = [ ] #NEWLINE# lgeos . GEOSversion . restype = c_char_p #NEWLINE# lgeos . GEOSversion . argtypes = [ ] #NEWLINE# '\n    NOTE - These functions are DEPRECATED.  Please use the new Reader and\n    writer APIS!\n    ' #NEWLINE# lgeos . GEOSGeomFromWKT . restype = c_void_p #NEWLINE# lgeos . GEOSGeomFromWKT . argtypes = [ c_char_p ] #NEWLINE# lgeos . GEOSGeomToWKT . restype = allocated_c_char_p #NEWLINE# lgeos . GEOSGeomToWKT . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOS_setWKBOutputDims . restype = c_int #NEWLINE# lgeos . GEOS_setWKBOutputDims . argtypes = [ c_int ] #NEWLINE# lgeos . GEOSGeomFromWKB_buf . restype = c_void_p #NEWLINE# lgeos . GEOSGeomFromWKB_buf . argtypes = [ c_void_p , c_size_t ] #NEWLINE# lgeos . GEOSGeomToWKB_buf . restype = allocated_c_char_p #NEWLINE# lgeos . GEOSGeomToWKB_buf . argtypes = [ c_void_p , c_size_t_p ] #NEWLINE# '\n    Coordinate sequence\n    ' #NEWLINE# lgeos . GEOSCoordSeq_create . restype = c_void_p #NEWLINE# lgeos . GEOSCoordSeq_create . argtypes = [ c_uint , c_uint ] #NEWLINE# lgeos . GEOSCoordSeq_clone . restype = c_void_p #NEWLINE# lgeos . GEOSCoordSeq_clone . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGeom_clone . restype = c_void_p #NEWLINE# lgeos . GEOSGeom_clone . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSCoordSeq_destroy . restype = None #NEWLINE# lgeos . GEOSCoordSeq_destroy . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSCoordSeq_setX . restype = c_int #NEWLINE# lgeos . GEOSCoordSeq_setX . argtypes = [ c_void_p , c_uint , c_double ] #NEWLINE# lgeos . GEOSCoordSeq_setY . restype = c_int #NEWLINE# lgeos . GEOSCoordSeq_setY . argtypes = [ c_void_p , c_uint , c_double ] #NEWLINE# lgeos . GEOSCoordSeq_setZ . restype = c_int #NEWLINE# lgeos . GEOSCoordSeq_setZ . argtypes = [ c_void_p , c_uint , c_double ] #NEWLINE# lgeos . GEOSCoordSeq_setOrdinate . restype = c_int #NEWLINE# lgeos . GEOSCoordSeq_setOrdinate . argtypes = [ c_void_p , c_uint , c_uint , c_double ] #NEWLINE# lgeos . GEOSCoordSeq_getX . restype = c_int #NEWLINE# lgeos . GEOSCoordSeq_getX . argtypes = [ c_void_p , c_uint , c_void_p ] #NEWLINE# lgeos . GEOSCoordSeq_getY . restype = c_int #NEWLINE# lgeos . GEOSCoordSeq_getY . argtypes = [ c_void_p , c_uint , c_void_p ] #NEWLINE# lgeos . GEOSCoordSeq_getZ . restype = c_int #NEWLINE# lgeos . GEOSCoordSeq_getZ . argtypes = [ c_void_p , c_uint , c_void_p ] #NEWLINE# lgeos . GEOSCoordSeq_getSize . restype = c_int #NEWLINE# lgeos . GEOSCoordSeq_getSize . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSCoordSeq_getDimensions . restype = c_int #NEWLINE# lgeos . GEOSCoordSeq_getDimensions . argtypes = [ c_void_p , c_void_p ] #NEWLINE# '\n    Linear refeferencing\n    ' #NEWLINE# if ( geos_version >= ( 3 , 2 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSProject . restype = c_double #NEWLINE# lgeos . GEOSProject . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSInterpolate . restype = c_void_p #NEWLINE# lgeos . GEOSInterpolate . argtypes = [ c_void_p , c_double ] #NEWLINE# lgeos . GEOSProjectNormalized . restype = c_double #NEWLINE# lgeos . GEOSProjectNormalized . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSInterpolateNormalized . restype = c_void_p #NEWLINE# lgeos . GEOSInterpolateNormalized . argtypes = [ c_void_p , c_double ] #NEWLINE# #UNINDENT# '\n    Buffer related\n    ' #NEWLINE# lgeos . GEOSBuffer . restype = c_void_p #NEWLINE# lgeos . GEOSBuffer . argtypes = [ c_void_p , c_double , c_int ] #NEWLINE# if ( geos_version >= ( 3 , 2 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSBufferWithStyle . restype = c_void_p #NEWLINE# lgeos . GEOSBufferWithStyle . argtypes = [ c_void_p , c_double , c_int , c_int , c_int , c_double ] #NEWLINE# if ( geos_version >= ( 3 , 3 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSOffsetCurve . restype = c_void_p #NEWLINE# lgeos . GEOSOffsetCurve . argtypes = [ c_void_p , c_double , c_int , c_int , c_double ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# lgeos . GEOSSingleSidedBuffer . restype = c_void_p #NEWLINE# lgeos . GEOSSingleSidedBuffer . argtypes = [ c_void_p , c_double , c_int , c_int , c_double , c_int ] #NEWLINE# #UNINDENT# #UNINDENT# '\n    Geometry constructors\n    ' #NEWLINE# lgeos . GEOSGeom_createPoint . restype = c_void_p #NEWLINE# lgeos . GEOSGeom_createPoint . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGeom_createLinearRing . restype = c_void_p #NEWLINE# lgeos . GEOSGeom_createLinearRing . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGeom_createLineString . restype = c_void_p #NEWLINE# lgeos . GEOSGeom_createLineString . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGeom_createPolygon . restype = c_void_p #NEWLINE# lgeos . GEOSGeom_createPolygon . argtypes = [ c_void_p , c_void_p , c_uint ] #NEWLINE# lgeos . GEOSGeom_createCollection . restype = c_void_p #NEWLINE# lgeos . GEOSGeom_createCollection . argtypes = [ c_int , c_void_p , c_uint ] #NEWLINE# lgeos . GEOSGeom_createEmptyCollection . restype = c_void_p #NEWLINE# lgeos . GEOSGeom_createEmptyCollection . argtypes = [ c_int ] #NEWLINE# lgeos . GEOSGeom_clone . restype = c_void_p #NEWLINE# lgeos . GEOSGeom_clone . argtypes = [ c_void_p ] #NEWLINE# '\n    Memory management\n    ' #NEWLINE# lgeos . GEOSGeom_destroy . restype = None #NEWLINE# lgeos . GEOSGeom_destroy . argtypes = [ c_void_p ] #NEWLINE# '\n    Topology operations\n    Return NULL on exception\n    ' #NEWLINE# lgeos . GEOSEnvelope . restype = c_void_p #NEWLINE# lgeos . GEOSEnvelope . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSIntersection . restype = c_void_p #NEWLINE# lgeos . GEOSIntersection . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSConvexHull . restype = c_void_p #NEWLINE# lgeos . GEOSConvexHull . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSDifference . restype = c_void_p #NEWLINE# lgeos . GEOSDifference . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSSymDifference . restype = c_void_p #NEWLINE# lgeos . GEOSSymDifference . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSBoundary . restype = c_void_p #NEWLINE# lgeos . GEOSBoundary . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSUnion . restype = c_void_p #NEWLINE# lgeos . GEOSUnion . argtypes = [ c_void_p , c_void_p ] #NEWLINE# if ( geos_version >= ( 3 , 3 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSUnaryUnion . restype = c_void_p #NEWLINE# lgeos . GEOSUnaryUnion . argtypes = [ c_void_p ] #NEWLINE# #UNINDENT# if ( geos_version >= ( 3 , 1 , 0 ) ) : #NEWLINE# #INDENT# 'deprecated in 3.3.0: use GEOSUnaryUnion instead' #NEWLINE# lgeos . GEOSUnionCascaded . restype = c_void_p #NEWLINE# lgeos . GEOSUnionCascaded . argtypes = [ c_void_p ] #NEWLINE# #UNINDENT# lgeos . GEOSPointOnSurface . restype = c_void_p #NEWLINE# lgeos . GEOSPointOnSurface . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGetCentroid . restype = c_void_p #NEWLINE# lgeos . GEOSGetCentroid . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSPolygonize . restype = c_void_p #NEWLINE# lgeos . GEOSPolygonize . argtypes = [ c_void_p , c_uint ] #NEWLINE# if ( lgeos >= ( 3 , 3 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSPolygonize_full . restype = c_void_p #NEWLINE# lgeos . GEOSPolygonize_full . argtypes = [ c_void_p , c_void_p , c_void_p , c_void_p ] #NEWLINE# #UNINDENT# if ( geos_version >= ( 3 , 4 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSDelaunayTriangulation . restype = c_void_p #NEWLINE# lgeos . GEOSDelaunayTriangulation . argtypes = [ c_void_p , c_double , c_int ] #NEWLINE# #UNINDENT# lgeos . GEOSLineMerge . restype = c_void_p #NEWLINE# lgeos . GEOSLineMerge . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSSimplify . restype = c_void_p #NEWLINE# lgeos . GEOSSimplify . argtypes = [ c_void_p , c_double ] #NEWLINE# lgeos . GEOSTopologyPreserveSimplify . restype = c_void_p #NEWLINE# lgeos . GEOSTopologyPreserveSimplify . argtypes = [ c_void_p , c_double ] #NEWLINE# '\n    Binary predicates\n    Return 2 on exception, 1 on true, 0 on false\n    ' #NEWLINE# lgeos . GEOSDisjoint . restype = c_byte #NEWLINE# lgeos . GEOSDisjoint . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSTouches . restype = c_byte #NEWLINE# lgeos . GEOSTouches . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSIntersects . restype = c_byte #NEWLINE# lgeos . GEOSIntersects . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSCrosses . restype = c_byte #NEWLINE# lgeos . GEOSCrosses . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSWithin . restype = c_byte #NEWLINE# lgeos . GEOSWithin . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSContains . restype = c_byte #NEWLINE# lgeos . GEOSContains . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSOverlaps . restype = c_byte #NEWLINE# lgeos . GEOSOverlaps . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSCovers . restype = c_byte #NEWLINE# lgeos . GEOSCovers . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSEquals . restype = c_byte #NEWLINE# lgeos . GEOSEquals . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSEqualsExact . restype = c_byte #NEWLINE# lgeos . GEOSEqualsExact . argtypes = [ c_void_p , c_void_p , c_double ] #NEWLINE# '\n    Unary predicate\n    Return 2 on exception, 1 on true, 0 on false\n    ' #NEWLINE# lgeos . GEOSisEmpty . restype = c_byte #NEWLINE# lgeos . GEOSisEmpty . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSisValid . restype = c_byte #NEWLINE# lgeos . GEOSisValid . argtypes = [ c_void_p ] #NEWLINE# if ( geos_version >= ( 3 , 1 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSisValidReason . restype = allocated_c_char_p #NEWLINE# lgeos . GEOSisValidReason . argtypes = [ c_void_p ] #NEWLINE# #UNINDENT# lgeos . GEOSisSimple . restype = c_byte #NEWLINE# lgeos . GEOSisSimple . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSisRing . restype = c_byte #NEWLINE# lgeos . GEOSisRing . argtypes = [ c_void_p ] #NEWLINE# if ( geos_version >= ( 3 , 3 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSisClosed . restype = c_byte #NEWLINE# lgeos . GEOSisClosed . argtypes = [ c_void_p ] #NEWLINE# #UNINDENT# lgeos . GEOSHasZ . restype = c_byte #NEWLINE# lgeos . GEOSHasZ . argtypes = [ c_void_p ] #NEWLINE# '\n    Dimensionally Extended 9 Intersection Model related\n    ' #NEWLINE# lgeos . GEOSRelate . restype = allocated_c_char_p #NEWLINE# lgeos . GEOSRelate . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSRelatePattern . restype = c_byte #NEWLINE# lgeos . GEOSRelatePattern . argtypes = [ c_void_p , c_void_p , c_char_p ] #NEWLINE# if ( geos_version >= ( 3 , 3 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSRelatePatternMatch . restype = c_byte #NEWLINE# lgeos . GEOSRelatePatternMatch . argtypes = [ c_char_p , c_char_p ] #NEWLINE# #UNINDENT# '\n    Prepared Geometry Binary predicates\n    Return 2 on exception, 1 on true, 0 on false\n    ' #NEWLINE# if ( geos_version >= ( 3 , 1 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSPrepare . restype = c_void_p #NEWLINE# lgeos . GEOSPrepare . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSPreparedGeom_destroy . restype = None #NEWLINE# lgeos . GEOSPreparedGeom_destroy . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSPreparedDisjoint . restype = c_byte #NEWLINE# lgeos . GEOSPreparedDisjoint . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSPreparedTouches . restype = c_byte #NEWLINE# lgeos . GEOSPreparedTouches . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSPreparedIntersects . restype = c_byte #NEWLINE# lgeos . GEOSPreparedIntersects . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSPreparedCrosses . restype = c_byte #NEWLINE# lgeos . GEOSPreparedCrosses . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSPreparedWithin . restype = c_byte #NEWLINE# lgeos . GEOSPreparedWithin . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSPreparedContains . restype = c_byte #NEWLINE# lgeos . GEOSPreparedContains . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSPreparedContainsProperly . restype = c_byte #NEWLINE# lgeos . GEOSPreparedContainsProperly . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSPreparedOverlaps . restype = c_byte #NEWLINE# lgeos . GEOSPreparedOverlaps . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSPreparedCovers . restype = c_byte #NEWLINE# lgeos . GEOSPreparedCovers . argtypes = [ c_void_p , c_void_p ] #NEWLINE# #UNINDENT# '\n    Geometry info\n    ' #NEWLINE# lgeos . GEOSGeomType . restype = c_char_p #NEWLINE# lgeos . GEOSGeomType . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGeomTypeId . restype = c_int #NEWLINE# lgeos . GEOSGeomTypeId . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGetSRID . restype = c_int #NEWLINE# lgeos . GEOSGetSRID . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSSetSRID . restype = None #NEWLINE# lgeos . GEOSSetSRID . argtypes = [ c_void_p , c_int ] #NEWLINE# lgeos . GEOSGetNumGeometries . restype = c_int #NEWLINE# lgeos . GEOSGetNumGeometries . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGetGeometryN . restype = c_void_p #NEWLINE# lgeos . GEOSGetGeometryN . argtypes = [ c_void_p , c_int ] #NEWLINE# lgeos . GEOSGetNumInteriorRings . restype = c_int #NEWLINE# lgeos . GEOSGetNumInteriorRings . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGetInteriorRingN . restype = c_void_p #NEWLINE# lgeos . GEOSGetInteriorRingN . argtypes = [ c_void_p , c_int ] #NEWLINE# lgeos . GEOSGetExteriorRing . restype = c_void_p #NEWLINE# lgeos . GEOSGetExteriorRing . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGetNumCoordinates . restype = c_int #NEWLINE# lgeos . GEOSGetNumCoordinates . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGeom_getCoordSeq . restype = c_void_p #NEWLINE# lgeos . GEOSGeom_getCoordSeq . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSGeom_getDimensions . restype = c_int #NEWLINE# lgeos . GEOSGeom_getDimensions . argtypes = [ c_void_p ] #NEWLINE# '\n    Misc functions\n    ' #NEWLINE# lgeos . GEOSArea . restype = c_double #NEWLINE# lgeos . GEOSArea . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSLength . restype = c_int #NEWLINE# lgeos . GEOSLength . argtypes = [ c_void_p , c_void_p ] #NEWLINE# lgeos . GEOSDistance . restype = c_int #NEWLINE# lgeos . GEOSDistance . argtypes = [ c_void_p , c_void_p , c_void_p ] #NEWLINE# if ( geos_version >= ( 3 , 2 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSHausdorffDistance . restype = c_int #NEWLINE# lgeos . GEOSHausdorffDistance . argtypes = [ c_void_p , c_void_p , c_void_p ] #NEWLINE# #UNINDENT# '\n    Reader and Writer APIs\n    ' #NEWLINE# 'WKT Reader' #NEWLINE# lgeos . GEOSWKTReader_create . restype = c_void_p #NEWLINE# lgeos . GEOSWKTReader_create . argtypes = [ ] #NEWLINE# lgeos . GEOSWKTReader_destroy . restype = None #NEWLINE# lgeos . GEOSWKTReader_destroy . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSWKTReader_read . restype = c_void_p #NEWLINE# lgeos . GEOSWKTReader_read . argtypes = [ c_void_p , c_char_p ] #NEWLINE# 'WKT Writer' #NEWLINE# lgeos . GEOSWKTWriter_create . restype = c_void_p #NEWLINE# lgeos . GEOSWKTWriter_create . argtypes = [ ] #NEWLINE# lgeos . GEOSWKTWriter_destroy . restype = None #NEWLINE# lgeos . GEOSWKTWriter_destroy . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSWKTWriter_write . restype = allocated_c_char_p #NEWLINE# lgeos . GEOSWKTWriter_write . argtypes = [ c_void_p , c_void_p ] #NEWLINE# if ( geos_version >= ( 3 , 3 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSWKTWriter_setTrim . restype = None #NEWLINE# lgeos . GEOSWKTWriter_setTrim . argtypes = [ c_void_p , c_int ] #NEWLINE# lgeos . GEOSWKTWriter_setRoundingPrecision . restype = None #NEWLINE# lgeos . GEOSWKTWriter_setRoundingPrecision . argtypes = [ c_void_p , c_int ] #NEWLINE# lgeos . GEOSWKTWriter_setOutputDimension . restype = None #NEWLINE# lgeos . GEOSWKTWriter_setOutputDimension . argtypes = [ c_void_p , c_int ] #NEWLINE# lgeos . GEOSWKTWriter_getOutputDimension . restype = c_int #NEWLINE# lgeos . GEOSWKTWriter_getOutputDimension . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSWKTWriter_setOld3D . restype = None #NEWLINE# lgeos . GEOSWKTWriter_setOld3D . argtypes = [ c_void_p , c_int ] #NEWLINE# #UNINDENT# 'WKB Reader' #NEWLINE# lgeos . GEOSWKBReader_create . restype = c_void_p #NEWLINE# lgeos . GEOSWKBReader_create . argtypes = [ ] #NEWLINE# lgeos . GEOSWKBReader_destroy . restype = None #NEWLINE# lgeos . GEOSWKBReader_destroy . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSWKBReader_read . restype = c_void_p #NEWLINE# lgeos . GEOSWKBReader_read . argtypes = [ c_void_p , c_char_p , c_size_t ] #NEWLINE# lgeos . GEOSWKBReader_readHEX . restype = c_void_p #NEWLINE# lgeos . GEOSWKBReader_readHEX . argtypes = [ c_void_p , c_char_p , c_size_t ] #NEWLINE# 'WKB Writer' #NEWLINE# lgeos . GEOSWKBWriter_create . restype = c_void_p #NEWLINE# lgeos . GEOSWKBWriter_create . argtypes = [ ] #NEWLINE# lgeos . GEOSWKBWriter_destroy . restype = None #NEWLINE# lgeos . GEOSWKBWriter_destroy . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSWKBWriter_write . restype = allocated_c_char_p #NEWLINE# lgeos . GEOSWKBWriter_write . argtypes = [ c_void_p , c_void_p , c_size_t_p ] #NEWLINE# lgeos . GEOSWKBWriter_writeHEX . restype = allocated_c_char_p #NEWLINE# lgeos . GEOSWKBWriter_writeHEX . argtypes = [ c_void_p , c_void_p , c_size_t_p ] #NEWLINE# lgeos . GEOSWKBWriter_getOutputDimension . restype = c_int #NEWLINE# lgeos . GEOSWKBWriter_getOutputDimension . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSWKBWriter_setOutputDimension . restype = None #NEWLINE# lgeos . GEOSWKBWriter_setOutputDimension . argtypes = [ c_void_p , c_int ] #NEWLINE# lgeos . GEOSWKBWriter_getByteOrder . restype = c_int #NEWLINE# lgeos . GEOSWKBWriter_getByteOrder . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSWKBWriter_setByteOrder . restype = None #NEWLINE# lgeos . GEOSWKBWriter_setByteOrder . argtypes = [ c_void_p , c_int ] #NEWLINE# lgeos . GEOSWKBWriter_getIncludeSRID . restype = c_int #NEWLINE# lgeos . GEOSWKBWriter_getIncludeSRID . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSWKBWriter_setIncludeSRID . restype = None #NEWLINE# lgeos . GEOSWKBWriter_setIncludeSRID . argtypes = [ c_void_p , c_int ] #NEWLINE# if ( geos_version >= ( 3 , 1 , 1 ) ) : #NEWLINE# #INDENT# '\n        Free buffers returned by stuff like GEOSWKBWriter_write(),\n        GEOSWKBWriter_writeHEX() and GEOSWKTWriter_write()\n        ' #NEWLINE# lgeos . GEOSFree . restype = None #NEWLINE# lgeos . GEOSFree . argtypes = [ c_void_p ] #NEWLINE# #UNINDENT# if ( geos_version >= ( 3 , 3 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSSnap . restype = c_void_p #NEWLINE# lgeos . GEOSSnap . argtypes = [ c_void_p , c_void_p , c_double ] #NEWLINE# lgeos . GEOSSharedPaths . restype = c_void_p #NEWLINE# lgeos . GEOSSharedPaths . argtypes = [ c_void_p , c_void_p ] #NEWLINE# #UNINDENT# if ( geos_version >= ( 3 , 4 , 0 ) ) : #NEWLINE# #INDENT# lgeos . GEOSNearestPoints . restype = c_void_p #NEWLINE# lgeos . GEOSNearestPoints . argtypes = [ c_void_p , c_void_p ] #NEWLINE# #UNINDENT# if ( geos_version >= ( 3 , 4 , 2 ) ) : #NEWLINE# #INDENT# lgeos . GEOSQueryCallback = CFUNCTYPE ( None , c_void_p , c_void_p ) #NEWLINE# lgeos . GEOSSTRtree_query . argtypes = [ c_void_p , c_void_p , lgeos . GEOSQueryCallback , py_object ] #NEWLINE# lgeos . GEOSSTRtree_query . restype = None #NEWLINE# lgeos . GEOSSTRtree_create . argtypes = [ c_int ] #NEWLINE# lgeos . GEOSSTRtree_create . restype = c_void_p #NEWLINE# lgeos . GEOSSTRtree_insert . argtypes = [ c_void_p , c_void_p , py_object ] #NEWLINE# lgeos . GEOSSTRtree_insert . restype = None #NEWLINE# lgeos . GEOSSTRtree_remove . argtypes = [ c_void_p , c_void_p , py_object ] #NEWLINE# lgeos . GEOSSTRtree_remove . restype = None #NEWLINE# lgeos . GEOSSTRtree_destroy . argtypes = [ c_void_p ] #NEWLINE# lgeos . GEOSSTRtree_destroy . restype = None