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

Legend:
Removed from v.2412  
changed lines
  Added in v.2487

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26