Skip to content

Commit 7940532

Browse files
committed
Fix code -- we have a dict not a Shape object.
1 parent b0a9003 commit 7940532

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mapmaker/flatmap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def new_feature(self, layer_id: str, geometry, properties, is_group=False) -> Op
292292
#===============================================================================================
293293
properties['layer'] = layer_id
294294
self.properties_store.update_properties(properties) # Update from JSON properties file
295-
if properties.id in self.__features_with_id:
295+
if properties.get('id') in self.__features_with_id:
296296
log.error('Duplicate feature id', id=properties.id)
297297
return None
298298
self.__last_geojson_id += 1

0 commit comments

Comments
 (0)