/[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 754 by jonathan, Fri Apr 25 14:48:15 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 234  class SessionSaver(XMLWriter): Line 235  class SessionSaver(XMLWriter):
235          attrs["fill"]         = lc.GetDefaultFill().hex()          attrs["fill"]         = lc.GetDefaultFill().hex()
236    
237          self.open_element("layer", attrs)          self.open_element("layer", attrs)
238    
239            proj = layer.GetProjection()
240            if proj is not None:
241                self.write_projection(proj)
242    
243          self.write_classification(layer)          self.write_classification(layer)
244    
245          self.close_element("layer")          self.close_element("layer")
246    
247      def write_classification(self, layer, attrs = None):      def write_classification(self, layer, attrs = None):

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26