Log of /branches/WIP-pyshapelib-bramz/Extensions/umn_mapserver
Directory Listing
Revision
2734 -
Directory Listing
Modified
Thu Mar 1 12:42:59 2007 UTC
(18 years ago)
by
bramz
made a copy
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/umn_mapserver
Added registry entry and the
importing of the actual umn mapserver management modules.
Included a test for the required Python MapScript.
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/umn_mapserver
Fixed a bug with deleting the layers from mapfile.
Now all layers will delete backwards from the.
CVS ----------------------------------------------------------------------
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/umn_mapserver
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
2327 -
Directory Listing
Modified
Mon Aug 9 11:39:37 2004 UTC
(20 years, 6 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions/umn_mapserver
(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/umn_mapserver
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
2319 -
Directory Listing
Modified
Tue Aug 3 11:58:05 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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/umn_mapserver
(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/umn_mapserver
(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
2303 -
Directory Listing
Modified
Wed Jul 28 12:37:28 2004 UTC
(20 years, 7 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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
2275 -
Directory Listing
Modified
Thu Jul 8 14:29:06 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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
2268 -
Directory Listing
Modified
Tue Jul 6 14:31:28 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions/umn_mapserver
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/umn_mapserver
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
2265 -
Directory Listing
Modified
Tue Jul 6 14:28:52 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions/umn_mapserver
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
2260 -
Directory Listing
Modified
Thu Jul 1 14:39:00 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions/umn_mapserver
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/umn_mapserver
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/umn_mapserver
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
2253 -
Directory Listing
Modified
Wed Jun 23 12:40:45 2004 UTC
(20 years, 8 months ago)
by
jschuengel
Original Path:
trunk/thuban/Extensions/umn_mapserver
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/umn_mapserver
Expand the classes to use with the export module. Especially added the possibility to add thuban objects directly to the map objects.
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/umn_mapserver
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.