[Featureserver] configuration for postgis datasource
John Cartwright
john.c.cartwright at comcast.net
Wed Oct 31 16:42:09 EDT 2007
Christopher Schmidt wrote:
> On Wed, Oct 31, 2007 at 10:57:27AM -0600, John Cartwright wrote:
>
>> I'm assuming that the dsn parameter does not get quoted, otherwise
>> featureserver complains about the dbname value The string "dbname=mydb
>> user=myuser password=mypass host=postgres1 port=5432" is a valid DSN
>> outside of featureserver. I'm using psycopg2-2.0.6 for the postgres
>> driver. Can someone point out what I'm doing wrong here?
>>
>
> I'm assuming you had to change the FeatureServer code to use it with
> psycopg2? FeatureServer is known not to work with it at this time.
>
> Regards,
>
Thanks for your reply Chris.
yes I did change PostGIS.py and VersionedPostGIS.py to use psycopg2
instead of psycopg - is that a bad idea? I thought psycopg2 was the
current, actively-maintained dbapi2.0 driver. Does featureserver prefer
the dbapi1.0 instead?
-- john
--john
More information about the Featureserver
mailing list