1 |
# Copyright (c) 2001, 2002, 2003, 2004 by Intevation GmbH |
# $Id$ |
2 |
|
# Copyright (c) 2001-2004 by Intevation GmbH |
3 |
# Authors: |
# Authors: |
4 |
# Jan-Oliver Wagner <[email protected]> |
# Jan-Oliver Wagner <[email protected]> (2004) |
5 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> (2001-2004) |
6 |
# Jonathan Coles <[email protected]> |
# Jonathan Coles <[email protected]> (2003) |
7 |
|
# Frank Koormann <[email protected]> (2003) |
8 |
# |
# |
9 |
# This program is free software under the GPL (>=v2) |
# This program is free software under the GPL (>=v2) |
10 |
# Read the file COPYING coming with Thuban for details. |
# Read the file COPYING coming with Thuban for details. |
25 |
ClassGroupDefault, ClassGroupSingleton, ClassGroupRange, ClassGroupMap |
ClassGroupDefault, ClassGroupSingleton, ClassGroupRange, ClassGroupMap |
26 |
from Thuban.Model.transientdb import AutoTransientTable, TransientJoinedTable |
from Thuban.Model.transientdb import AutoTransientTable, TransientJoinedTable |
27 |
from Thuban.Model.table import DBFTable, FIELDTYPE_STRING |
from Thuban.Model.table import DBFTable, FIELDTYPE_STRING |
28 |
from Thuban.Model.data import DerivedShapeStore, ShapefileStore |
from Thuban.Model.data import DerivedShapeStore, ShapefileStore, \ |
29 |
|
SHAPETYPE_POINT |
30 |
|
|
31 |
from Thuban.Model.xmlwriter import XMLWriter |
from Thuban.Model.xmlwriter import XMLWriter |
32 |
from postgisdb import PostGISConnection, PostGISShapeStore |
from postgisdb import PostGISConnection, PostGISShapeStore |
347 |
'stroke_width': str(data.GetLineWidth()), |
'stroke_width': str(data.GetLineWidth()), |
348 |
'fill' : data.GetFill().hex()} |
'fill' : data.GetFill().hex()} |
349 |
|
|
350 |
|
# only for point layers write the size attribute |
351 |
|
if layer.ShapeType() == SHAPETYPE_POINT: |
352 |
|
dict['size'] = str(data.GetSize()) |
353 |
|
|
354 |
self.open_element(open_el) |
self.open_element(open_el) |
355 |
self.write_element("cldata", dict) |
self.write_element("cldata", dict) |
356 |
self.close_element(close_el) |
self.close_element(close_el) |