[Thuban-list] LINESTRING and PostGIS

Bernhard Herzog bh at intevation.de
Thu Mar 18 18:50:00 CET 2004


Stephan Holl <sholl at gmx.net> writes:

>     cursor.execute("SELECT gid, AsText(%s) FROM %s"
> ProgrammingError: ERROR:  Attribut »gid« nicht gefunden

The code in Thuban 1.0.0 only works with tables that have a column
called "gid".  This has been fixed in CVS last week.  You might want to
try that.

> My dataset does not have the "gid"-column, it is named ogc_fid (by
> v.out.ogr).
> After copying this column to "gid" everything is fine.
>
> I am not quite sure why v.out.ogr does not name a gid-column...

It doesn't have to.  The requirement for the gid-column is (or was now)
really a bug in Thuban.  All that's required now is that it has an
integer column with ids.  The dialog lets you choose which one to use.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Skencil                                http://sketch.sourceforge.net/
Thuban                                  http://thuban.intevation.org/




More information about the Thuban-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)