Skip to content

Python script to open a file system of vector and raster GIS data, find the extent and output this into a spreadsheet in a format suitable for Marc cataloguing.

License

Notifications You must be signed in to change notification settings

thegsi/LD_bounding_box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LD bounding_box

Python script to open a file system of vector and raster GIS data, find the extent and output this into a spreadsheet in a format suitable for Marc cataloguing.

Place the bounding_box.py script in the same directory as the GIS data.

Replace the path variable on line 6 (path = './test_data') to point to your GIS data (eg path = './' if in the same directory as the GIS data).

Install the dependencies, GDAL can sometimes be difficult to install.

On mac (High Sierra) the following worked for me:

brew install gdal

Followed by creating and activating a virtual env:

python3 -m venv gdal_env source gdal_env/bin/activate

And then installing the dependencies inside the virtual env:

pip install gdal pip install osr

Install gdal, note: python gdal must match system gdal

Check system version using gdalinfo --version Match with pip eg pip install gdal==2.4

Run the script within the virtual env:

python bounding_box.py

About

Python script to open a file system of vector and raster GIS data, find the extent and output this into a spreadsheet in a format suitable for Marc cataloguing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages