Info2: << Package: geotypes-py%type_pkg[python] Version: 0.7.0 Revision: 1 Type: python (2.5) Description: OpenGIS/PostGIS/postgres geometry types DescDetail: << GeoTypes is a python library that implements both the OpenGIS/PostGIS and standard postgres geometry types, it integrates with the psycopg python/postgres interface. GeoTypes provides implementations of all of the OpenGIS/PostGIS classes (except (x,y,m) and (z,y,z,m)) and supports EWKB, HEXWKB, WKB and WKT formats. << DescUsage: << import psycopg2 import psycopg2.extensions import GeoTypes factory = GeoTypes.OGGeoTypeFactory() parser = GeoTypes.HEXEWKBParser(factory) c = psycopg2.connect("dbname='ais' user='schwehr'") cu = c.cursor() cu.execute('SELECT position::geometry FROM position LIMIT 1;') row = cu.fetchone() parser.parseGeometry(row[0]) geom = factory.getGeometry() print type(geom) print geom print 'x:',geom.getX() print 'y:',geom.getY() << LICENSE: LGPL Source: http://initd.org/svn/psycopg/geotypes/releases/GeoTypes-%v.tar.gz Source-MD5: 241f2a2ec3a90b7d501fccf7879549db Depends: python%type_pkg[python], simplejson-py%type_pkg[python] CompileScript: << %p/bin/python%type_raw[python] setup.py build << InstallScript: << %p/bin/python%type_raw[python] setup.py install --root %d << DocFiles: AUTHORS INSTALL KNOWN_BUGS LICENSE NEWS PKG-INFO README TODO VERSION Homepage: http://initd.org/tracker/psycopg/wiki/GeoTypes Maintainer: Kurt Schwehr # Info2 <<