zhm / gdal-ruby

GDAL/OGR bindings for ruby
BSD 3-Clause "New" or "Revised" License
34 stars 10 forks source link

Raster support #8

Closed migtorres closed 8 years ago

migtorres commented 8 years ago

Hi!

Thanks for the great job. I can't open raster files (tiff. Using Gdal::Ogr.open('file.tif) I got a nil value.

Does this gem support that?

Thanks

oleksii-leonov commented 8 years ago

Hi

Gdal::Ogr is only for vector files with geometries inside (ESRI shapefiles, geojson, etc.). Gdal::Gdal is only for raster files (GeoTIFF, HDF, etc.).

You should use Gdal::Gdal namespace to work with raster files.

migtorres commented 8 years ago

Great!

Thanks!