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

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

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

revision 710 by jonathan, Wed Apr 23 08:45:57 2003 UTC revision 773 by jonathan, Tue Apr 29 14:34:23 2003 UTC
# Line 210  class SessionSaver(XMLWriter): Line 210  class SessionSaver(XMLWriter):
210          """Write the projection.          """Write the projection.
211          """          """
212          if projection and len(projection.params) > 0:          if projection and len(projection.params) > 0:
213              self.open_element("projection")              self.open_element("projection",
214                                  {"name": escape(projection.GetName())})
215              for param in projection.params:              for param in projection.params:
216                  self.write_element('parameter value="%s"' % escape(param))                  self.write_element('parameter value="%s"' % escape(param))
217              self.close_element("projection")              self.close_element("projection")
# Line 232  class SessionSaver(XMLWriter): Line 233  class SessionSaver(XMLWriter):
233          attrs["stroke"]       = lc.GetDefaultLineColor().hex()          attrs["stroke"]       = lc.GetDefaultLineColor().hex()
234          attrs["stroke_width"] = str(lc.GetDefaultLineWidth())          attrs["stroke_width"] = str(lc.GetDefaultLineWidth())
235          attrs["fill"]         = lc.GetDefaultFill().hex()          attrs["fill"]         = lc.GetDefaultFill().hex()
236            attrs["visible"]      = ("false", "true")[int(layer.Visible())]
237    
238          self.open_element("layer", attrs)          self.open_element("layer", attrs)
239    
240            proj = layer.GetProjection()
241            if proj is not None:
242                self.write_projection(proj)
243    
244          self.write_classification(layer)          self.write_classification(layer)
245    
246          self.close_element("layer")          self.close_element("layer")
247    
248      def write_classification(self, layer, attrs = None):      def write_classification(self, layer, attrs = None):

Legend:
Removed from v.710  
changed lines
  Added in v.773

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26