# HG changeset patch # User fknauft # Date 1296737707 -3600 # Node ID 2269db3ad5ba1899e4b1a08d44b90a7115ce104e # Parent 628f0f42a3907854e327c4c2855b3f5ee5878c16 polygon-Layers diff -r 628f0f42a390 -r 2269db3ad5ba RestDbGisApi.py --- 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