Giter Site home page Giter Site logo

srtm2ply's Introduction

srtm2ply

A simple tool to generate tiled PLY meshes from SRTM data.

Usage

Create meshes from SRTM files.

Usage:
   srtm2ply [options] <p1> <p2> [<INPUT_DIRECTORY> [<OUTPUT_DIRECTORY>]]
   
Options:
   -h --help                         Print this page.
   -v --version                      Display the application's version number.
   -o --origin=<origin>              Define the origin of the generated tiles (in WGS84 coordinates).
   -s --tile-size=wxh                Set the maximum size of tiles (in sampling points).
   -a --ascii-ply                    Generate ASCII-PLY meshes.
   -j <n>                            Generate N meshes in parallel.  [default: #CPUs]
   --srtm3                           The input directory contains SRTM data using a 90m resolution.
   
p1 and p2 denote two diagonally located corners of the bounding box of the desired mesh (using the WGS84
coordinate system), and have to be specified as WGS84 coordinates (as well as the desired origin).

The generated PLY-File will contain a mesh consisting only out of triangles. The data type for the vertex
indices in the PLY-File will be chosen according to the maximum amount of possible points in the mesh.
Thus, the -s option should be chosen accordingly to generate indices of a certain size (i.e. a tile size
of 256x256 sampling points will result in 16 bit indices).

WGS84 coordinates have to be specified using the following format (using degrees as the unit of angle):
<latitude>[N|S] [-]<longitude>[E|W] [<altitude>m], e.g. "51.48125N 0.008069W" for Greenwich.

Tile sizes should be specified as <width>x<height> in integer numbers, with 1 representing the distance between
two sampling points in the SRTM dataset (i.e. an arc second for the newest data).

srtm2ply's People

Contributors

hudrima1 avatar mfrischknecht avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.