gearslaboratory / gdalUtils

R Wrappers for the Geospatial Data Abstraction Library (GDAL) Utilities
18 stars 12 forks source link

ogrinfo should return error if no GDAL installation is found #38

Open lumtvn opened 2 years ago

lumtvn commented 2 years ago

Newcomer here. I'm recently starting a project with GDAL/OGR.

Trying to use the ogrinfo function in a code i got from this repo, i kept getting NULL values returned from the function, which caused my code to fail. After some reading i found out i need a GDAL installation for it to work. However, this function does not return an error when no GDAL installation is found, isntead, it gives a warning, which is prompted when verbose is set to true.

Given i have no experience with GDAL/OGR, i need to ask: is it correct to assume that with no GDAL installed, the program will not perform as expected in any given situation? If this is the case, my proposal is that an error is prompted and the execution halted when this conditions are met

I will happily tackle this myself if possible. This is my first reported issue so please any comments are welcome.