geofileops.get_layer_geometrytypes#
- geofileops.get_layer_geometrytypes(path: str | PathLike[Any], layer: str | None = None) list[str]#
Get the geometry types in the layer by examining each geometry in the layer.
The general geometry type of the layer can be determined using
get_layerinfo().- Parameters:
path (PathLike) – path to the file to get info about. GDAL vsi paths are also supported.
layer (str) – the layer you want info about. Doesn’t need to be specified if there is only one layer in the geofile.
- Returns:
the geometry types in the layer.
- Return type:
List[str]