/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2436 by bernhard, Wed Dec 8 15:43:10 2004 UTC revision 2482 by bernhard, Sat Dec 18 02:36:59 2004 UTC
# Line 1  Line 1 
1    2004-12-18  Bernhard Reiter <[email protected]>
2    
3            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
4    
5            * Extensions/svgexport/test/test_svgmapwriter.py:
6            Added new tests: test_export_polygon_with_hole()
7            and test_polygon_with_hole().
8    
9            * Extensions/svgexport/svgmapwriter.py
10            (draw_polygon_shape()): Uses DrawPath correctly now.
11    
12            * Doc/manual/thuban-manual.xml: Added documentation for stable
13            extention svgexport.    
14            * Doc/manual/thuban-manual-de.xml: Copied English section about
15            svexport over.
16    
17            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
18    
19            * Extensions/svgexport/svgsaver.py,maplegend.py:
20            Moved from experimental to stable extension menu.
21    
22            * Extensions/svgexport/TODO: updated.
23    
24    
25    2004-12-18  Bernhard Reiter <[email protected]>
26    
27            Added Extensions/svgexport/TODO
28    
29    2004-12-18  Bernhard Reiter <[email protected]>
30    
31            Refactored in svgexport:
32            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
33    
34            * Extensions/svgexport/svgmapwriter.py
35            Added verbosity level 3 to print out polygon points.
36            (class Point): added __repr__
37            (class Brush, __str__()): Added space after ,.
38            (DrawPolygon): Renamed to DrawPath()
39            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
40            (DrawLines): Using DrawPath now.
41    
42            * Extensions/svgexport/test/test_svgmapwriter.py:
43            Replaced DrawPolygon() calls with DrawPath() and put the first argument
44            inside another list. Adapted test data with a newline before "M".
45    
46    2004-12-18  Bernhard Reiter <[email protected]>
47            
48            Refactored svgexport tests: 9 double tests runs eliminated;
49            code size reduced by 8 lines.
50    
51            * Extensions/svgexport/test/test_svgmapwriter.py:
52            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
53            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
54            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
55            this fixed the double running of the nine tests of TestVirtualDC.
56            (class TestVirtualDC): Using self.dc and self.file from setUp().
57    
58    2004-12-17  Bernhard Herzog  <[email protected]>
59    
60            Two windows specific fixes ported from thuban-1�0-branch:
61    
62            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
63            instead of getlocale because getlocale doesn't return a usable
64            encoding name on a german windows 2000
65    
66            * setup.py: windows build: Removed the absolute path names and
67            made all prfixes relative to the directory containing setup.py.
68            Makes it a little easier to adapt to a different system.
69    
70    2004-12-16  Bernhard Herzog  <[email protected]>
71    
72            Add support for PostGIS tables with LINESTRING geometries.
73            Fixes RT#2299
74    
75            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
76    
77            * test/postgissupport.py
78            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
79            table to "roads-multi" because it now uses MULTILINESTRING
80            geometries and introduce a new "roads" table that uses LINESTRING
81            (coords_to_multilinestring): Make the doc string more precise
82            (coords_to_linestring): New.  Create a LINESTRING WKT
83            representatin
84            (wkt_converter): Add coords_to_linestring
85            (upload_shapefile): Rephrase the doc-string a bit.
86    
87            * test/test_postgis_db.py (TestPostGISShapestoreArc)
88            (LineStringTests)
89            (TestPostGISShapestoreLineString)
90            (TestPostGISShapestoreMultiLineString): Split
91            TestPostGISShapestoreArc into a base class LineStringTests and two
92            derived classes TestPostGISShapestoreLineString for LINESTRING
93            geometries and TestPostGISShapestoreMultiLineString for
94            MULTILINESTRING geometries.  Most test methods are in the base
95            class with the exception of tests that explicitly check the raw
96            format.
97    
98    2004-12-16  Bernhard Herzog  <[email protected]>
99    
100            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
101    
102            * test/postgissupport.py (find_postgis_sql): Different postgis
103            versions put the postgis.sql file into slightly different places
104            so we have to look in both.  The updated doc string describes this
105            is more detail.
106    
107            * test/test_postgis_db.py
108            (TestPostGISSpecialCases.test_column_name_quoting): The return
109            value of UniqueValues is unsorted, so it has to be sorted for
110            comparison.
111    
112    2004-12-16  Bernhard Herzog  <[email protected]>
113    
114            Fix for RT#2237
115    
116            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
117            panel to be shown is the UnknownProjPanel disable the OK and Try
118            buttons.  Otherwise enable them.
119            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
120            the parameters.  In that case __GetProjection also returns None
121            now.
122    
123    2004-12-15  Bernhard Herzog  <[email protected]>
124    
125            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
126            minimum number of classes to 2.  The calculate_quantiles needs at
127            least two and raises an exception otherwise.  
128            Fixes RT#2549
129    
130    2004-12-15  Bernhard Herzog  <[email protected]>
131    
132            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
133            so that it returns a result for select statements.
134            (PostgreSQLServer.server_version): New.  Return the version of the
135            server software.
136            (PostgreSQLServer.require_authentication): The format of
137            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
138            server version and generate the file in the correct format
139    
140    2004-12-15  Bernhard Herzog  <[email protected]>
141    
142            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
143            in the doc string and rephrase it a little.
144    
145    2004-12-15  Frank Koormann <[email protected]>
146    
147            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
148            session has been loaded successfully. The check is called by the relevant
149            tests after executing load_session().
150    
151    2004-12-13  Bernhard Herzog  <[email protected]>
152    
153            Make sure the region used to determine which shapes are visible
154            actually matches the region on the printed page.  If this isn't
155            done properly some shapes might not be printed.  
156            Fixes RT #2692
157    
158            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
159            renderer has to be at the same position as the mapregion
160    
161            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
162            has to be moved by (self.shiftx, self.shifty) too.
163    
164    2004-12-13  Bernhard Herzog  <[email protected]>
165    
166            * libraries/pyprojection/Projection.i: Work around a bug in the
167            generated python code which leads to exception in the __del__
168            method when the constructor fails.  See the comments in the code
169            for more details.
170    
171            * libraries/pyprojection/Projection.py: Updated from Projection.i
172            with SWIG.
173    
174    2004-12-13  Bernhard Herzog  <[email protected]>
175    
176            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
177            (TestAltPath.test_02_path_error_fix_from_list)
178            (TestAltPath.test_05_path_error_fix_from_list_changed)
179            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
180            is destroyed in tearDown, so there's no need to do it in a test
181            case.
182    
183            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
184            debug print
185    
186    2004-12-13  Bernhard Herzog  <[email protected]>
187    
188            * Extensions/svgexport/test/test_svgmapwriter.py
189            (TestDrawSplines.setUp): Do not use super with the unittest
190            classes because in Python 2.2 they're still old-style classes.
191    
192    2004-12-13  Frank Koormann <[email protected]>
193    
194        Alternative Path feature: When loading a (moved) session where
195            shapefiles cannot be found, ask the user. Use the specified path
196            if further shapefiles are missing. However, ask the usr for confirmation
197            in such cases.
198    
199            * test/test_load.py (TestAltPath): New, tests for alternative path feature
200            in load_session()
201            (Shapefile_CallBack): Helper, implements controllable callback.
202    
203            * Thuban/UI/application.py (ThubanApplication.OnInit):
204            Added "alt_path" to self.path
205            (ThubanApplication.OpenSession): Added shapefile_callback as second
206            callback similar to db_connection_callback.
207            (ThubanApplication.run_alt_path_dialog): New, implementaion of
208            shapefile_callback. In addition to raising the dialog the control of
209            self.path('alt_path') is implemented here.
210    
211            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
212            (SessionLoader.open_shapefile): Open shapefile, eventually with
213            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
214            formerly used in start_fileshapesource()/start_layer().
215            (SessionLoader.start_fileshapesource): Call open_shapefile().
216            (SessionLoader.start_layer): Call open_shapefile().
217            (load_session): Added shapefile_callback.
218    
219            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
220            feature (search / check).
221            
222            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
223    
224    2004-12-11  Bernhard Reiter <[email protected]>
225    
226             svgexport 0.9.2: Point size supports for maps.
227    
228            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
229            (def draw_point_shape): new parameter size defaults to 2 as before.
230            (draw_shape_layer_incrementally): Moved draw_func log line higher.
231            Added draw_func call with size when dealing with a point layer.
232    
233            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
234            
235    2004-12-11  Bernhard Reiter <[email protected]>
236    
237            Made sure that newlines are inserted in the svg path d attributes
238            to raise the chance that the line length will be below 255 characters,
239            as recommended by REC SVG 1.1 in section 8.3.1.
240    
241            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
242            Adding \n before L's and changed whitespace handling.
243    
244            * Extensions/svgexport/test/test_svgmapwriter.py:
245            Adapted tests to new whitespace handling of DrawPolygon.
246    
247    2004-12-11  Bernhard Reiter <[email protected]>
248    
249            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
250    
251            * Extensions/svgexport/test/test_svgmapwriter.py:
252            Removed test_drawbezier in favour of new test_drawspline3 and
253            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
254            All only to test DrawSpline.
255    
256            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
257            New implementation now really using the strange algorithm of
258            xfig 3.1's approximated splines and its conversion to postscript
259            with one twist: SVG can do quadratic beziers, so skipped translation
260            to cubic beziers.
261            (TestWithDC): Typo in comment fixed.
262    
263    2004-12-09  Martin Schulze  <[email protected]>
264    
265            * Thuban/Model/classgen.py: Added missing character encoding
266    
267            * Extensions/wms/properties.py (OpenWMSProperties): removed
268    
269            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
270            support for get_srs_discrepancies() since there are no
271            discrepancies anymore (was a thinko)
272    
273            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
274            format priority now that more formats are supported globally by
275            the render engine.
276    
277    2004-12-08  Silke Reimer <[email protected]>
278            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
279            because it is not available in all versions of ogr
280    
281  2004-12-08  Bernhard Reiter <[email protected]>  2004-12-08  Bernhard Reiter <[email protected]>
282          * Extensions/ogr/__init__.py: Added empty __init__.py to heal          * Extensions/ogr/__init__.py: Added empty __init__.py to heal
283          global tests until a real one is commited.          global tests until a real one is commited.

Legend:
Removed from v.2436  
changed lines
  Added in v.2482

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26