Fix api stores

Rename in category table: geom_type to gis_type
This commit is contained in:
phil 2023-12-27 01:11:54 +05:30
parent c0c308a657
commit 956147aea8
7 changed files with 45 additions and 22 deletions

View file

@ -190,7 +190,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.geom_type.iloc[0]
gis_type = gdf.gis_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)