Log of /branches/WIP-pyshapelib-bramz/Resources
Directory Listing
Revision
2734 -
Directory Listing
Modified
Thu Mar 1 12:42:59 2007 UTC
(18 years ago)
by
bramz
made a copy
Revision
2532 -
Directory Listing
Modified
Thu Jan 20 20:29:20 2005 UTC
(20 years, 1 month ago)
by
russell
Original Path:
trunk/thuban/Resources
Resources/Projections/defaults.proj: Ruin the speling of the
Lambert-93 projection so it doesn't run into the unicode bug.
It's the wrong thing to do in the long run, but it's necessary
until that bug is fixed. Otherwise the projection dialog
segfaults.
Revision
2104 -
Directory Listing
Modified
Fri Mar 12 12:19:15 2004 UTC
(20 years, 11 months ago)
by
bh
Original Path:
trunk/thuban/Resources
Final step for explicit id/geometry columns: Loading and saving
* Resources/XML/thuban-1.1.dtd: New. Derived from thuban-1.0.dtd
with the following changes:
(dbshapesource): Two new attributes id_column and geometry_column
* Thuban/Model/save.py (SessionSaver.write): Use the new dtd
(SessionSaver.write_session): Use the new namespace
(SessionSaver.write_data_containers): Write the new dbshapesource
parameters
* Thuban/Model/load.py (SessionLoader.__init__): New namespace for
the new file format version
(SessionLoader.start_dbshapesource): Handle the new db parameters
* test/test_save.py: Update to the new dtd and namespace
(SaveSessionTest.test_save_postgis): Update the NonConnectionStore
mock object to provide a working IDColumn method.
* test/test_load_1_0.py: New. Copy of the test_load.py before
today's changes but with the round-trip tests removed.
* test/test_load_0_9.py: Update doc-string.
* test/test_load.py: Update all .thuban files to the new dtd and
namespace.
(TestPostGISLayer.file_contents): Add the new dbshapesource
paramters
Revision
2026 -
Directory Listing
Modified
Tue Dec 9 16:17:01 2003 UTC
(21 years, 2 months ago)
by
frank
Original Path:
trunk/thuban/Resources
* Resources/Projections/defaults.proj:
French projection sample with correct accents (UNICODE).
Revision
1856 -
Directory Listing
Modified
Fri Oct 24 09:32:27 2003 UTC
(21 years, 4 months ago)
by
jan
Original Path:
trunk/thuban/Resources
This is a list of EPSG codes with parameters for proj. The list has been
generated using devtools/create_epsg.py based on the file nad/epsg of the
proj 4.4.7 package.
Four projection definitions have been deleted as they are not accepted by
proj: "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
and "HD72 / EOV".
Revision
1841 -
Directory Listing
Modified
Tue Oct 21 10:49:03 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/Resources
New. Only difference to
thuban-0.9.dtd is the epsg attribute for projections.
Revision
1835 -
Directory Listing
Modified
Tue Oct 21 08:59:28 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/Resources
Use correct DOCTYPE
declaration. The top-level element is projectionlist not projfile
Revision
1742 -
Directory Listing
Modified
Tue Sep 23 12:27:17 2003 UTC
(21 years, 5 months ago)
by
bh
Original Path:
trunk/thuban/Resources
(Geographic projection): Use
a much more precise value for the to_meter attribute.
Revision
1638 -
Directory Listing
Modified
Fri Aug 22 18:19:14 2003 UTC
(21 years, 6 months ago)
by
bh
Original Path:
trunk/thuban/Resources
Implement saving a session with a postgis connection
* Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
elements for database connections and shapestores using db
connections
(session): Add the dbconnections to the content model
* Thuban/Model/save.py (SessionSaver.write_db_connections): New.
Write the db connections
(SessionSaver.write_session): Call write_db_connections to write
the connection before the data sources
(SessionSaver.write_data_containers): Handle postgis shapestores
* test/test_save.py (SaveSessionTest.thubanids)
(SaveSessionTest.thubanidrefs): Update for new DTD
(SaveSessionTest.test_save_postgis): New. Test saving a session
with postgis connections
* Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
(PostGISTable.TableName): New accessor methods for the connection
and table name
* test/test_postgis_db.py (TestPostGISTable.test_dbconn)
(TestPostGISTable.test_dbname): New methods to test the new
PostGISConnection methods
Revision
1375 -
Directory Listing
Modified
Tue Jul 8 10:53:05 2003 UTC
(21 years, 8 months ago)
by
bh
Original Path:
trunk/thuban/Resources
* Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
0.9.
* Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
New. Return the join type
* Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
DTD
(SessionSaver.write_data_containers): Save the join type for
joined tables
* Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
namespace
(SessionLoader.start_jointable): Handle the jointype attribute
* test/test_load_0_8.py: New. Effectively a copy of test_load.py
as of Thuban 0.8. These are now tests to determine whether Thuban
can still read files generated by Thuban 0.8
* test/test_load.py (LoadSessionTest.dtd)
(TestSingleLayer.file_contents)
(TestLayerVisibility.file_contents, TestLabels.file_contents)
(TestLayerProjection.file_contents)
(TestRasterLayer.file_contents, TestJoinedTable.file_contents)
(TestJoinedTable.file_contents)
(TestLoadError.file_contents): Update for new DTD
(TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
for new join type attribute
* test/test_save.py (SaveSessionTest.dtd)
(SaveSessionTest.testEmptySession)
(SaveSessionTest.testSingleLayer)
(SaveSessionTest.testLayerProjection)
(SaveSessionTest.testRasterLayer)
(SaveSessionTest.testClassifiedLayer)
(SaveSessionTest.test_dbf_table)
(SaveSessionTest.test_joined_table): Update for new DTD
(SaveSessionTest.test_joined_table): Add test for new join type
attribute
Revision
1268 -
Directory Listing
Modified
Fri Jun 20 16:10:12 2003 UTC
(21 years, 8 months ago)
by
bh
Original Path:
trunk/thuban/Resources
* Resources/XML/thuban-0.8.dtd: New DTD for the new file format
version.
* Thuban/Model/save.py (sort_data_stores): New. Make topological
sort of the data sources so they can be written with sources that
data sources that depend on other data sources come after the
sources they depend on.
(SessionSaver.__init__): Add idmap instance variable to map from
objects to the ids used in the file.
(SessionSaver.get_id, SessionSaver.define_id)
(SessionSaver.has_id): New. Methods to manage the idmap
(SessionSaver.write): Use thuban-0.8.dtd
(SessionSaver.write_session): Add a namespace on the session and
write out the data sources before the maps.
(SessionSaver.write_data_containers): New. Write the data
containers.
(SessionSaver.write_layer): Layer elements now refer to a
shapestore and don't contain filenames anymore.
* Thuban/Model/load.py (LoadError): Exception class to raise when
errors in the files are discovered
(SessionLoader.__init__): Define dispatchers for elements with a
thuban-0.8 namespace too.
(SessionLoader.check_attrs): New helper method to check and
convert attributes
(AttrDesc): New. Helper class for SessionLoader.check_attrs
(SessionLoader.start_fileshapesource)
(SessionLoader.start_derivedshapesource)
(SessionLoader.start_filetable, SessionLoader.start_jointable):
Handlers for the new elements in the new fileformat
(SessionLoader.start_layer): Handle the shapestore attribute in
addition to filename.
(SessionLoader.start_table, SessionLoader.end_table): Removed.
They were never used in the old formats and aren't needed for the
new.
* Thuban/Model/session.py (Session.DataContainers): New method to
return all "data containers", i.e. shapestores and tables
* test/xmlsupport.py (SaxEventLister.__init__)
(SaxEventLister.startElementNS, sax_eventlist): Add support to
normalize IDs.
* test/test_xmlsupport.py
(TestEventList.test_even_list_id_normalization): New test case for
id normalization
* test/test_load.py (LoadSessionTest.check_format): Use ID
normalization
(LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
class atrributes used for ID normalization
(TestSingleLayer, TestLayerVisibility, TestLabels.test)
(TestLayerProjection.test, TestRasterLayer.test): Adapt to new
file format
(TestJoinedTable): New test for loading sessions with joined
tables.
(TestLoadError): New. Test whether missing required attributes
cause a LoadError.
* test/test_save.py (SaveSessionTest.thubanids)
(SaveSessionTest.thubanidrefs): New class attributes for ID
normalization in .thuban files.
(SaveSessionTest.compare_xml): Use id-normalization.
(SaveSessionTest.testEmptySession)
(SaveSessionTest.testLayerProjection)
(SaveSessionTest.testRasterLayer)
(SaveSessionTest.testClassifiedLayer): Adapt to new file format.
(SaveSessionTest.testLayerProjection): The filename used was the
same as for testSingleLayer. Use a different one.
(SaveSessionTest.test_dbf_table)
(SaveSessionTest.test_joined_table): New test cases for saving the
new data sources structures.
(TestStoreSort, MockDataStore): Classes to test the sorting of the
data stores for writing.
Revision
1255 -
Directory Listing
Modified
Fri Jun 20 10:40:35 2003 UTC
(21 years, 8 months ago)
by
bh
Original Path:
trunk/thuban/Resources
Add comment about which versions of
Thuban are covered by this DTD
(map): Fix content model for layers and raster layers. There can
be any number or layers and raster layers in any order.
Revision
1245 -
Directory Listing
Modified
Thu Jun 19 19:29:23 2003 UTC
(21 years, 8 months ago)
by
bh
Original Path:
trunk/thuban/Resources
Add XML validation to some of the tests. Validation will only be
done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
To make the DTD available to the test cases it's moved into
Resources/XML
* Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
for versions up to and including 0.2. Two slight changes: added an
encoding specification and fixed the comment which refered to
GRASS, not Thuban
* test/xmlsupport.py: New support module for tests involving XML.
Currently there's a mix-in class for XML validation.
* test/test_xmlsupport.py: New. Tests for the xmlsupport module
* test/test_save.py (SaveSessionTest): Derive from ValidationTest
so that we can validate the
(SaveSessionTest.testEmptySession)
(SaveSessionTest.testSingleLayer)
(SaveSessionTest.testSingleLayer)
(SaveSessionTest.testLayerProjection)
(SaveSessionTest.testRasterLayer)
(SaveSessionTest.testClassifiedLayer): Validate the generated XML
* test/runtests.py (main): Call print_additional_summary instead
of print_garbage_information
* test/support.py (resource_dir): New function to return the
"Resource" subdirectory
(print_additional_summary): New function to combine several
summary functions
(run_tests): Use print_additional_summary instead of calling
print_garbage_information directly
Revision
953 -
Directory Listing
Modified
Wed May 21 15:53:25 2003 UTC
(21 years, 9 months ago)
by
jan
Original Path:
trunk/thuban/Resources
Renamed 'Universal Transverse Mercator' to 'UTM Zone 32' as a more
convenient example.
Added 'Gauss Krueger Zone 6'.
Revision
827 -
Directory Listing
Modified
Tue May 6 12:05:54 2003 UTC
(21 years, 10 months ago)
by
jonathan
Original Path:
trunk/thuban/Resources
Bitmaps for layer and selection extent. These are just place holders for
the real bitmaps.
Revision
663 -
Directory Listing
Modified
Mon Apr 14 15:41:33 2003 UTC
(21 years, 10 months ago)
by
frank
Original Path:
trunk/thuban/Resources
Updated design to try to make the button functionality more transparent.
Revision
645 -
Directory Listing
Modified
Fri Apr 11 09:12:21 2003 UTC
(21 years, 10 months ago)
by
jonathan
Original Path:
trunk/thuban/Resources
New bitmaps for the legend, dock, and 'generate class' windows.