just a note about parsing points, which worked... >>> import GeoTypes ... >>> cr.execute("select asBinary(geomFromText('POINT(34214.3412 34214.3412)'))") 1L >>> obj = cr.fetchone()[0] >>> obj '[EMAIL PROTECTED]@' >>> cr.execute("select geomFromText('POINT(34214.3412 34214.3412)')") 1L >>> obj = cr.fetchone()[0] >>> obj '[EMAIL PROTECTED]@' >>> obj[4:] '[EMAIL PROTECTED]@' >>> g = GeoTypes.OGGeoTypeFactory() >>> p = GeoTypes.WKBParser(g) >>> p.parseGeometry(obj[4:]) >>> g.getGeometry() 34214.341200 34214.341200 >>>
tried to parse polygons, but 17:30 is too late for clear thought... a domani (I'll be reading you tomorrow), Mario -- Die Welt wird nicht bedroht von den Menschen, die böse sind, sondern von denen, die das Böse zulassen -- Albert Einstein _______________________________________________ DB-SIG maillist - DB-SIG@python.org http://mail.python.org/mailman/listinfo/db-sig