Log of /branches/WIP-pyshapelib-bramz/test/test_viewport.py
Parent Directory
|
Revision Log
Revision
2297 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 22 13:07:52 2004 UTC
(20 years, 7 months ago)
by
bh
Original Path:
trunk/thuban/test/test_viewport.py
File length: 19967 byte(s)
Diff to
previous 2296
* Thuban/UI/viewport.py (ViewPort.VisibleExtent): New. Return the
visible extent of the map in projected coordinates
* test/test_viewport.py (SimpleViewPortTest.test_default_size)
(SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
tests.
(SimpleViewPortTest.test_visible_extent): New. The real test for
VisibleExtent()
Revision
2289 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 16 19:47:29 2004 UTC
(20 years, 7 months ago)
by
bh
Original Path:
trunk/thuban/test/test_viewport.py
File length: 18935 byte(s)
Diff to
previous 1781
* test/test_viewport.py
(ViewPortTest.test_changing_map_projection): Check that changing
the projection of an empty map shown in a viewport doesn't lead to
exceptions in the viewport's handler for the
MAP_PROJECTION_CHANGED messages
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
try to keep the same region visible when the map actually contains
something
Revision
1781 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 6 17:31:44 2003 UTC
(21 years, 5 months ago)
by
bh
Original Path:
trunk/thuban/test/test_viewport.py
File length: 17048 byte(s)
Diff to
previous 1774
(ViewPortTest.setUp): Also subscribe to
the TITLE_CHANGED messages
(ViewPortTest.test_forwarding_title_changed): New test to check
whether the viewport forwards the map's TITLE_CHANGED messages
(TestViewportWithPostGIS.tearDown): Call the map's Destroy method
after the port's because the latter may require a still functional
map.
Revision
1774 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 6 13:09:18 2003 UTC
(21 years, 5 months ago)
by
bh
Original Path:
trunk/thuban/test/test_viewport.py
File length: 16817 byte(s)
Diff to
previous 1772
(ViewPortTest.setUp)
(SimpleViewPortTest.test_init_with_size): Move the test for the
initial size as a constructor parameter from ViewPortTest.setUp
method to a new separate test in SimpleViewPortTest.
Revision
1662 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Wed Aug 27 13:51:01 2003 UTC
(21 years, 6 months ago)
by
bh
Original Path:
trunk/thuban/test/test_viewport.py
File length: 16460 byte(s)
Diff to
previous 1634
Make the table interface distinguish between row ids (an integer
that uniquely identifies a row) and row ordinals (a simple row
count from 0 to NumRows() - 1)
* Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
(PostGISTable.RowOrdinalToId): New methods to conver between row
ids and row ordinals
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
parameter row_is_ordinal to indicate whether the row parameter is
the row id or the ordinal
* Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
(TransientTableBase.RowOrdinalToId)
(AutoTransientTable.RowIdToOrdinal)
(AutoTransientTable.RowOrdinalToId): Same new methods as in
PostGISTable.
(TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
Same new parameter as in PostGISTable.
* Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
(DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
(MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
(DBFTable.ReadValue, DBFTable.ReadRowAsDict)
(MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
parameter as in PostGISTable.
* Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
(DataTable.RowOrdinalToId): New methods to convert between row ids
and row ordinals.
(TableGrid.SelectRowById): New method to select a row based on its
ID as opposed to its ordinal
(DataTable.GetValue, TableGrid.OnRangeSelect)
(TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
(QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
(LayerTableFrame.__init__): Convert between row ids and row
ordinals as appropriate
* test/postgissupport.py (PostGISDatabase.__init__): Add
doc-string.
(PostGISDatabase.initdb): The optional third item in a tuple in
tables is now a (key, value) list with additional arguments to
pass to upload_shapefile
(upload_shapefile): New parameter gid_offset to allow gids that
are not the same as the shapeids in the shapefile
(PostgreSQLServer.get_default_static_data_db): Use the new
gid_offset to make the gids in landmarks 1000 higher than the
shapeids in the shapefile
* test/test_viewport.py
(TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
new shapeids in the landmarks table
* test/test_transientdb.py
(TestTransientTable.run_iceland_political_tests)
(TestTransientTable.test_transient_joined_table): Add tests for
the new table methods and new keywords arguments.
* test/test_postgis_db.py
(TestPostGISTable.test_read_row_as_dict_row_count_mode)
(TestPostGISTable.test_read_value_row_count_mode)
(TestPostGISTable.test_row_id_to_ordinal)
(TestPostGISTable.test_row_oridnal_to_id): New test for the new
table methods and the new arguments
(TestPostGISShapestorePoint.test_shapes_in_region)
(TestPostGISShapestorePoint.test_shape_raw_data)
(TestPostGISShapestorePoint.test_shape_points)
(TestPostGISShapestorePoint.test_shape_shapeid)
(TestPostGISShapestorePoint.test_all_shapes)
(TestPostGISTable.test_simple_query)
(TestPostGISTable.test_simple_query)
(TestPostGISTable.test_simple_query)
(TestPostGISTable.test_read_value)
(TestPostGISTable.test_read_row_as_dict): Adapt to the new
shapeids in the landmarks table
* test/test_memory_table.py
(TestMemoryTable.test_read_row_as_dict_row_count_mode)
(TestMemoryTable.test_read_value_row_count_mode)
(TestMemoryTable.test_row_id_to_ordinal)
(TestMemoryTable.test_row_oridnal_to_id): New test for the new
table methods and the new arguments
* test/test_dbf_table.py
(TestDBFTable.test_read_row_as_dict_row_count_mode)
(TestDBFTable.test_read_value_row_count_mode)
(TestDBFTable.test_row_id_to_ordinal)
(TestDBFTable.test_row_oridnal_to_id): New test for the new table
methods and the new arguments
Revision
1634 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 22 16:55:19 2003 UTC
(21 years, 6 months ago)
by
bh
Original Path:
trunk/thuban/test/test_viewport.py
File length: 16457 byte(s)
Diff to
previous 1608
Prepare the test suite for tests with required authentication
* test/postgissupport.py (PostgreSQLServer.__init__): Add instance
variables with two predefined users/passwords, one for the admin
and one for a non-privileged user.
(PostgreSQLServer.createdb): Pass the admin name to initdb and add
the non-privileged user to the database and set the admin password
(PostgreSQLServer.wait_for_postmaster): Use the admin user name.
Better error reporting
(PostgreSQLServer.connection_params)
(PostgreSQLServer.connection_string): New methods to return
information about how to connect to the server
(PostgreSQLServer.execute_sql): New. Convenience method to execute
SQL statements
(PostgreSQLServer.require_authentication): Toggle whether the
server requires authentication
(PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
Add or alter users
(PostGISDatabase.initdb): Pass the admin name one the
subprocesses' command lines. Grant select rights on
geometry_columns to everybody.
(upload_shapefile): Use the admin name and password when
connecting. Grant select rights on the new table to everybody.
* test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
server's new methods to get the connection parameters.
* test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
(TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
server's new methods to get the connection parameters.
* test/test_postgis_db.py
(TestPostGISConnection.test_gis_tables_empty)
(TestPostGISConnection.test_gis_tables_non_empty)
(PostGISStaticTests.setUp): Use the server's new methods to get
the connection parameters.
Revision
1608 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Tue Aug 19 12:51:20 2003 UTC
(21 years, 6 months ago)
by
bh
Original Path:
trunk/thuban/test/test_viewport.py
File length: 16548 byte(s)
Diff to
previous 1464
(ViewPortTest): We don't use the
facilities of FileTestMixin so don't derive from it.
(TestViewportWithPostGIS): New class with tests for using a
viewport on a map with postgis layers.
Revision
1464 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 18 18:20:40 2003 UTC
(21 years, 7 months ago)
by
bh
Original Path:
trunk/thuban/test/test_viewport.py
File length: 13932 byte(s)
Diff to
previous 1462
* Thuban/UI/messages.py (MAP_REPLACED): New message.
* Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
after the new map has been assigned
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
Delegate MAP_REPLACED to the canvas too
(MainWindow.prepare_new_session): Removed. Thanks to the new
MAP_REPLACED message it's no longer needed
(MainWindow.OpenSession, MainWindow.NewSession):
prepare_new_session has been removed.
* Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
MAP_REPLACED so that we can close the dialog if a new map is set.
(Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
(Classifier.map_replaced): Handle MAP_REPLACED by closing the
dialog
* test/test_viewport.py (SimpleViewPortTest)
(SimpleViewPortTest.test_default_size): Add doc-strings
(ViewPortTest.setUp): Bind map to self.map so we can use it in
tests. Subscribe to MAP_REPLACED messages too.
(ViewPortTest.tearDown): No need to explicitly unsubscribe
(ViewPortTest.test_set_map): New test for the SetMap method.
Revision
1462 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 18 15:33:35 2003 UTC
(21 years, 7 months ago)
by
bh
Original Path:
trunk/thuban/test/test_viewport.py
File length: 13288 byte(s)
Diff to
previous 1440
(SimpleViewPortTest.test_default_size):
Move this test from ViewPortTest.setUp to this new separate test
case. setUp is not the place for the actual tests.
(ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
more of the test from setUp to the new test test_inital_settings.
(ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
(ViewPortTest.test_proj_conv): Split test_proj_conv into
test_win_to_proj and test_proj_to_win and make the tests easier to
understand
(ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
(ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
(ViewPortTest.test_unprojected_rect_around_point)
(ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
Reformat to increase readability.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.