/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/load.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/load.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 722 by jonathan, Thu Apr 24 10:12:29 2003 UTC revision 723 by bh, Thu Apr 24 15:31:53 2003 UTC
# Line 1  Line 1 
1  # Copyright (C) 2001, 2002 by Intevation GmbH  # Copyright (C) 2001, 2002, 2003 by Intevation GmbH
2  # Authors:  # Authors:
3  # Jan-Oliver Wagner <[email protected]>  # Jan-Oliver Wagner <[email protected]>
4  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
# Line 13  Parser for thuban session files. Line 13  Parser for thuban session files.
13    
14  __version__ = "$Revision$"  __version__ = "$Revision$"
15    
16  import sys, string, os  import string, os
17    
18  import xml.sax  import xml.sax
19  import xml.sax.handler  import xml.sax.handler
# Line 229  class SessionLoader(XMLReader): Line 229  class SessionLoader(XMLReader):
229          fill = parse_color(attrs.get((None, 'fill'), "None"))          fill = parse_color(attrs.get((None, 'fill'), "None"))
230          stroke = parse_color(attrs.get((None, 'stroke'), "#000000"))          stroke = parse_color(attrs.get((None, 'stroke'), "#000000"))
231          stroke_width = int(attrs.get((None, 'stroke_width'), "1"))          stroke_width = int(attrs.get((None, 'stroke_width'), "1"))
232          self.aLayer = layer_class(title, filename, fill = fill,          self.aLayer = layer_class(title,
233                                    stroke = stroke, lineWidth = stroke_width)                                    self.theSession.OpenShapefile(filename),
234                                      fill = fill, stroke = stroke,
235                                      lineWidth = stroke_width)
236    
237      def end_layer(self, name, qname):      def end_layer(self, name, qname):
238          self.aMap.AddLayer(self.aLayer)          self.aMap.AddLayer(self.aLayer)

Legend:
Removed from v.722  
changed lines
  Added in v.723

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26