Git Product home page Git Product logo

gdalutils.jl's Introduction

GDALUtils

Toying with experimental syntax for https://github.com/visr/GDAL.jl.

NOTICE

Warning: This package is succeeded by the ArchGDAL.jl package, and is now abandoned.

  | | |_| | | | (_| |  |  Version 0.4.2 (2015-12-06 21:47 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-apple-darwin13.4.0

julia> import GDALUtils; const GU = GDALUtils
GDALUtils

julia> dataset = GU.read("data/point.geojson")
GDAL Dataset (Driver: GeoJSON/GeoJSON)
File(s): data/point.geojson
Number of raster bands: 0
Number of feature layers: 1
  Layer 1: OGRGeoJSON (Point), nfeatures = 4


julia> layer = GU.fetchlayer(dataset, 0)
Layer: OGRGeoJSON (Point), nfeatures = 4
Feature Definition:
  Geometry (index 0):  (Point)
  Field    (index 0): FID (Float64)
  Field    (index 1): pointname (Cstring)


julia> feature = GU.fetchfeature(layer, 2)
Feature
FID => 0.0
pointname => a
geom => POINT


julia> GU.close(dataset)
Ptr{GDAL.GDALDatasetH} @0x0000000000000000

julia> dataset = GU.read("gdalworkshop/world.tif")
GDAL Dataset (Driver: GTiff/GeoTIFF)
File(s): gdalworkshop/world.tif
Number of raster bands: 3
  [ReadOnly] Band 1 (Red): 2048 x 1024 (UInt8)
  [ReadOnly] Band 2 (Green): 2048 x 1024 (UInt8)
  [ReadOnly] Band 3 (Blue): 2048 x 1024 (UInt8)
Number of feature layers: 0


julia> band = GU.fetchband(dataset, 1)
[ReadOnly] Band 1 (Red): 2048 x 1024 (UInt8)
    blocksize: 256x256, nodata: -1.0e10, units: 1.0px + 0.0
    overviews: 1024x512, 512x256, 256x128, 128x64, 64x32,
               32x16, 16x8,

julia> GU.close(dataset)
Ptr{GDAL.GDALDatasetH} @0x0000000000000000

gdalutils.jl's People

Contributors

yeesian avatar juliatagbot avatar

Watchers

James Cloos 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.