[sqlalchemy] Re: postgres POLYGON data type

2007-09-17 Thread sc0ttbeardsley
On Sep 17, 5:03 am, [EMAIL PROTECTED] wrote: Has anyone added support for the POLYGON data type in PostgreSQL? If so, is there any code that can be shared? I haven't seen POLYGON but the beginnings of such support is over at bycycle.org[1]. I'm interested in something similar for MySQL's

[sqlalchemy] Re: postgres POLYGON data type

2007-09-17 Thread Ants Aasma
On Sep 17, 3:03 pm, [EMAIL PROTECTED] wrote: Has anyone added support for the POLYGON data type in PostgreSQL? If so, is there any code that can be shared? Here's a patch implementing PGPolygon. The conversion from/to python types should be done in dbapi IMHO (i.e. psycopg2) but this will work

[sqlalchemy] Re: postgres POLYGON data type

2007-09-17 Thread jason kirtland
sc0ttbeardsley wrote: On Sep 17, 5:03 am, [EMAIL PROTECTED] wrote: Has anyone added support for the POLYGON data type in PostgreSQL? If so, is there any code that can be shared? I haven't seen POLYGON but the beginnings of such support is over at bycycle.org[1]. I'm interested in something

[sqlalchemy] Re: postgres POLYGON data type

2007-09-17 Thread sdobrev
i don't have recent py-gis experience, but from past, its been tuple-likes and numpy arrays. Best option will be to have some default data-representation constructor for each SA-GIS type, and allow overriding that. e.g. Point holds data by default in a tuple (Point.DataHoler=tuple), but i can