From d3fa4624f88c57ff0ace2a59585e53c64d91ef62 Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 29 Apr 2024 19:15:39 +0200 Subject: [PATCH] Live: fix geom_type --- src/gisaf/redis_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gisaf/redis_tools.py b/src/gisaf/redis_tools.py index e272783..8725f38 100644 --- a/src/gisaf/redis_tools.py +++ b/src/gisaf/redis_tools.py @@ -191,7 +191,7 @@ class Store: gdf['popup'] = 'Live: ' + live_name + ' #' + gdf.index.astype('U') if len(gdf) > 0: gdf = gdf.to_crs(conf.crs.geojson) - gis_type = gdf.gis_type.iloc[0] + gis_type = gdf.geom_type.iloc[0] else: gis_type = 'Point' ## FIXME: cannot be inferred from the gdf? mapbox_type = SHAPELY_TYPE_TO_MAPBOX_TYPE.get(gis_type, None)