Git Product home page Git Product logo

map2model_cpp's Introduction

Author: Vitaliy Ogarko, [email protected]

To build map2model:

  • If you want to install standalone map2model with Cmake, comment out the pybind11 include in map2model.cpp and parameters_reader.cpp and parameters_reader.h, and code after the main function in map2model.cpp.

mkdir build
cd build
cmake ..
make

To run:

./map2model ../Parfile

Visualization of output

To visalize output images (.svg file) use e.g. a util 'display' (Linux), or Firefox.
To visalize output graphs (.gml files) use e.g. yEd Graph Editor (cross-platform).
In eEd program, to see a graph, choose e.g. Layout --> Organic.

Input data format convertion

To convert shape files data to WKT data in UTM coordinates, use ogr2ogr util. Run script shp2csv.sh
To convert a single point in lat/long coordinates to UTM use gdaltransform util as:
gdaltransform -s_srs EPSG:4326 -t_srs EPSG:32750
and then type the point coordinates separated by a space, and press Enter.

Outputs description

An output image 'polygons_read.svg' shows all input polygons that were read, with marked clipping window.
An output image 'polygons_clipped.svg' shows the result of clipping of the input polygons with the clipping window.
An output graph 'graph_all.gml' shows topology for units, i.e., nodes correspond to units, and edges to unit contacts.
An output graph 'graph_no_sills.gml' shows same info as 'graph_all.gml', but contacts with units of type 'sills' are excluded.

map2model_cpp's People

Contributors

yohanderose avatar markjessell avatar

Watchers

James Cloos avatar  avatar Lachlan Grose avatar Roy Thomson 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.