I have numerous XYZ files, which aren't gridded and I'd like to use Python to convert them to shapefiles.
I'm not quite sure how to go about this?
convertpythonshapefilexyz
I have numerous XYZ files, which aren't gridded and I'd like to use Python to convert them to shapefiles.
I'm not quite sure how to go about this?
Best Answer
from GDAL XYZ – ASCII Gridded XYZ
The ungridded XYZ file header
Read the xyz file with pandas
Convert the pandas DataFrame to a 2D GeoPandas GeoDataFrame
Convert the pandas DataFrame to a 3D GeoPandas GeoDataFrame