clawpack / visclaw

Clawpack visualization tools
http://www.clawpack.org
BSD 3-Clause "New" or "Revised" License
29 stars 47 forks source link

Google Earth : GDAL library, GDAL_DATA environment variable and supporting 'gcs.cvs' file. #136

Closed donnacalhoun closed 9 years ago

donnacalhoun commented 9 years ago

To create tilings of raw PNG files needed for faster loading in GE, we are using tools from a supporting library GDAL. The GDAL libraries is easily imported via set-up tools. However at least one supporting file gcs.cvs, containing geo-referencing data should be supplied.

mandli commented 9 years ago

It sounds like we should rely on the users to install the gdal library and all the accoutrements, maybe with some instructions in the docs, and rely on the library's warnings when things are not setup. This way we do not have to support the installation of gdal beyond pointing users in the right direction.

On the matter of using os.system calls, I would suggest using the subprocess module instead as it gives you better control of the system call and as you suggested, more portable.

donnacalhoun commented 9 years ago

Thanks for the tip on using subprocess; I've changed our os.system calls to subprocess.call().

and for now,we'll go with letting the user set GDAL_DATA, and warning them about warnings if the file is not found.

donnacalhoun commented 9 years ago

My plan to is supply the gcs.cvs file with the GE version (or somewhere). Users can then decide if they want to set the GDAL environment variable to suppress any warnings relate dot it not being found.