[geos-devel] missing python functions?
Russell Strong
russell at strong.id.au
Mon Feb 25 05:46:52 EST 2008
Hi,
Just compiled and installed geos-3.0.0 and would like to write some
python code. However, I can't figure out how to create a geometry
collection in python. I checked out example.py. It doesn't work
either. It appears to me that a bunch of stuff is missing from the
python bindings. Here is a dir() of the geos module.
>>> import geos
>>> dir(geos)
['CoordinateSequence', 'CoordinateSequence_swigregister',
'GEOS_CAPI_FIRST_INTERFACE', 'GEOS_CAPI_LAST_INTERFACE',
'GEOS_CAPI_VERSION', 'GEOS_CAPI_VERSION_MAJOR',
'GEOS_CAPI_VERSION_MINOR', 'GEOS_CAPI_VERSION_PATCH',
'GEOS_GEOMETRYCOLLECTION', 'GEOS_JTS_PORT', 'GEOS_LINEARRING',
'GEOS_LINESTRING', 'GEOS_MULTILINESTRING', 'GEOS_MULTIPOINT',
'GEOS_MULTIPOLYGON', 'GEOS_POINT', 'GEOS_POLYGON', 'GEOS_VERSION',
'GEOS_VERSION_MAJOR', 'GEOS_VERSION_MINOR', 'GEOS_VERSION_PATCH',
'GEOS_WKB_NDR', 'GEOS_WKB_XDR', 'Geometry', 'GeometryCollection',
'GeometryCollection_swigregister', 'Geometry_swigregister',
'LineString', 'LineString_swigregister', 'LinearRing',
'LinearRing_swigregister', 'MultiLineString',
'MultiLineString_swigregister', 'MultiLinearRing',
'MultiLinearRing_swigregister', 'MultiPoint', 'MultiPoint_swigregister',
'MultiPolygon', 'MultiPolygon_swigregister', 'Point',
'Point_swigregister', 'Polygon', 'Polygon_swigregister',
'PySwigIterator', 'PySwigIterator_swigregister', 'WkbReader',
'WkbReader_swigregister', 'WkbWriter', 'WkbWriter_swigregister',
'WktReader', 'WktReader_swigregister', 'WktWriter',
'WktWriter_swigregister', '__builtins__', '__doc__', '__file__',
'__name__', '_geos', '_newclass', '_object', '_swig_getattr',
'_swig_property', '_swig_repr', '_swig_setattr',
'_swig_setattr_nondynamic', '_swig_setattr_nondynamic_method',
'createLineString', 'createLinearRing', 'createPoint', 'createPolygon',
'new', 'new_instancemethod', 'version']
>>>
Thanks,
Russell
More information about the geos-devel
mailing list