[Thuban-list] LINESTRING and PostGIS

Stephan Holl sholl at gmx.net
Wed Mar 17 20:39:19 CET 2004


Dear developers,

I am trying to access a dataset stored in Postgis which has the GEOMETRY
of LINESTRING.
I have the same geometries stored in another table with MUTLILINESTRING,
which works perfect.

The following output of thuban appears:
An unhandled exception occurred:
'LINESTRING'
(please report to http://thuban.intevation.org/bugtracker.html)

Traceback (most recent call last):
  File "/home/steph/cvs/thuban/Thuban/UI/legend.py", line 489, in
_OnItemActivated
    self.parent.DoOnProperties()
  File "/home/steph/cvs/thuban/Thuban/UI/legend.py", line 171, in
DoOnProperties
    self.mainWindow.OpenLayerProperties(list[0], list[1])
  File "/home/steph/cvs/thuban/Thuban/UI/mainwindow.py", line 690, in
OpenLayerProperties
    dialog = Classifier(self, name, self.Map(), layer, group)
  File "/home/steph/cvs/thuban/Thuban/UI/classifier.py", line 769, in
__init__
    self.__SelectField(self.__cur_field, group = group)
  File "/home/steph/cvs/thuban/Thuban/UI/classifier.py", line 996, in
__SelectField
    self.__SetGridTable(newIndex, group)
  File "/home/steph/cvs/thuban/Thuban/UI/classifier.py", line 970, in
__SetGridTable
    self.layer.ShapeType(), group)
  File "/home/steph/cvs/thuban/Thuban/Model/layer.py", line 216, in
ShapeType
    return self.store.ShapeType()
  File "/home/steph/cvs/thuban/Thuban/Model/postgisdb.py", line 471, in
ShapeType
    return shapetype_map[result]
KeyError: 'LINESTRING'


Does that mean, that thuban can not handle dataset in LINESTRING
notation?!
I am using thuban from CVS
Thuban Release Version 1.0.0
Currently using:
	wxPython 2.4.2.4
	Python 2.3.2
	PySQLite 0.4.3
	SQLite 2.8.9
	GDAL 1.2.0.0
	psycopg 1.1.10

thanks for your help

cheers
	Stephan Holl

-- 
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

 20:33:27 up  4:21,  1 user,  load average: 0.35, 0.41, 0.38
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://intevation.de/pipermail/thuban-list/attachments/20040317/817faa5f/attachment.bin


More information about the Thuban-list mailing list