Hello, I am trying to understand how exportShapes method works if I need to export specific layers.
I am using the following code:
chunk.exportShapes(path=current_dir + "/Polygons/All_layers/" + chunk.label +".kml", save_points=True, save_polylines=True, save_polygons=True, format=shapesformat, groups=shapelist, crs=crs, save_labels=True, save_attributes=True)
It only works if I provide a list of integer indexes I presume (it does not work with group labels or chunk.shapes.groups).
The downside is I can not figure out how to properly obtain those indexes. It does not always correspond to the order of group in chunk.shapes.groups.
Moreover, if I omit groups=shapelist all shapes will be merged and exported into one single layer.
Thank you!