Fink

Package geotypes-py25-0.7.0-1

SystemBinary DistributionsCVS/rsync Source Distributions
stable RSS feed stableunstable RSS feed unstable
10.8/x86_64
 
 
 
10.7/x86_64
 
 
 
10.6/x86_64
 
 
10.6/i386
 
 
10.5/i386
 
 
10.5/powerpc
 
0.7.0-1
 
Description:   OpenGIS/PostGIS/postgres geometry types (0.7.0-1)
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.
Usage Hints:   
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()
Section:   sci
Maintainer:   Kurt Schwehr <goatbarATusersDOTsourceforgeDOTnet>
Website:   http://initd.org/tracker/psycopg/wiki/GeoTypes
License:   LGPL
Info-File:   dists/10.4/stable/main/finkinfo/sci/geotypes-py.info
CVS log, Last Changed: Tue, 21 Feb 2012 20:30:47 (UTC)

Section list - Flat package list - Search packages

(*) = Unsupported distribution.