Fink

Package geotypes-py25-0.7.0-1

SystemCVS/rsync Source DistributionsDebian Binary Distributions
stable RSS feed stableunstable RSS feed unstablestableunstable
10.9/x86_64
 
 
 
 
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
 
 
 
10.4/i386 *
 
 
 
10.4/powerpc *
 
 
 
10.3/powerpc *
 
 
 
 
10.2-gcc3.3/powerpc *
 
 
 
 
10.2/powerpc *
 
 
 
 
10.1/powerpc *
 
 
 
 
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:   10.5-EOL/sci
Maintainer:   Kurt Schwehr <goatbarATusersDOTsourceforgeDOTnet>
Website:   http://initd.org/tracker/psycopg/wiki/GeoTypes
License:   LGPL
Info-File:   dists/10.4/stable/main/finkinfo/10.5-EOL/sci/geotypes-py.info
CVS log, Last Changed: Sun, 07 Jul 2013 17:07:24 (UTC)

Section list - Flat package list - Search packages

(*) = Unsupported distribution.