MyNixOS website logo
Description

Simple viewer for ESRI/ArcInfo (ArcGrid) geospatial data.

A simple viewer for ESRI/ArcInfo (ArcGrid) files. Users can pan, zoom and rotate the rendered dataset.

Simple viewer of ArcGrid geospatial data written in Haskell

Synopsis

A simple viewer for ESRI/ArcInfo (ArcGrid) files. A user can pan, zoom and rotate the rendered dataset with keyboard and mouse (see Controls).

alt text

The program uses shades of red (by default) normalized by minimum and maximum value in the VAT of the curent dataset. Black colour represents lower value than the red one.

Installation

The program depends on gloss and arcgrid libraries. The easiest way is to install utulity stack and build the software from the source code.

Currently, as this:

$ git clone https://github.com/nbrk/arcgrid.git
$ git clone https://github.com/nbrk/arcgrid-viewer.git
$ cd arcgrid-viewer
$ stack install
# Usually stack will install the program binary in ~/.local/bin .
# You can add it to PATH of you want.
$ ~/.local/bin/arcgrid-viewer ../arcgrid/sample/alps_huge.asc

Usage

The program supports rendering the dataset in few color schemes (red, black and white, a spectre) in both vector and raster modes.

Usage: arcgrid-viewer [OPTION...] <file>
  -c MODE  --color=MODE  color scheme: red|bw|fancy
  -r MODE  --mode=MODE   rendering mode: vector|raster

The defaults are to render in raster with red gradient. Please keep in mind that big datasets take time and resources to parse and render!

There is some sample .asc elevation data from the Alps. It resides in arcgrid library and is located in arcgrid/sample.

Controls

The program uses gloss library for rendering and display. Therefore, the controls are:

* Quit
  - esc-key

* Move Viewport
  - arrow keys
  - left-click drag

* Zoom Viewport
  - page up/down-keys
  - control-left-click drag
  - right-click drag
  - mouse wheel

* Rotate Viewport
  - home/end-keys
  - alt-left-click drag

* Reset Viewport
  r-key

TODO

  • Optimization. The viewer is too damn slow!
  • Maybe restrict display only to a selected rectangle.
Metadata

Version

0.1.0.0

Executables (1)

  • bin/arcgrid-viewer

Platforms (75)

    Darwin
    FreeBSD 13
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd13
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd13
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows