geofileops.get_layer_geometrytypes#

geofileops.get_layer_geometrytypes(path: Union[str, PathLike[Any]], layer: Optional[str] = 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

  • 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]