Log of /branches/WIP-pyshapelib-bramz/test/test_baserenderer.py
Parent Directory
|
Revision Log
Revision
2712 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Sun Oct 15 23:27:05 2006 UTC
(18 years, 4 months ago)
by
bernhard
Original Path:
trunk/thuban/test/test_baserenderer.py
File length: 24152 byte(s)
Diff to
previous 2619
,
to
selected 1867
* Thuban/UI/renderer.py: Added module variable verbose and
added verbose output before doing a raster projection.
Minor: Added (c) year 2006.
* test/test_baserenderer.py: Added new function
test_projected_raster_decimalcommalocale()
Added new author Bernhard Reiter and new copyright year 2006.
* libraries/thuban/gdalwarp.cpp(ProjectRasterFile): Adding
switching to LC_NUMERIC "C" and back before calling GDAL functions -
only #if python >=2.4 .
Revision
2571 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Feb 18 14:54:17 2005 UTC
(20 years ago)
by
jonathan
Original Path:
trunk/thuban/test/test_baserenderer.py
File length: 22885 byte(s)
Diff to
previous 2562
,
to
selected 1867
Refactored baserenderer.py and renderer.py to remove baserenderer.py's
dependencies on wxPython. Added a new method projected_raster_layer()
that returns a raster layer image in projected space. This must be
implemented in classes derived from BaseRenderer. This also eliminates
the dependency on gdal in baserenderer.py.
Revision
1928 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Mon Nov 10 16:57:43 2003 UTC
(21 years, 3 months ago)
by
bh
Original Path:
trunk/thuban/test/test_baserenderer.py
File length: 18669 byte(s)
Diff to
previous 1867
(SimpleRenderer.draw_raster_data): Add
the format parameter and record it
(TestBaseRenderer.test_raster_no_projection): check the format
paramter of the draw_raster_data method
(TestBaseRenderer.test_renderer_extension): New. Test the renderer
extension facility
Revision
1867 -
(
view)
(
annotate)
-
[selected]
Modified
Mon Oct 27 13:02:13 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/test/test_baserenderer.py
File length: 17759 byte(s)
Diff to
previous 1591
(TestBaseRenderer.test_polygon_no_projection)
(TestBaseRenderer.test_raster_no_projection)
(TestBaseRenderer.test_point_map_projection)
(TestBaseRenderer.test_point_layer_and_map_projection)
(TestBaseRenderer.test_point_layer_projection)
(TestBaseRenderer.test_point_with_classification): Adapt to new
renderer interface
Revision
1591 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 15 14:00:53 2003 UTC
(21 years, 6 months ago)
by
bh
Original Path:
trunk/thuban/test/test_baserenderer.py
File length: 17741 byte(s)
Diff to
previous 1585
,
to
selected 1867
Make the renderers deal correctly with raw vs. python level
representation of shape geometries
* Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
Return a flag useraw in addition to the callable and the parameter
to indicate whether the callable can deal with the raw shape data
or uses the higher level python lists of coordinates. The callable
now should accept either the raw data or the return value of the
shape's Points() method.
(BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
change
(BaseRenderer.projected_points): Instead of the shape id use the
points list as parameter.
(BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
(BaseRenderer.draw_point_shape): Adapt to projected_points()
change and accept the points list as parameter instead of the
shape id.
* Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
the useraw flag as required by the BaseRenderer
(ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
changes.
* test/test_baserenderer.py
(TestBaseRenderer.test_point_with_classification): New test for
rendering a map with classifications.
Revision
1585 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 15 10:26:40 2003 UTC
(21 years, 6 months ago)
by
bh
Original Path:
trunk/thuban/test/test_baserenderer.py
File length: 16230 byte(s)
Diff to
previous 1557
,
to
selected 1867
Move some of the mock objects in test_baserenderer into their own
module so they can easily be used from other tests
* test/mockgeo.py: New test helper module with some mock objects
for geometry related things like shapes, shapestores and
projections.
* test/test_mockgeo.py: New. Tests for the new helper module
* test/test_baserenderer.py: Some of the mock-objects are in mockgeo now.
Revision
1555 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 7 15:41:05 2003 UTC
(21 years, 7 months ago)
by
bh
Original Path:
trunk/thuban/test/test_baserenderer.py
File length: 16591 byte(s)
Diff to
previous 1552
,
to
selected 1867
* test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
(ThubanTestProgram): New classes that extend the respective
classes from unittest. These new version support skipping tests
under certain expected conditions. In the Thuban test suite we
uses this for tests that require the optional gdal support.
(run_tests): Use ThubanTestProgram instead of the unittest.main()
* test/runtests.py (main): Use the new ThubanTestRunner instead of
the normal one from unittest
* test/test_layer.py (TestLayer.test_raster_layer): If this test
is not run because gdal support isn't available report this to the
runner.
* test/test_baserenderer.py
(TestBaseRenderer.test_raster_no_projection): Do not run this test
if gdal support isn't available and report this to the runner.
Revision
1552 -
(
view)
(
annotate)
-
[select for diffs]
Added
Wed Aug 6 17:21:32 2003 UTC
(21 years, 7 months ago)
by
bh
Original Path:
trunk/thuban/test/test_baserenderer.py
File length: 16450 byte(s)
Diff
to
selected 1867
* Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
this class is now in BaseRenderer. This class is now practically
only a specialization of BaseRenderer for rendering to an actual
wx DC.
(ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
to get the shapetype specific rendering functions.
* test/test_baserenderer.py: New. Test cases for BaseRenderer
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable
error_on_redraw to guard agains endless loops and stack overflows
when there's a bug in the rendering code that raises exceptions.
(MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
rendering into a separate method _do_redraw so that error handling
is a bit easier. When an exception occurs, set error_on_redraw to
true. When it's true on entry to OnIdle do nothing and return
immediately.
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.