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]> |
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 |
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) |