/[thuban]/branches/WIP-pyshapelib-bramz/test/test_map.py
ViewVC logotype

Log of /branches/WIP-pyshapelib-bramz/test/test_map.py

Parent Directory Parent Directory | Revision Log Revision Log


Sticky Revision:
(Current path doesn't exist after revision 2835)

Revision 2734 - (view) (annotate) - [select for diffs]
Modified Thu Mar 1 12:42:59 2007 UTC (18 years ago) by bramz
File length: 11723 byte(s)
Diff to previous 2575 , to selected 395
made a copy

Revision 2575 - (view) (annotate) - [select for diffs]
Modified Tue Feb 22 11:09:32 2005 UTC (20 years ago) by jan
Original Path: trunk/thuban/test/test_map.py
File length: 11723 byte(s)
Diff to previous 1680 , to selected 395
(TestMapWithContents.test_tree_info): Added label layer for comparison.


Revision 1680 - (view) (annotate) - [select for diffs]
Modified Thu Aug 28 14:33:12 2003 UTC (21 years, 6 months ago) by bh
Original Path: trunk/thuban/test/test_map.py
File length: 11672 byte(s)
Diff to previous 1400 , to selected 395
(TestMapBase.tearDown): Destroy self.session
too if it exists
(TestMapAddLayer.test_add_layer): Bind the session to self.session
so that it gets destroyed properly


Revision 1400 - (view) (annotate) - [select for diffs]
Modified Thu Jul 10 14:56:15 2003 UTC (21 years, 7 months ago) by jonathan
Original Path: trunk/thuban/test/test_map.py
File length: 11513 byte(s)
Diff to previous 1107 , to selected 395
(TestMapWithContents.test_set_projection):
        MAP_PROJECTION_CHANGED events send the old projection.


Revision 1107 - (view) (annotate) - [select for diffs]
Modified Fri May 30 06:31:02 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/test/test_map.py
File length: 11507 byte(s)
Diff to previous 723 , to selected 395
(TestMapWithContents.test_raise_layer_top,
        TestMapWithContents.test_lower_layer_bottom):
        Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
        Fixes RTBug #1907.


Revision 723 - (view) (annotate) - [select for diffs]
Modified Thu Apr 24 15:31:53 2003 UTC (21 years, 10 months ago) by bh
Original Path: trunk/thuban/test/test_map.py
File length: 10070 byte(s)
Diff to previous 585 , to selected 395
First step towards table management. Introduce a simple data
abstraction so that we replace the data a layer uses more easily
in the next step.

* Thuban/Model/data.py: New file with a simple data abstraction
that bundles shapefile and dbffile into one object.

* Thuban/Model/session.py (Session.OpenShapefile): New method to
open shapefiles and return a shape store object

* Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
object instead of a shapefile filename. This introduces a new
instance variable store holding the datastore. For intermediate
backwards compatibility keep the old instance variables.
(open_shapefile): Removed. No longer needed with the shape store.
(Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
get the shape store used by a layer.
(Layer.Destroy): No need to explicitly destroy the shapefile or
table anymore.

* Thuban/UI/mainwindow.py (MainWindow.AddLayer)
(MainWindow.AddLayer): Use the session's OpenShapefile method to
open shapefiles

* Thuban/Model/load.py (ProcessSession.start_layer): Use the
session's OpenShapefile method to open shapefiles

* test/test_classification.py
(TestClassification.test_classification): Use the session's
OpenShapefile method to open shapefiles and build the filename in
a more platform independed way

* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
Implement to have a session to use in the tests
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
(TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
session's OpenShapefile method to open shapefiles
(TestLayerLegend.setUp): Instantiate a session so that we can use
it to open shapefiles.
(TestLayerLegend.tearDown): Make sure that all references to
layers and session are removed otherwise we may get a resource
leak

* test/test_map.py (TestMapAddLayer.test_add_layer)
(TestMapWithContents.setUp): Instantiate a session so that we can
use it to open shapefiles.
(TestMapWithContents.tearDown): Make sure that all references to
layers, maps and sessions are removed otherwise we may get a
resource leak
("__main__"): use support.run_tests() so that more info about
uncollected garbage is printed

* test/test_save.py (SaveSessionTest.testSingleLayer): Use the
session's OpenShapefile method to open shapefiles
("__main__"): use support.run_tests() so that more info about
uncollected garbage is printed

* test/test_selection.py (TestSelection.tearDown): Make sure that
all references to the session and the selection are removed
otherwise we may get a resource leak
(TestSelection.get_layer): Instantiate a session so that we can
use it to open shapefiles.
("__main__"): use support.run_tests() so that more info about
uncollected garbage is printed

* test/test_session.py (TestSessionBase.tearDown)
(TestSessionWithContent.tearDown): Make sure that all references
to the session and layers are removed otherwise we may get a
resource leak
(TestSessionWithContent.setUp): Use the session's OpenShapefile
method to open shapefiles


Revision 585 - (view) (annotate) - [select for diffs]
Modified Tue Apr 1 10:41:05 2003 UTC (21 years, 11 months ago) by bh
Original Path: trunk/thuban/test/test_map.py
File length: 9614 byte(s)
Diff to previous 584 , to selected 395
Don't use from <module> import *


Revision 584 - (view) (annotate) - [select for diffs]
Modified Tue Apr 1 10:22:35 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/test/test_map.py
File length: 9517 byte(s)
Diff to previous 409 , to selected 395
Fix messages that are sent from maps and layers.


Revision 409 - (view) (annotate) - [select for diffs]
Modified Wed Feb 19 16:50:39 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/test/test_map.py
File length: 8971 byte(s)
Diff to previous 395
Updated the tests to use the new functions that are in the respective classes.


Revision 395 - (view) (annotate) - [selected]
Modified Mon Feb 10 15:28:02 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/test/test_map.py
File length: 8966 byte(s)
Diff to previous 343
fix tests to work with new code changes.


Revision 343 - (view) (annotate) - [select for diffs]
Modified Fri Oct 18 17:28:56 2002 UTC (22 years, 4 months ago) by bh
Original Path: trunk/thuban/test/test_map.py
File length: 9625 byte(s)
Diff to previous 337 , to selected 395
(TestMapWithContents.test_projected_bounding_box): Use an explicit
epsilon.


Revision 337 - (view) (annotate) - [select for diffs]
Modified Fri Sep 20 16:26:21 2002 UTC (22 years, 5 months ago) by bh
Original Path: trunk/thuban/test/test_map.py
File length: 9576 byte(s)
Diff to previous 332 , to selected 395
(TestMapWithContents.test_tree_info): Create
the string with the bounding box on the fly because of platform
differences in the way %g is handled.


Revision 332 - (view) (annotate) - [select for diffs]
Added Fri Sep 20 15:45:59 2002 UTC (22 years, 5 months ago) by bh
Original Path: trunk/thuban/test/test_map.py
File length: 9327 byte(s)
Diff to selected 395
New. Test cases for Thuban.Model.map


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.

  Diffs between and
  Type of Diff should be a

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26