changeset 148:2269db3ad5ba

polygon-Layers
author fknauft
date Thu, 03 Feb 2011 13:55:07 +0100
parents 628f0f42a390
children 143b67a139f9
files RestDbGisApi.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/RestDbGisApi.py	Thu Feb 03 13:45:18 2011 +0100
+++ b/RestDbGisApi.py	Thu Feb 03 13:55:07 2011 +0100
@@ -163,7 +163,11 @@
 
     def getKmlData(self, schema, table, ids=None, sortBy=1, gisIdField=None, latField=None, lonField=None, geomField="point", colorField="red"):
         """returns data structure for KML template"""
-        logging.debug("getKMLdata gid=%s lat=%s lon=%s"%(gisIdField,latField,lonField))
+        logging.debug("getKMLdata gid=%s lat=%s lon=%s geom=%s color=%s"%(gisIdField,latField,lonField,geomField,colorField))
+        if geomField is None:
+            geomField="point"
+        if colorField is None:
+            colorField="red"
         # Mapping a set of points from table-based SQL-query:
         qstr='SELECT * FROM "%s"."%s"'%(schema,table)
         idList = None