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

Log of /branches/WIP-pyshapelib-bramz/test/test_baserenderer.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: 24152 byte(s)
Diff to previous 2712
made a copy

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
* 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 2619 - (view) (annotate) - [select for diffs]
Modified Fri May 6 14:19:03 2005 UTC (19 years, 10 months ago) by jonathan
Original Path: trunk/thuban/test/test_baserenderer.py
File length: 22893 byte(s)
Diff to previous 2587
(SimpleRenderer.draw_raster_data): Fixed signature to match that in
BaseRenderer.


Revision 2587 - (view) (annotate) - [select for diffs]
Modified Wed Mar 23 15:30:27 2005 UTC (19 years, 11 months ago) by jonathan
Original Path: trunk/thuban/test/test_baserenderer.py
File length: 22887 byte(s)
Diff to previous 2573
Add support for adjusting the opacity of a raster layer.


Revision 2573 - (view) (annotate) - [select for diffs]
Modified Fri Feb 18 19:28:45 2005 UTC (20 years ago) by bh
Original Path: trunk/thuban/test/test_baserenderer.py
File length: 22880 byte(s)
Diff to previous 2571
(TestBaseRenderer.setUp): Fix doc-string


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
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 2562 - (view) (annotate) - [select for diffs]
Modified Wed Feb 16 21:14:47 2005 UTC (20 years ago) by jonathan
Original Path: trunk/thuban/test/test_baserenderer.py
File length: 20230 byte(s)
Diff to previous 2552
Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
so that that wxproj doesn't crash. Added GUI support for selecting
alpha channel (opacity can't be selected yet).


Revision 2552 - (view) (annotate) - [select for diffs]
Modified Fri Jan 28 15:54:00 2005 UTC (20 years, 1 month ago) by jonathan
Original Path: trunk/thuban/test/test_baserenderer.py
File length: 18393 byte(s)
Diff to previous 2551
Make layer's use_mask flag default to true. Support a bit array describing
the mask to use. Improve error handling in ProjectRasterFile (also addresses
RT #2947).


Revision 2551 - (view) (annotate) - [select for diffs]
Modified Thu Jan 27 14:19:41 2005 UTC (20 years, 1 month ago) by jonathan
Original Path: trunk/thuban/test/test_baserenderer.py
File length: 18232 byte(s)
Diff to previous 2537
Add a new dialog box for raster layers. The dialog box allows
the user to toggle a mask that is generated by ProjectRasterFile
and is used to only draw the real parts of the projected image.


Revision 2537 - (view) (annotate) - [select for diffs]
Modified Fri Jan 21 14:01:25 2005 UTC (20 years, 1 month ago) by jonathan
Original Path: trunk/thuban/test/test_baserenderer.py
File length: 18237 byte(s)
Diff to previous 1928
Improved rendering raster layers by changing the return format of
the ProjectRasterFile function.


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) - [select for diffs]
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
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
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 1557 - (view) (annotate) - [select for diffs]
Modified Thu Aug 7 17:29:46 2003 UTC (21 years, 7 months ago) by bh
Original Path: trunk/thuban/test/test_baserenderer.py
File length: 16716 byte(s)
Diff to previous 1555
(SimpleShape): Shape class for the
tests.
(SimpleShapeStore.Shape): Use SimpleShape instead of
Thuban.Model.data.Shape to make the tests independed of the coming
changes.


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
* 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)
* 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.

  Diffs between and
  Type of Diff should be a

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26