Log of /branches/WIP-pyshapelib-bramz/Extensions
Directory Listing
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
* 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
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
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
2720 -
Directory Listing
Modified
Mon Jan 8 16:57:36 2007 UTC
(18 years, 1 month ago)
by
dpinte
Original Path:
trunk/thuban/Extensions
2007-01-08 Didrik Pinte <dpinte@itae.be>
export_shapefile extension migrated to wxPython 2.6
* Extensions/export_shapefile/export_shapefile.py:
updated wx statements, changed the FileDialog to wx.SAVE (was wx.OPEN)
Revision
2719 -
Directory Listing
Modified
Mon Jan 8 16:30:29 2007 UTC
(18 years, 1 month ago)
by
dpinte
Original Path:
trunk/thuban/Extensions
2007-01-08 Didrik Pinte <dpinte@itae.be>
umn_mapserver extension migrated to wxPython 2.6
* Extensions/umn_maserver/
mf_handle.py, mf_import.py, mf_export.py:
update wx imports to 2.6 policy
Revision
2713 -
Directory Listing
Modified
Thu Oct 26 16:37:42 2006 UTC
(18 years, 4 months ago)
by
bernhard
Original Path:
trunk/thuban/Extensions
Moved ogr Extension to Extension menu.
Adding encoding information and made sure Autor's names
with an umlaut are actually written with an umlaut.
Revision
2702 -
Directory Listing
Modified
Sun Sep 24 09:26:21 2006 UTC
(18 years, 5 months ago)
by
bernhard
Original Path:
trunk/thuban/Extensions
* Extensions/ogr/test/test_OGRShapestore.py: fixed skip_if_no_ogr()
and added it to TestOGRTable.setUp() so that all tests get skipped
if ogr cannot be imported. Added (c) year 2006.
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
* 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 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
2629 -
Directory Listing
Modified
Mon Jun 27 21:36:34 2005 UTC
(19 years, 8 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
(APR_BShSym): Extend by 'Stripple'.
APR_TClr.GetThubanColor): Fix bug in color interpretation.
Thanks to Frank Koormann who identified this problem.
Revision
2609 -
Directory Listing
Modified
Thu Apr 28 09:39:58 2005 UTC
(19 years, 10 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
(open_with_ogr): Added forgotten _ for i18n.
Adapted call OpenFileShapestore regarding new parameter.
(OpenFileShapestore): Use OGRFileShapeStore instead of
OGRShapeStore. Fix return value (None instead of null).
Add new parameter "mainwindow" to avoid accessing global
context.
Revision
2608 -
Directory Listing
Modified
Thu Apr 28 09:39:08 2005 UTC
(19 years, 10 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
(OGRFileShapeStore): New. This
class ist to be used for any file-based shape stores
accessed through OGR.
Revision
2583 -
Directory Listing
Modified
Thu Mar 10 22:51:03 2005 UTC
(19 years, 11 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
Added init method for Extension description.
(init): New. Contains the initialization of the module.
Revision
2577 -
Directory Listing
Modified
Fri Mar 4 15:07:59 2005 UTC
(20 years ago)
by
nhueffme
Original Path:
trunk/thuban/Extensions
Latest changes on OGR extension.
Added another menu item to open OGR datasource, handling of geometry collections
possible.
Revision
2559 -
Directory Listing
Modified
Tue Feb 8 09:52:56 2005 UTC
(20 years ago)
by
nhueffme
Original Path:
trunk/thuban/Extensions
Changed the GUI. OGR support can now be accessed via the Map menu.
Removed some print commands.
Revision
2549 -
Directory Listing
Modified
Wed Jan 26 09:17:01 2005 UTC
(20 years, 1 month ago)
by
nhueffme
Original Path:
trunk/thuban/Extensions
Ogr extension works now for shapefiles, GML files and DGN files. Files can be viewed and tables can be shown. For unknown shapetypes the identify mode does not work yet.
Revision
2523 -
Directory Listing
Modified
Tue Jan 18 10:19:02 2005 UTC
(20 years, 1 month ago)
by
frank
Original Path:
trunk/thuban/Extensions
New Extension: mouseposition
Tool to collect mouse click positions (map coordinates) in a dialog.
* Extensions/mouseposition/__init__.py: New, extension registration
* Extensions/mouseposition/mouseposition.py: New, implements the
dialog and adds a tool to Thuban mainwindow.
* Extensions/mouseposition/position.xpm: New, icon for tool.
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 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
* 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
* 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: 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
2486 -
Directory Listing
Modified
Sat Dec 18 22:57:03 2004 UTC
(20 years, 2 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
(gns2shp): Fixed doc-string, fixed some dimensions of fields according
to the GNS documentation which seems to change undocumented.
Now killing trailing \n and/or \r from MODIFY_DATE.
This fixes RT#2453.
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 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
2480 -
Directory Listing
Modified
Sat Dec 18 00:29:04 2004 UTC
(20 years, 2 months ago)
by
bernhard
Original Path:
trunk/thuban/Extensions
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
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
(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 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
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
* 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
2439 -
Directory Listing
Modified
Thu Dec 9 10:37:44 2004 UTC
(20 years, 2 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Dropped support for get_srs_discrepancies() since there are no
discrepancies anymore (was a thinko)
Revision
2438 -
Directory Listing
Modified
Thu Dec 9 10:34:03 2004 UTC
(20 years, 2 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Improved graphic format priority now that more formats are supported
globally by the render engine.
Revision
2437 -
Directory Listing
Modified
Wed Dec 8 17:37:30 2004 UTC
(20 years, 2 months ago)
by
silke
Original Path:
trunk/thuban/Extensions
Substituted ogr-method CloseRings because it is not available in all versions of ogr
Revision
2436 -
Directory Listing
Modified
Wed Dec 8 15:43:10 2004 UTC
(20 years, 2 months ago)
by
bernhard
Original Path:
trunk/thuban/Extensions
* Extensions/ogr/__init__.py: Added empty __init__.py to heal
global tests until a real one is commited.
Revision
2435 -
Directory Listing
Modified
Tue Dec 7 16:44:51 2004 UTC
(20 years, 3 months ago)
by
nhueffme
Original Path:
trunk/thuban/Extensions
Adding a new extension to read shapefiles with ogr. It is planned to add other
vector formats.
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 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
* 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
2417 -
Directory Listing
Modified
Wed Nov 24 22:52:06 2004 UTC
(20 years, 3 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
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
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
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
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
2406 -
Directory Listing
Modified
Sat Nov 20 21:27:21 2004 UTC
(20 years, 3 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
Added registry entry and the
importing of the actual umn mapserver management modules.
Included a test for the required Python MapScript.
Revision
2404 -
Directory Listing
Modified
Sat Nov 20 21:26:06 2004 UTC
(20 years, 3 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
Added registry entry and the importing
of the actual wms module. Included a test for the required PyOGCLib.
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
Moved the menu entry from Extensions
to Experimental menu since this module has yet not reached a stable
status (ie. 1.0).
Revision
2378 -
Directory Listing
Modified
Sun Oct 3 22:00:35 2004 UTC
(20 years, 5 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
(APR_BMkSym.GetThubanProp): Now that Thuban supports size, apply
this correctly.
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
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
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
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
2341 -
Directory Listing
Modified
Fri Sep 3 17:01:45 2004 UTC
(20 years, 6 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Fixed a bug with deleting the layers from mapfile.
Now all layers will delete backwards from the.
CVS ----------------------------------------------------------------------
Revision
2340 -
Directory Listing
Modified
Fri Sep 3 17:00:10 2004 UTC
(20 years, 6 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Fix a small bug with the line color.
Now the line color will now only set if it is set in Thuban an not Transparent.
Revision
2330 -
Directory Listing
Modified
Mon Aug 9 11:42:11 2004 UTC
(20 years, 6 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Set the status of the Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the layer on permanently.
Revision
2329 -
Directory Listing
Modified
Mon Aug 9 11:41:35 2004 UTC
(20 years, 6 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Now all layers which are imported, will be linked with the associated MF_Layer.
(import_mapfile): All layers, which are not selected, will be removed.
Disable the "import layer from mapfile" menu option.
Revision
2328 -
Directory Listing
Modified
Mon Aug 9 11:40:10 2004 UTC
(20 years, 6 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
(_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now Layersettings for the mapserver kann be edited.
Revision
2327 -
Directory Listing
Modified
Mon Aug 9 11:39:37 2004 UTC
(20 years, 6 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
(tb_layer_to_map): Add all layers which are exists in thuban to the mapobj. All removed Layers will be removed from the mapobj.
Added comments to all functions.
(thuban_to_map): No layer will be removed here.
Revision
2326 -
Directory Listing
Modified
Mon Aug 9 11:38:47 2004 UTC
(20 years, 6 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Move the import AnnotationLayer to the function where it is needed, because it don't works if it stands at the beginning.
(MF_Layer.__init__): Removed the extra numclassed variable. Now numclasses from the mapscript will be used.
(MF_Layer.get_index): New. Return the index of the layer in mapfile.
(MF_Layer.set_classes): New. A Classlist will be set to the layer.
(MF_Layer.set_metadata): New. A Metadata mapscript object will set.
(MF_Layer.remove_allclasses): New. All class of the layer will remove.
(MF_Map.create_new_layer): New. A new Layer is created and associated with the mapscript object.
(MF_Map.set_layerorder): New. The Layer order like in thuban is set in the mapscript.
(MF_Map.add_thubanlayer): Now a new layerobj is created if no one is linked to the layer in thuban, else the layerobject linked to the thubanlayer will be used.
AnnotationLayer will now store the filename of the shapefile.
(MF_Map.remove_layer): If a layer is removed the associated object must be set new.
Revision
2320 -
Directory Listing
Modified
Tue Aug 3 11:58:55 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added the group parameter to the roads and cultural layers. Also added a new
Annotation Layer for the cultural points.
Revision
2319 -
Directory Listing
Modified
Tue Aug 3 11:58:05 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added a Class and a function to show the Annotation layer in thuban. The layer don't do anything.
Its only to show the layer. Necessary to save the layer order.
Added a funtion to import only layers to thuban and not the other settings like projection or scalebar.
Moved the _has_umn_mapobj function and the create_new_mapfile functions from mf_handle.py to mf_import.py.
(select_layer2import): Moved the code for showing the number of layer from import_mapfile to this function.
Revision
2318 -
Directory Listing
Modified
Tue Aug 3 11:56:53 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added a group option and the metadata button to the Layer dialog. The layer dialog is temporary disabled.
(Metadata_CustomDataTable): Added some funktions to show the grid correct.
Revision
2317 -
Directory Listing
Modified
Tue Aug 3 11:56:08 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Removed the check if a mapobj exist, because its not needed anymore. The export function is only available if a mapobj exist.
Added an extra function to remove all layers.
Revision
2316 -
Directory Listing
Modified
Tue Aug 3 11:46:00 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
(MF_Metadata): Added a function to remove all metadata.
(MF_Layer): Added two functions to handle the group setting.
Removed the extra numlayers variable, used the mapscript parameter instead.
(MF_Map): Added a function to get the numlayers parameter.
Added a funtion to remove all layers.
(MF_Map.add_thubanlayer): Replaced the exception handling by a check if the object is an instance. Also added the annotation layer here to export, but only the layer is created in the mapfile.
Revision
2306 -
Directory Listing
Modified
Wed Jul 28 12:44:26 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
(import_mapfile): Changed the code for setting the extent in thuban. Now the extent is set to the given extent from the mapfile.
Fixed a logical mistake. Now the extent is set when realy a layer is loaded, and not if one is selected to load.
Revision
2305 -
Directory Listing
Modified
Wed Jul 28 12:41:06 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added a new metadata line to the mapobj and added metadata to the political layer.
Revision
2303 -
Directory Listing
Modified
Wed Jul 28 12:37:28 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added a dialog to handle metadata. Yet only mapfile metadata are supported. Layer and class supported are not implemented.
Added a dialog to handle layer informations. The dialog only shows the selected layer at the moment.
Revision
2302 -
Directory Listing
Modified
Wed Jul 28 12:36:27 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Changed the code to set the extent in the mapfile. Now the code is set by the displayed data in the Thuban-view.
(export_mapfile): The shapepath is now set empty, until relative pathnames are supported.
Revision
2301 -
Directory Listing
Modified
Wed Jul 28 12:35:32 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Changed all class functions. Now all metadata will handle by the function and its not needed to initialize it from outside. Therefor the associated mapobj will be stored in the Metadata Object. So we can use thespecial functions from the associated mapobj to get the Metadata. Therefor all initialization code for the metadata is removed from the other classes.
(MF_Layer): Added a function to get the metadata object.
(MF_Map): Added a function to set the mappath, the path where the mapfile ist stored.
Revision
2293 -
Directory Listing
Modified
Thu Jul 22 12:38:38 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added the import module "re". Also added Range and the ClassGroupRange import from Thuban. Both are needed for the new range expression import.
(create_rangeexpression): Added. Creates a Range Expression in Thuban style from a given mapfile expression.
(added_rasterlayer): Make some small code changes. The shapepath is now stored in an extra variable and the clazz_name is set empty if no class name set in the mapfile.
Changed the Error message for Range Expressions, becaus the new function create a error string which will be shown in the dialog.
Revision
2292 -
Directory Listing
Modified
Thu Jul 22 12:37:28 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added "import os"
Removed the old "import Thuban.UI.mainwindow" code.
(tbextent_to_map): Removed the extra function and at the code direct to "thuban_to_map" function.
(write_creatorcomment): Added. Now a short comment is added to the beginning of an generated mapfile.
(export_mapfile): Now the Path and filename are saved in to variables and not together in one variable. This is needed for the new write_creatorcomment function.
Revision
2287 -
Directory Listing
Modified
Thu Jul 15 14:31:37 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added a function to get the mappath directly from the mapobj. Is needed becaus of the changes in mf_import.py.
(MF_Layer.add_thubanclass): Added a new comment.
(MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the mapobj is empty there is no extent get from thuban an so no one can set to th mapobj.
Revision
2286 -
Directory Listing
Modified
Thu Jul 15 14:30:37 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Updated the discription.
Split the funktion in to three smaller ones. The new functions are add_rasterlayer, add_polygonlayer and select_layer2import.
Removed the mapfilepath and filepath initialisation, because its know include in the new functions.
Now nothing will be imported if cancel is pressed in the layer choice dialog.
Revision
2284 -
Directory Listing
Modified
Wed Jul 14 10:38:08 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added ClassGroupDefault to import.
(MF_Symbolset): Removed the extra variable for numsymbols.
(MF_Class.__init__): Added a comment to the exception clause.
Removed the extent init, because it was not needed anymore.
(MF_Layer.add_thubanclass): Added the code to set the class name to the expression value from thuban if no label is defined.
Added the code to export Range expressions from thuban to the mapfile.
(MF_Map.set_extent): Removed the exception and replace it by some if code. If the size of a map is not defined the size will be set to 1,1. This is necessary because if the extent is set, mapscript checks if the size is greater than zero.
(MF_Web): Added the get and set function for the template.
Revision
2283 -
Directory Listing
Modified
Wed Jul 14 10:36:40 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added the function to check if a mapobject exists and used it to set the status of the menu items.
If no mapfile exists the settings could not be edditied.
Define after which menuitem the exportitem will include.
Revision
2282 -
Directory Listing
Modified
Wed Jul 14 10:35:51 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Removed the import Thuban.UI.mainwindow clause, because it is not needed.
Added the command Refresh() to all "OnChangeColor()" functions, because the color preview window was not updated on a color change.
Added the function to check if a mapobject exists and used it to set the status of the menu items. If no mapobject exists the settings could not be edditied.
(Map_Dialog): Moved the imagetype selector from the Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
(Web_Dialog): Removed the name label and added the template textbox.
Revision
2281 -
Directory Listing
Modified
Wed Jul 14 10:34:10 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Replace the exception handling on loading the layers by an if statement.It is not necessary to us the exception there.
The Filepath creation now use os.path.join to build the path.
Revision
2280 -
Directory Listing
Modified
Wed Jul 14 10:33:24 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Include three new classes in the Line Layer, to test logical Expressions.
Set the status of the class "Point9" in the Point Layer to off
Revision
2279 -
Directory Listing
Modified
Wed Jul 14 10:32:29 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Moved the testMap definition from global to the setUp function. Now the testMap will initialize new on each test.
Revision
2276 -
Directory Listing
Modified
Thu Jul 8 14:29:49 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added new test for most of the new setting which were added during the last changes.
Removed the MF_Size Test.
Revision
2275 -
Directory Listing
Modified
Thu Jul 8 14:29:06 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added a new class to the cultural Layer to test expressions and the the status of that layer from on to default.
Changed the data path the the correct Thuban Data
Added the Outputformat Object and Symbol Object
Revision
2274 -
Directory Listing
Modified
Thu Jul 8 14:27:58 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Removed the image_type import statement, because its not needed anymore. The Outputformat is now given as string from the object. Make some formal changes to the code.
Revision
2273 -
Directory Listing
Modified
Thu Jul 8 14:26:56 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added code to generade and get a list of supported outputformats. This formats are not alle supported because there is no possibility to get the outputformat without the name known. Make some formal changes to the code.
(MF_Map.set_name()): Fixed a bug if the name is None.
Revision
2271 -
Directory Listing
Modified
Wed Jul 7 12:52:16 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added some setting to the Label Dialog and add the OutputDialog.
Make some changes to the code order.
Revision
2268 -
Directory Listing
Modified
Tue Jul 6 14:31:28 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added code to import the status of the Classes.
Fixed a bug with the projection. Now the to_meter parameter will be added to the Projection only if it doesn't exists.
Revision
2267 -
Directory Listing
Modified
Tue Jul 6 14:30:45 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
All colors are now set when press ok in the assosiated dialog and not at the end of the colordialog. Added the Dialog for the Scalebar.
(Label_Dialog): Added the offset option
Revision
2266 -
Directory Listing
Modified
Tue Jul 6 14:29:36 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added MF_Symbol to import from mapfile. Added a function to create a circle object like the one from thuban if no one exists.
Revision
2265 -
Directory Listing
Modified
Tue Jul 6 14:28:52 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added the symbolObj, pointObj and line Obj and add the scalebar_status_type, scalebar_style_type and scalebar_position_type.
Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The are only used to create a Symbol like the circle in Thuban.
Added the scalebarObject (MF_Scalebar)
(MF_Class): Added set_status and get_status.
(MF_Layer.add_thubanclass): Added code to set the class status
(MF_Map): Added code to handle the symbols and scalebar
(MF_Label): Added the set_partials and get_partials functions
Revision
2262 -
Directory Listing
Modified
Thu Jul 1 14:40:11 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added the new parameter "UNITS METERS".
Change the political layer to status OFF.
Revision
2260 -
Directory Listing
Modified
Thu Jul 1 14:39:00 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added new types which are need for the editing functions.
Added needed set-functions for the editing functions.
Added the possibility to export rasterimages.
Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol, MF_SymbolSet).
MF_Symbol and MF_SymbolSet are not needed at the moment.
(MF_Class.set_thubanstyle): Now point layers will set to a default symbol
to show a circle in mapserver and not only a 1px dot. (MF_Style.__init__): Fixed a bug with the color. Color was not set correct
before.
(MF_Size): Removed, because it is not needed.
Revision
2259 -
Directory Listing
Modified
Thu Jul 1 14:37:29 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added the possibility to save a new mapfile or use the old one which is
imported or new created.
Added code to use the editing functions.
Remove some not needed import statements
Revision
2258 -
Directory Listing
Modified
Thu Jul 1 14:36:37 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Added the possibility to import mapfiles without any layer selected. So it is possible to edit the other settings in a mapfile.
(import_mapfile): Added code to use the editing functions.
Added the possibility to import the projection to a layer if one is defined.
Status settings (On,Off) will now set in thuban (visible, invisible).
fixed a bug with with classnames. If no classname is set in mapfile the value in Thuban will set to the expression.
Revision
2257 -
Directory Listing
Modified
Thu Jul 1 14:35:07 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
This module extents Thuban with the possibility to edit the mapfile content.
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
* Extensions/svgexport/test/test_svgmapwriter.py:
Removed class VFile and used standard StringIO instead.
Revision
2253 -
Directory Listing
Modified
Wed Jun 23 12:40:45 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Removed the wxCHANGE_DIR, because of the hint from Bernhard Herzog.
Corrected the handling of absolute pathnames.
Changed the Text of the Menu-Item, now the beginning is upper case.
Revision
2252 -
Directory Listing
Modified
Wed Jun 23 12:39:52 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Expand the classes to use with the export module. Especially added the possibility to add thuban objects directly to the map objects.
Revision
2251 -
Directory Listing
Modified
Wed Jun 23 12:37:48 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
This module extents Thuban with the possibility to export the Thuban content.
Revision
2249 -
Directory Listing
Modified
Wed Jun 16 10:52:01 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
(mapserver_import_Test_generalClasses.test_MF_Color):
Corrected the thubancolor test.
Revision
2243 -
Directory Listing
Modified
Wed Jun 16 10:44:34 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
Changed the wxPython.wx import from * to explicit used statements.
Changed the Thuban.UI.mainwindow import phrase, too.
(import_mapfile):Corrected a clerical mistake.
Added wxCHANGE_DIR in OpenFile Dialog
Added a MultipleChoiceDialog, to select the layers to load from mapfile into thuban. Thereby the projection is only set if one layer is selected.
Added the possibility to handle relative pathnames which uses up-level references.Removed some doubled code.
Corrected an error with integer values used as label in thuban ClassGroup.
Revision
2236 -
Directory Listing
Modified
Thu Jun 10 12:49:58 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
This module extends Thuban with the possibility to handle UMN MapServer
mapfiles.
Revision
2233 -
Directory Listing
Modified
Thu Jun 10 10:29:00 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions
This is a test .map-file for automated tests of the umn_mapserver extension of
Thuban.
Revision
2197 -
Directory Listing
Modified
Tue May 4 17:17:00 2004 UTC
(20 years, 10 months ago)
by
frank
Original Path:
trunk/thuban/Extensions
Extensions/bboxdump/__init__.py: Fixed string left over from
copying.
Extensions/bboxdump/bboxdump.py (bboxdump):
Use layer.ShapeStore().AllShapes() to loop over shapes instead of
xrange(layer.NumShapes()). Compile the bboxmessage from a list
of formatted outputs (string.join) instead of appending to the
message. Two progress bar dialogs to report progress on the sometimes
lenghty processing.
Revision
2196 -
Directory Listing
Modified
Thu Apr 22 17:11:54 2004 UTC
(20 years, 10 months ago)
by
frank
Original Path:
trunk/thuban/Extensions
New Extension to dump bounding boxes of all shapes of the selected
layer. An optional column can be specified to group the objects,
in this case the bounding box is a union of the separate boxes.
Dump can be displayed in a ScrolledMessageDialog or written to file.
The Extension is simply a combination of available and well tested
Thuban functionality.
* Extensions/bboxdump/__init__.py: New: Init to make this
directory a package.
* Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
all shapes of the selected layer.
Revision
2180 -
Directory Listing
Modified
Thu Apr 15 16:14:51 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
First start for a properties dialog. I'm not too happy with it at the
moment but it's functional for a first selection of layers. It also
has some wxWidgets/GTK problems but beautification can be done later
as well.
Revision
2179 -
Directory Listing
Modified
Thu Apr 15 16:06:24 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Move away from using only one layer to using a list of layers
(unsorted at the moment, though). Added two convenience methods for
retrieving and setting the list of visible layers (get/setVisibleLayers)
Revision
2175 -
Directory Listing
Modified
Thu Apr 15 07:13:31 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Moved the WMS layer into a file on its own in order to establish a
clean structure.
Revision
2173 -
Directory Listing
Modified
Tue Apr 13 19:28:05 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Added support for oldstyle (WMS 1.0 apparently) image format specification.
Revision
2172 -
Directory Listing
Modified
Tue Apr 13 17:38:26 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Reset an empty URL to None so that the subsequent program can depend
on this, since the dialog will indeed return an empty URL, causing
another declaration of love by Python.
Revision
2171 -
Directory Listing
Modified
Tue Apr 13 17:31:01 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Reduce the list of supported graphic formats back to JPEG and BMP, PNG
and others are too *cough* experimental... Sorry, Imeant to filter
this out before I committed this part.
Revision
2170 -
Directory Listing
Modified
Tue Apr 13 17:21:19 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Looks like I misinterpreted the specs.
First of all, a <BoundingBox> element does not have to be specified.
This could cause the program to fail if later a bbox will be requested
which wasn't defined in the Capabilities XML.
Secondly, since EPSG:3426 is the implicit spatial reference system for
<LatLonBoundingBox> its values should be returned if the client
requests a bounding box for SRS EPSG:3426, even if no <BoundingBox>
was defined for EPSG:3426.
Therefore whenever a native BoundingBox request cannot be fulfilled,
check whether the requested SRS is EPSG:3426, in which case return the
LatLonBoundingBox values.
Revision
2169 -
Directory Listing
Modified
Tue Apr 13 17:17:40 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Looks like I misinterpreted the specs.
First of all, a <BoundingBox> element does not have to be specified.
This could cause the program to fail if later a bbox will be requested
which wasn't defined in the Capabilities XML.
Secondly, since EPSG:3426 is the implicit spatial reference system for
<LatLonBoundingBox> its values should be returned if the client
requests a bounding box for SRS EPSG:3426, even if no <BoundingBox>
was defined for EPSG:3426.
Therefore added another test method to ensure the LatLonBoundingBox
values will be returned if the request SRS is EPSG:3426.
Revision
2167 -
Directory Listing
Modified
Tue Apr 13 17:05:56 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Added rudimentary support for non-EPSG SRS, i.e. ignore them for the
moment by placing them into a variable which is currently unused.
Also test whether the EPSG SRS is numerical as it should be and add an
error message if it is not.
Revision
2166 -
Directory Listing
Modified
Tue Apr 13 16:50:14 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Added AUTO:* SRS since they appear in the real world as well. Since
we cannot handle them yet (OGCLib can't either), we will ignore them
for the moment.
Revision
2165 -
Directory Listing
Modified
Tue Apr 13 16:42:48 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Added support for error messages during grok(). They will be
aggregated in an array and may be displayed later. We may have to add
a classification "Warning" and "Error" to this. That requires more
experience, though, since not every error may be lethal.
Revision
2158 -
Directory Listing
Modified
Sun Apr 11 17:38:10 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Switch to using Thuban{Begin,End}BusyCursor instead of the pure
wxWidgets variants.
Revision
2157 -
Directory Listing
Modified
Sun Apr 11 16:19:34 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Added an information dialog that will display various information
about the WMS current resource, so that additional information such as
the title, the abstract, fees and access constraints can be displayed
for the user if they are documented in the WMS XML.
Revision
2155 -
Directory Listing
Modified
Sat Apr 10 19:12:41 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Whoops, it's "foo".lower() and not lower(foo) without lower imported
from strings or something.
Revision
2154 -
Directory Listing
Modified
Sat Apr 10 19:07:59 2004 UTC
(20 years, 10 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Incorporate WMSCapabilities from capabilities.py and parser.py.
Implement priority list for supported graphics formats, take care of
wbmp != bmp. PNG, TIFF and GIF are supported here, but not yet by
main Thuban. Hence, support for them may be removed later.
Special contribution to usability: get wxWidgets to change the cursor
when we're waiting for data from the network so the user won't
start to worry. This causes a redrawing error/warning, though.
Revision
2152 -
Directory Listing
Modified
Thu Apr 1 15:34:25 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
No need to use the concatenation operator here, and this version will
also be understood by gettext which is important for translations
later.
Revision
2151 -
Directory Listing
Modified
Thu Apr 1 14:41:35 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Added proper error handling when the GetCapabilities request failed,
so that the surrounding program can act accordingly.
Revision
2150 -
Directory Listing
Modified
Thu Apr 1 14:39:39 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Export the used version of the GetCapabilities request, so we can use
it for subsequent calls, i.e. for GetMap requests.
Revision
2149 -
Directory Listing
Modified
Thu Apr 1 10:17:00 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Make this class a specialisation of WMSCapabilitiesParser as well.
Also execute grok() after loading or fetching capabilities, if that
went well, so that subsequent calls can already access the data.
Revision
2148 -
Directory Listing
Modified
Thu Apr 1 10:06:13 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Revert part of former changes, since the capabilities XML is used by
more methods.
Revision
2147 -
Directory Listing
Modified
Thu Apr 1 09:58:30 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Misc corrections:
. superflous asterisk
. Documentation for __init__
. Syntax correction
. fetchCapabilities: Initialise variable, use local one
. loadCapabilities: Use local variable
. Fix try...except to only cat IOError when handling files
. Corrected __main__ code
Revision
2145 -
Directory Listing
Modified
Tue Mar 30 18:05:53 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Removed integrity test since it was only implemented due to a
misunderstanding.
Revision
2144 -
Directory Listing
Modified
Tue Mar 30 17:25:20 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Adjusted the getLayerSRS method to return the list of SRSes extracted
from <SRS> elements instead of <BoundingBox> elements. Added a bit of
documentation as well.
Revision
2143 -
Directory Listing
Modified
Tue Mar 30 16:30:12 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Removed test_grok method since it is not applicable anymore. Listing
more SRSes in <SRS> elements is valid according to the specs.
Revision
2141 -
Directory Listing
Modified
Tue Mar 30 16:25:02 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Adjust the tests to reflect the corrected interpretation of the
standard: i.e. a layer does not have to define a BoundingBox for all
SRSes it supports. Hence the <SRS></SRS> specification is
authoritative, not the list of BoundingBoxes.
Revision
2137 -
Directory Listing
Modified
Wed Mar 24 20:07:34 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Removed a space before an opening parenthesis, added a few spaces
after a comma in argument lists
Revision
2129 -
Directory Listing
Modified
Wed Mar 24 17:07:08 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Adjusted the sample file so that <SRS> elements match the
<BoundingBox> elements, except for the layer 'beschriftung'
Revision
2126 -
Directory Listing
Modified
Wed Mar 24 16:42:45 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
SRS are stored in strings and Python has strong typechecking, so a
number is either a cardinal number or a string, but the string has to
be enclosed in quotes, different to how Perl works, my fault.
Revision
2125 -
Directory Listing
Modified
Wed Mar 24 16:38:21 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
We don't need getLayerBBoxSRS() anymore since the SRS is calculated
from the BoundingBoxes anyway in order to provide correct information,
hence this routine is obsoleted by getLayerSRS().
Revision
2124 -
Directory Listing
Modified
Wed Mar 24 16:34:13 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Need to encode non-ascii strings since Python works with unicode
strings internally, otherwise comparisons will fail.
Revision
2119 -
Directory Listing
Modified
Fri Mar 19 19:43:40 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Moved path detection and adding into a module of its own, adjustpath,
which exports thubandir as main Thuban directory.
Revision
2116 -
Directory Listing
Modified
Fri Mar 19 16:57:31 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Several improvements:
. Moved path detection and adding into a module of its own,
adjustpath, which exports thubandir as main Thuban directory.
. Reorganised the module in order to support the SkipTest feature for
Thuban test cases.
- Adjusted the error handling for importing the ogclib from the
PyOGCLib package.
- The test class is no longer a specialisation of WMSClient, but
contains an instance of this particular class and uses its
methods instead.
- The special setUp() method will check whether importing PyOGCLib
worked by calling the external function skip_if_no_ogclib() and
also create the WMSClient instance.
- Call support.run_tests() instead of unittest.main().
Revision
2114 -
Directory Listing
Modified
Thu Mar 18 17:18:53 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Added another test for checking whether the WMS XML parser (to be
implemented) returns the information we expect. This requires a
sample WMS WML file (sample.xml) which has been extracted from the
frida <http://frida.intevation.org/> server and "improved" manually.
Revision
2113 -
Directory Listing
Modified
Thu Mar 18 17:13:28 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Added legacy code to add the main Thuban directory to the path in
order to be able to import random modules. Adjusted the PyOGCLib
detection to reuse the information gathered. Also added a note about
the PYTHONPATH environment variable. This should ensure that the test
program can now be run from outside the test directory as well.
Revision
2112 -
Directory Listing
Modified
Thu Mar 18 08:15:54 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
The format specification is a mime-type, not a graphic format, hence
image/jpeg wou ld be the proper format and not JPEG. We'll also have
to take care of the encoding of / as %2F.
Revision
2110 -
Directory Listing
Modified
Tue Mar 16 19:14:56 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
class WMSCapabilities to manage capabilites, will incorporate parsing
the capabilities response and provide details for other classes
Revision
2109 -
Directory Listing
Modified
Tue Mar 16 17:28:26 2004 UTC
(20 years, 11 months ago)
by
joey
Original Path:
trunk/thuban/Extensions
Added a (hopefully) comprehensive test for the getMapURL method, built
compare URLs according to the documentation in OGC 01-068r3
Revision
2086 -
Directory Listing
Modified
Fri Feb 20 20:09:25 2004 UTC
(21 years ago)
by
bh
Original Path:
trunk/thuban/Extensions
(epsg_code_to_projection): Use
get_system_proj_file to read the epsg projections. The old way
depended on the current directory being the top Thuban directory.
Revision
2082 -
Directory Listing
Modified
Fri Feb 20 14:33:22 2004 UTC
(21 years ago)
by
bh
Original Path:
trunk/thuban/Extensions
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
2071 -
Directory Listing
Modified
Tue Feb 17 12:54:00 2004 UTC
(21 years ago)
by
bh
Original Path:
trunk/thuban/Extensions
* test/test_svgmapwriter.py, Extensions/svgsaver.py,
Extensions/svgmapwriter.py, Extensions/maplegend.py,
extensions/svgexport/svgsaver.py,
extensions/svgexport/svgmapwriter.py,
extensions/svgexport/maplegend.py: Removed. These files were in
the wrong places or didn't work at all.
Revision
1974 -
Directory Listing
Modified
Tue Nov 25 14:05:35 2003 UTC
(21 years, 3 months ago)
by
bh
Original Path:
trunk/thuban/Extensions
Add very experimental (and possibly dangerous) extension to draw
polygons:
* Extensions/drawshape/README: New. Brief installation
instructions
* Extensions/drawshape/drawshape.py: New. Implementation of the
drawshape extensions
* Extensions/drawshape/patch.diff: Patch to apply before the
extension can be used.
Revision
1915 -
Directory Listing
Modified
Mon Nov 3 14:19:40 2003 UTC
(21 years, 4 months ago)
by
bh
Original Path:
trunk/thuban/Extensions
(popup_dialog_box): New config
variable to indicate whether the result should be shown in a
dialog box
(profile_screen_renderer, time_screen_renderer): Only show a
dialog box if popup_dialog_box is true.
(profile_screen_renderer): Flush stdout after the printing the
first part of the "profiling..." message
Revision
1901 -
Directory Listing
Modified
Fri Oct 31 16:05:29 2003 UTC
(21 years, 4 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
Moved menu entries to the Extensions menu. Applied _() for strings.
(profile_screen_renderer): Catch the detailed printout and present
it in a dialog.
(ime_screen_renderer): Raise a dialog to present the result instead
of printing it to stdout.
Revision
1884 -
Directory Listing
Modified
Thu Oct 30 09:16:46 2003 UTC
(21 years, 4 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
(APR_BLnSym, APR_BMkSym, APR_BShSym): Moved to apr.py.
(APR_View): Added object ref 'ITheme'.
Revision
1883 -
Directory Listing
Modified
Thu Oct 30 09:14:52 2003 UTC
(21 years, 4 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
(APR_BLnSym, APR_BMkSym, APR_BShSym): New.
Copied from importAPR and provided with documentation.
Revision
1733 -
Directory Listing
Modified
Mon Sep 22 12:23:43 2003 UTC
(21 years, 5 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
(APR_LClass.GetThubanRange): Now returns a string object if the range
is based on text.
Revision
1726 -
Directory Listing
Modified
Mon Sep 22 10:44:35 2003 UTC
(21 years, 5 months ago)
by
jan
Original Path:
trunk/thuban/Extensions
Classes for generic ArcView ODB Objects as in '.apr', '.avl'
and other files.