/[thuban]
ViewVC logotype

Revision 2057


Jump to revision: Previous Next
Author: bh
Date: Tue Feb 10 15:51:57 2004 UTC (21 years ago)
Changed paths: 3
Log Message:
* Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
doc-string
(PostGISShapeStore._fetch_table_information): New. Extend
inherited method to retrieve srid
(PostGISShapeStore.BoundingBox): Handle tables without data.
extent yields NULL for those
(PostGISShapeStore.ShapesInRegion): Use the srid of the table.

* test/test_postgis_db.py
(TestPostGISSpecialCases.test_shapestore_empty_table): New test
for the special case of a table without any data
(TestPostGISShapestorePointSRID): New class with tests for a table
that uses srids
(PolygonTests): Fix a doc-string typo

* test/postgissupport.py (PostGISDatabase.__init__): New parameter
reference_systems with a specification of spacial reference
systems to create in the new db.
(PostgreSQLServer.new_postgis_db)
(PostgreSQLServer.get_static_data_db): New parameter
reference_systems to be passed through ultimately to
PostGISDatabase.  In new_postgis_db also check whether an existing
db already has the right srids
(PostgreSQLServer.get_default_static_data_db): Add srids and a
table that uses srids
(PostGISDatabase.initdb): Create the entries for the reference
systems
(PostGISDatabase.has_data): Add reference_systems parameter to
check for those too
(upload_shapefile): New parameter srid to create tables with a
specific srid


Changed paths

Path Details
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