timwaters / mapwarper

free open source public map georeferencer, georectifier and warper
http://mapwarper.net
MIT License
193 stars 80 forks source link

remove the use of gdal ruby bindings for gdal 2+ #166

Closed timwaters closed 5 years ago

timwaters commented 5 years ago

Due to: https://github.com/zhm/gdal-ruby/issues/12

We don't really use the bindings that much, instead we use the binary utilities mostly. its used in lib/misc/gdalinfo.rb to get the extents and the number of bands.

We should be able to use the -json flag to easier parse the output of gdalinfo to reproduce the functionality.

We could alternatively just regext parse out the output as it's already used here. https://github.com/timwaters/mapwarper/blob/master/app/models/map.rb#L510

timwaters commented 5 years ago

this is now in master. We shell out and parse the response.

Closing