/[thuban]/branches/WIP-pyshapelib-bramz/Extensions/svgexport
ViewVC logotype

Log of /branches/WIP-pyshapelib-bramz/Extensions/svgexport

View Directory Listing Directory Listing


Sticky Revision:
(Current path doesn't exist after revision 2835)

Revision 2734 - Directory Listing
Modified Thu Mar 1 12:42:59 2007 UTC (18 years ago) by bramz
made a copy

Revision 2732 - Directory Listing
Modified Mon Feb 26 23:02:25 2007 UTC (18 years ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
* Extensions/svgexport/TODO: Added findings about how to write raster
in SVG.

* Extensions/svgexport/svgmapwriter.py: untabified two lines. 
Fixed a typo.


Revision 2726 - Directory Listing
Modified Tue Feb 20 10:37:57 2007 UTC (18 years ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
Extensions/svgexport/: Get ready for release. Bump version
number to 1.0.1. Adjusted numbers in TODO.


Revision 2721 - Directory Listing
Modified Sat Jan 13 15:11:42 2007 UTC (18 years, 1 month ago) by dpinte
Original Path: trunk/thuban/Extensions/svgexport
2007-01-13 Didrik Pinte <dpinte@itae.be>

    bboxdump, gns2shp, importAPR, mouseposition, ogr, profiling, svgexport
    extensions migrated to wxPython 2.6

    * Extensions/bboxdump/bboxdump.py: 
    updated wx statements

    * Extensions/gns2shp/gns2shp.py: 
    updated wx statements

    * Extensions/importAPR/importAPR.py:
    updated wx statements

    * Extensions/mouseposition/mouseposition.py:
    updated wx statements

    * Extensions/ogr/
    ogrdialog.py, ogrstart.py:
    updated wx statements

    * Extensions/profiling/profiling.py:
    updated wx statements

    * Extensions/svgexport/
    maplegend.py,svgsaver.py:
    updated wx statements



Revision 2679 - Directory Listing
Modified Mon Apr 24 18:26:58 2006 UTC (18 years, 10 months ago) by dpinte
Original Path: trunk/thuban/Extensions/svgexport
2006-04-24 Didrik Pinte <dpinte@itae.be>
  * Extensions/svgexport/__init__.py: The extension now works on win32
       architecture. Bug #87 corrected.



Revision 2674 - Directory Listing
Modified Wed Oct 19 08:56:47 2005 UTC (19 years, 4 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
* Thuban/UI/about.py: remove unused import of getdefaultlocale.
Added display of internal encoding to the about dialog text.

* Extensions/svgexport/__init__.py: changed version to "1.0.0+cvs".

Started to update the NEWS file.


Revision 2671 - Directory Listing
Modified Mon Oct 17 20:10:18 2005 UTC (19 years, 4 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
svgexport 1.0.0cvs: Fixed ARC layer writing: No filling is done.
You could actually get polylines with filling in between,
when the classification for the lines had a fill color.
E.g. this happens when you generate a classification from a ramp.


Revision 2513 - Directory Listing
Modified Mon Dec 27 17:00:15 2004 UTC (20 years, 2 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
	svgexport 1.0.0cvs: Fixed label export.

	* Extensions/svgexport/test/test_svgmapwriter.py:
	class TestSVGRenderer(): New class; new test test_label_font().

	* Extensions/svgexport/svgmapwriter.py
	(SVGRenderer.label_font()): initialised Font size with self.factor now,
	makes test_label_font happy.

	* Extensions/svgexport/TODO: crossed out fixed label export item.
	Added item for options.

	* Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.


Revision 2490 - Directory Listing
Modified Mon Dec 20 10:08:58 2004 UTC (20 years, 2 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
	* Extensions/svgexport/TODO: updated to add support for
	raster layers and labels for 1.0.1.

	* Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
	Issue a warning now.


Revision 2489 - Directory Listing
Modified Sun Dec 19 11:34:25 2004 UTC (20 years, 2 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
	* Extensions/svgexport/TODO: Added idea to support triggering
	the application down the pipe.


Revision 2488 - Directory Listing
Modified Sun Dec 19 10:14:38 2004 UTC (20 years, 2 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
	svgexport: Improved code quality, mainly by better naming.

	* Extensions/svgexport/svgmapwriter.py:
	DrawPath() renamed to DrawPolygonPath(),
	added documentation, improved comments and variable names.

	* Extensions/svgexport/svgmapwriter.py,
	  Extensions/svgexport/test/test_svgmapwriter.py:
	All using DrawPolygonPath() now, the default parameter closed=True
	omitted.

	* Extensions/svgexport/test/test_svgmapwriter.py:
	renamed test_polygon_opened() to test_polyline()
	renamed test_transparent_polygon() to test_transparent_polyline()


Revision 2482 - Directory Listing
Modified Sat Dec 18 02:36:59 2004 UTC (20 years, 2 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
	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.


Revision 2481 - Directory Listing
Modified Sat Dec 18 00:32:48 2004 UTC (20 years, 2 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
Added Extensions/svgexport/TODO


Revision 2480 - Directory Listing
Modified Sat Dec 18 00:29:04 2004 UTC (20 years, 2 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
	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".


Revision 2479 - Directory Listing
Modified Fri Dec 17 23:06:03 2004 UTC (20 years, 2 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
	Refactored svgexport tests: 9 double tests runs eliminated;
	code size reduced by 8 lines.

	* Extensions/svgexport/test/test_svgmapwriter.py:
	(class TestWithDC): Renamed to BaseTestWithDC, moved to top.
	(class BaseWithDCtools): New, subclass from BaseTestWithDC.
	(class TestDrawSplines): now subclass from BaseTestWithDCtools,
	this fixed the double running of the nine tests of TestVirtualDC.
	(class TestVirtualDC): Using self.dc and self.file from setUp().


Revision 2450 - Directory Listing
Modified Mon Dec 13 14:59:24 2004 UTC (20 years, 2 months ago) by bh
Original Path: trunk/thuban/Extensions/svgexport
(TestDrawSplines.setUp): Do not use super with the unittest
classes because in Python 2.2 they're still old-style classes.


Revision 2445 - Directory Listing
Modified Sat Dec 11 03:24:36 2004 UTC (20 years, 2 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
	 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.


Revision 2444 - Directory Listing
Modified Sat Dec 11 02:25:36 2004 UTC (20 years, 2 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
	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.


Revision 2443 - Directory Listing
Modified Sat Dec 11 02:03:47 2004 UTC (20 years, 2 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
	* 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.


Revision 2433 - Directory Listing
Modified Tue Dec 7 14:00:12 2004 UTC (20 years, 3 months ago) by jan
Original Path: trunk/thuban/Extensions/svgexport
Reverting part of a (non-)fix to renable that the tests are always
executed.


Revision 2432 - Directory Listing
Modified Tue Dec 7 11:19:38 2004 UTC (20 years, 3 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
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.


Revision 2425 - Directory Listing
Modified Sat Nov 27 20:22:38 2004 UTC (20 years, 3 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
	* Extensions/svgexport/test/test_svgmapwriter.py:
	Removed Jan from author list as he did not change enough significant
	lines yet.

	* Extensions/svgexport/__init__.py: Added Bernhard as author
	of the Extension.


Revision 2419 - Directory Listing
Modified Fri Nov 26 11:44:32 2004 UTC (20 years, 3 months ago) by bh
Original Path: trunk/thuban/Extensions/svgexport
(Testobjectexport.test_transparent_polygon): Commented out some
debug prints


Revision 2417 - Directory Listing
Modified Wed Nov 24 22:52:06 2004 UTC (20 years, 3 months ago) by jan
Original Path: trunk/thuban/Extensions/svgexport
Moved the menu entry from Extensions
to Experimental menu since this module has yet not reached a stable
status (ie. 1.0).


Revision 2416 - Directory Listing
Modified Wed Nov 24 22:35:57 2004 UTC (20 years, 3 months ago) by jan
Original Path: trunk/thuban/Extensions/svgexport
Fix to have the extensions' test module also be executed from the
global test routine.
This is done by looking for the absense of the DISPLAY variable.


Revision 2415 - Directory Listing
Modified Wed Nov 24 22:21:28 2004 UTC (20 years, 3 months ago) by jan
Original Path: trunk/thuban/Extensions/svgexport
Fixes to have the test run correctly even if the extension is a package.
Also removed the "import Thuban" which makes no sense.


Revision 2414 - Directory Listing
Modified Mon Nov 22 11:17:47 2004 UTC (20 years, 3 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
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()


Revision 2399 - Directory Listing
Modified Sat Nov 20 12:52:50 2004 UTC (20 years, 3 months ago) by jan
Original Path: trunk/thuban/Extensions/svgexport
Added registry entry and the importing
of the svgsaver module.


Revision 2398 - Directory Listing
Modified Sat Nov 20 12:52:25 2004 UTC (20 years, 3 months ago) by jan
Original Path: trunk/thuban/Extensions/svgexport
Moved the menu entry from Extensions
to Experimental menu since this module has yet not reached a stable
status (ie. 1.0).


Revision 2388 - Directory Listing
Modified Mon Nov 15 16:27:41 2004 UTC (20 years, 3 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
* Extensions/svgexport/: Minor improvements to doc strings.


Revision 2352 - Directory Listing
Modified Mon Sep 27 09:56:13 2004 UTC (20 years, 5 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
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.


Revision 2350 - Directory Listing
Modified Sat Sep 25 18:29:24 2004 UTC (20 years, 5 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
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.


Revision 2344 - Directory Listing
Modified Tue Sep 21 21:30:36 2004 UTC (20 years, 5 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
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.
-------------------------------------------------------------------


Revision 2256 - Directory Listing
Modified Mon Jun 28 10:55:10 2004 UTC (20 years, 8 months ago) by bernhard
Original Path: trunk/thuban/Extensions/svgexport
* Extensions/svgexport/test/test_svgmapwriter.py:
	Removed class VFile and used standard StringIO instead.


Revision 2208 - Directory Listing
Modified Sun May 16 09:33:04 2004 UTC (20 years, 9 months ago) by jan
Original Path: trunk/thuban/Extensions/svgexport
Use FindOrInsertMenu() instead of finding menu on its own.


Revision 2084 - Directory Listing
Modified Fri Feb 20 15:49:36 2004 UTC (21 years ago) by bh
Original Path: trunk/thuban/Extensions/svgexport
(TestVirtualDC.test_clippath): Remove a debug print


Revision 2082 - Directory Listing
Modified Fri Feb 20 14:33:22 2004 UTC (21 years ago) by bh
Original Path: trunk/thuban/Extensions/svgexport
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.


Revision 2081 - Directory Listing
Modified Fri Feb 20 14:33:11 2004 UTC (21 years ago) by bh
Original Path: trunk/thuban/Extensions/svgexport
New.  Turn
Extensions/svgexport into a package.


Revision 2078 - Directory Listing
Modified Fri Feb 20 14:29:02 2004 UTC (21 years ago) by bh
Original Path: trunk/thuban/Extensions/svgexport
New. Initial test
suite for svgexport


Revision 2074 - Directory Listing
Added Thu Feb 19 13:38:27 2004 UTC (21 years ago) by bh
Original Path: trunk/thuban/Extensions/svgexport
Added again.  This time in the
correct place.


[email protected]
ViewVC Help
Powered by ViewVC 1.1.26