Giter Club home page Giter Club logo

geotrellis-gdal's Introduction

geotrellis-gdal

GDAL is a translator library for raster and vector geospatial data formats

GDAL supports reading and writing in a plethora of raster and vector formats. And, while GeoTrellis supports a few of the most popular, there's currently no plan to achieve format parity with GDAL. If you'd like to work with an esoteric format (which GDAL supports), you're in luck: geotrellis.gdal leans on GDAL to effectively extend the range of formats with which GeoTrellis can work.

NOTE: Using the geotrellis.gdal module requires a working installation of GDAL's java bindings.

Example

In the following example, we will look at the code necessary to attempt a read of an HDF5 raster band. The result of a successful reading is an tuple of the form (geotrellis.raster.Tile, geotrellis.raster.RasterExtent).

import geotrellis.gdal._

val firstBand: (Tile, RasterExtent) =
  GdalReader.read(path = "/path/to/my/file.he5", band = 1)

Note that the band parameter specifies the band to be read and turned into a tile rather than the number of bands expected.

geotrellis-gdal's People

Contributors

moradology avatar

Watchers

shoufengwei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.