Skip to main content

Perform topological analysis on 2D map data.

Project description

Author: Vitaliy Ogarko, vogarko@gmail.com

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

map2model-loop3d-1.0.0.tar.gz (685.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page