PDAL / python

PDAL's Python Support
Other
115 stars 34 forks source link

Add support for `pathlib.Path` in filenames #148

Closed mone27 closed 1 year ago

mone27 commented 1 year ago

Pathlib is the python standard library module to work with paths (https://docs.python.org/3/library/pathlib.html) and has many advantages compared to working with simple strings for filenames (at least in my experience). Many python libraries support paths both as strings or as Path objects, however in pdal you can only pass filenames as strings.

I think it could be a nice usability improvements if paths objects could be transparently converted to strings by pdal instead of requiring the user to do this