diff options
Diffstat (limited to 'chimere/utils.py')
| -rw-r--r-- | chimere/utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chimere/utils.py b/chimere/utils.py index 423ea85..4cd6f45 100644 --- a/chimere/utils.py +++ b/chimere/utils.py @@ -222,6 +222,9 @@ class KMLManager(ImportManager): for item in placemark: if item.tag == ns + 'name': name = item.text + if not pl_id: + # if no ID is provided assume that name is a key + pl_id = name elif item.tag == ns + 'description': description = item.text elif item.tag == ns + 'Point': @@ -621,7 +624,8 @@ class OSMManager(ImportManager): for idx, item in enumerate(Marker.objects.filter(status='A', point__contained=bbox, categories=self.importer_instance.categories.all(), - not_for_osm=False, modified_since_import=True).all()): + not_for_osm=False, modified_since_import=True, + route=None).all()): dct = default_dct.copy() dct.update({'lon':item.point.x, 'lat':item.point.y}) |
