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

Legend:
Removed from v.2422  
changed lines
  Added in v.2488

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26