bh: thuban/Thuban/Model postgisdb.py,1.15,1.15.2.1
cvs@intevation.de
cvs at intevation.de
Thu Dec 16 20:17:53 CET 2004
Author: bh
Update of /thubanrepository/thuban/Thuban/Model
In directory doto:/tmp/cvs-serv29760/Thuban/Model
Modified Files:
Tag: thuban-1-0-branch
postgisdb.py
Log Message:
Add support for PostGIS tables with LINESTRING geomentries.
Fixes RT#2299
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
* test/postgissupport.py
(PostgreSQLServer.get_default_static_data_db): Rename the "roads"
table to "roads-multi" because it now uses MULTILINESTRING
geometries and introduce a new "roads" table that uses LINESTRING
(coords_to_multilinestring): Make the doc string more precise
(coords_to_linestring): New. Create a LINESTRING WKT
representatin
(wkt_converter): Add coords_to_linestring
(upload_shapefile): Rephrase the doc-string a bit.
* test/test_postgis_db.py (TestPostGISShapestoreArc)
(LineStringTests)
(TestPostGISShapestoreLineString)
(TestPostGISShapestoreMultiLineString): Split
TestPostGISShapestoreArc into a base class LineStringTests and two
derived classes TestPostGISShapestoreLineString for LINESTRING
geometries and TestPostGISShapestoreMultiLineString for
MULTILINESTRING geometries. Most test methods are in the base
class with the exception of tests that explicitly check the raw
format.
Index: postgisdb.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/Model/postgisdb.py,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -d -r1.15 -r1.15.2.1
--- postgisdb.py 11 Feb 2004 09:05:40 -0000 1.15
+++ postgisdb.py 16 Dec 2004 19:17:51 -0000 1.15.2.1
@@ -381,6 +381,7 @@
shapetype_map = {"POLYGON": SHAPETYPE_POLYGON,
"MULTIPOLYGON": SHAPETYPE_POLYGON,
+ "LINESTRING": SHAPETYPE_ARC,
"MULTILINESTRING": SHAPETYPE_ARC,
"POINT": SHAPETYPE_POINT}
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)