Parent Directory
|
Revision Log
Links to HEAD: | (view) (annotate) |
Sticky Revision: |
svgexport 1.0.0: Treats holes and islands nicely. Documentation added. * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests: test_export_polygon_with_hole() and test_polygon_with_hole(). * Extensions/svgexport/svgmapwriter.py (draw_polygon_shape()): Uses DrawPath correctly now. * Doc/manual/thuban-manual.xml: Added documentation for stable extention svgexport. * Doc/manual/thuban-manual-de.xml: Copied English section about svexport over. * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0. * Extensions/svgexport/svgsaver.py,maplegend.py: Moved from experimental to stable extension menu. * Extensions/svgexport/TODO: updated.
Refactored in svgexport: DrawPath replaces DrawPolygon; added newline in front of "M" in paths. * Extensions/svgexport/svgmapwriter.py Added verbosity level 3 to print out polygon points. (class Point): added __repr__ (class Brush, __str__()): Added space after ,. (DrawPolygon): Renamed to DrawPath() (DrawPath): Takes list of polygons as input now, adds \n before "M"s. (DrawLines): Using DrawPath now. * Extensions/svgexport/test/test_svgmapwriter.py: Replaced DrawPolygon() calls with DrawPath() and put the first argument inside another list. Adapted test data with a newline before "M".
svgexport 0.9.2: Point size supports for maps. * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT (def draw_point_shape): new parameter size defaults to 2 as before. (draw_shape_layer_incrementally): Moved draw_func log line higher. Added draw_func call with size when dealing with a point layer. * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
Made sure that newlines are inserted in the svg path d attributes to raise the chance that the line length will be below 255 characters, as recommended by REC SVG 1.1 in section 8.3.1. * Extensions/svgexport/svgmapwriter.py(DrawPolygon): Adding \n before L's and changed whitespace handling. * Extensions/svgexport/test/test_svgmapwriter.py: Adapted tests to new whitespace handling of DrawPolygon.
* Doc/technotes/coding_guidelines.txt: easy typo fixed. * Extensions/svgexport/test/test_svgmapwriter.py: Removed test_drawbezier in favour of new test_drawspline3 and test_drawspline4 within new class TestDrawSplines(TestVirtualDC). All only to test DrawSpline. * Extensions/svgexport/svgmapwriter.py(DrawSpline): New implementation now really using the strange algorithm of xfig 3.1's approximated splines and its conversion to postscript with one twist: SVG can do quadratic beziers, so skipped translation to cubic beziers. (TestWithDC): Typo in comment fixed.
svgexport 0.9.1, implemented DrawSpline: * Extensions/svgexport/test/test_svgmapwriter.py: Added test_drawbezier() to test DrawSpline(). * Extensions/svgexport/svgmapwriter.py(DrawSpline): Really implemented bezier drawing. * Extensions/svgexport/__init__.py: Bumped version of svgexport to 0.9.1 because now the legend examples lines styles will be drawing with beziers.
Fixing #2698 (transparent polygons are not exported to svg file) * Extensions/svgexport/svgmapwriter.py: Added verbose variable and some logging depending on it. (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop, because counting i is not necessary. (class Pen, class Brush): Added simple __str__ methods. (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are not exported to svg file) Note: holes still unhandled. * Extensions/svgexport/test/test_svgmapwriter.py: Made a baseclass TestWithDC for test needed a DC. Added tests for bug #2698 (transparent polygons are not exported to svg file): Testobjectexport.test_transparent_polygon()
* Extensions/svgexport/: Minor improvements to doc strings.
More fixes to svgexport to make used ids unique and conforming to XML's Name production. * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests test_xml_id_constraints(), test_make_ide_nosetbaseid() and test_make_id_nonintegersetid(). Switched SetID and SetBaseID. Added Bernhard R. as author. * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as concatenation char now (makes test_make_ide_nosetbaseid() valid). Also transform second id part with "%d" and catch the TypeError to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok). Corrected typo inBernhard's author line. (SetBaseID): Return the transformed base id. Transform characters which are not alnum() or in ".-_" to binascii.b2a_hex(). Added import binascii. If to be set string starts with "xml" or so, add "t". (draw_shape_layer_incrementally): use the returned value of SetBaseID for used_baseids checks.
Added Bernhard R. as Author. (SetBaseID, SetID, make_id): Improved docstring comments to explain the interaction of the three functions and the XML id contrains.
Improved the svgexport to only use unique ids. Will issues an error message dialoge when two layer names are the same. ShapeIDs are now added with a dash within the svg ids. * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New. * Extensions/svgexport/test/test_svgmapwriter.py: Added imports (TestSVGRenderer): New test class with test_make_in() and test_check_for_layer_name_clash() * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__() and draw_shape_layer_incrementally() to not use a baseid twice, satisfying test_check_for_layer_name_clash() (VirtualDC.make_id): Use a dash between baseit and id, satisfies test_make_in(). * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK and wxICON_HAND. (write_to_svg): Put dc and rendering in a try statement and on catching SVGmapWriterError notify the user and delete the target file. -------------------------------------------------------------------
Reorder the imports and doc-string a bit. The doc-string must come first, otherwise it's not a doc-string. The __future__ import must be the first thing after the doc-string. Use only double quotes in doc-strings. Single quotes trip up emacs syntax highlighting if the text contains apostrophes.
Added again. This time in the correct place.
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.
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |