Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv21412

Added Files:
        geotypes-py.info 
Log Message:
Helpful to deal with WKB hex strings and such


--- NEW FILE: geotypes-py.info ---
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 <[EMAIL PROTECTED]>


# Info2
<<


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to