/[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 6 by bh, Tue Aug 28 15:41:52 2001 UTC revision 105 by jan, Fri Apr 19 15:36:57 2002 UTC
# Line 1  Line 1 
1  # Copyright (C) 2001 by Intevation GmbH  # Copyright (C) 2001, 2002 by Intevation GmbH
2  # Authors:  # Authors:
3  # Jan-Oliver Wagner <[email protected]>  # Jan-Oliver Wagner <[email protected]>
4  #  #
# Line 101  class ProcessSession(HandlerBase): Line 101  class ProcessSession(HandlerBase):
101          elif name == 'projection':          elif name == 'projection':
102              self.ProjectionParams = [ ]              self.ProjectionParams = [ ]
103          elif name == 'parameter':          elif name == 'parameter':
104              self.ProjectionParams.append(attrs.get('value', None))              s = attrs.get('value')
105                s = str(s) # we can't handle unicode in proj
106                self.ProjectionParams.append(s)
107          elif name == 'layer':          elif name == 'layer':
108              title = attrs.get('title', "")              title = attrs.get('title', "")
109              filename = attrs.get('filename', "")              filename = attrs.get('filename', "")
110              filename = os.path.join(self.directory, filename)              filename = os.path.join(self.directory, filename)
111              fill = parse_color(attrs.get('fill', "None"))              fill = parse_color(attrs.get('fill', "None"))
112              stroke = parse_color(attrs.get('stroke', "#000000"))              stroke = parse_color(attrs.get('stroke', "#000000"))
113              self.aLayer = Layer(title, filename, fill = fill, stroke = stroke)              stroke_width = int(attrs.get("stroke_width", "1"))
114                self.aLayer = Layer(title, filename, fill = fill, stroke = stroke,
115                                    stroke_width = stroke_width)
116          elif name == 'table':          elif name == 'table':
117              print "table title: %s" % attrs.get('title', None)              print "table title: %s" % attrs.get('title', None)
118          elif name == 'labellayer':          elif name == 'labellayer':

Legend:
Removed from v.6  
changed lines
  Added in v.105

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26