/[thuban]
ViewVC logotype

Revision 2472


Jump to revision: Previous Next
Author: bh
Date: Thu Dec 16 15:18:57 2004 UTC (20 years, 2 months ago)
Changed paths: 4
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.


Changed paths

Path Details
Directorytrunk/thuban/ChangeLog modified , text changed
Directorytrunk/thuban/Thuban/Model/postgisdb.py modified , text changed
Directorytrunk/thuban/test/postgissupport.py modified , text changed
Directorytrunk/thuban/test/test_postgis_db.py modified , text changed

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26