Skip to main content

python bindings for map2model

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

map2model-0.1.11-cp312-cp312-win_amd64.whl (178.8 kB view details)

Uploaded CPython 3.12 Windows x86-64

map2model-0.1.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (215.4 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

map2model-0.1.11-cp311-cp311-win_amd64.whl (178.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

map2model-0.1.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (215.6 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

map2model-0.1.11-cp310-cp310-win_amd64.whl (177.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

map2model-0.1.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (214.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

map2model-0.1.11-cp39-cp39-win_amd64.whl (177.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

map2model-0.1.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (214.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

File details

Details for the file map2model-0.1.11-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for map2model-0.1.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d4dafc26836f6811efaad7c69b29847ea4a942cb2a9da37e043732344cd67740
MD5 655d1874240a08aa5559800f4450b5d7
BLAKE2b-256 e09758c4abc267b62af0d7eead97962f73a415fecec5f7f5e08b95465093987c

See more details on using hashes here.

File details

Details for the file map2model-0.1.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for map2model-0.1.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 78d2aefa3a15af8ecc90da542b228a8ab52b0ca110ea368ff2774339ccfd0884
MD5 db0f9df2f331ecb7c3d7c92208da497f
BLAKE2b-256 793d5129f4d1773d39d02ff4580570b9afb9737fa47933c39d69567d2675a6ce

See more details on using hashes here.

File details

Details for the file map2model-0.1.11-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for map2model-0.1.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 93977bd775c77c05700941235bb90b37cf32e1ec3d9d5a9c54c196bd90844e6e
MD5 b9176d6552dc6e96fb3437528d5b6afe
BLAKE2b-256 ff14403e9715a251043bbb6aaec4b29f0a1188fc937081b93800bb3d08e7a4d0

See more details on using hashes here.

File details

Details for the file map2model-0.1.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for map2model-0.1.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9416c8f3b7c3635420fc407069ad4d1648ef8cd8703a05ad7f3b8ab94628e0c4
MD5 221fd7a2bdb7b0198294d2b2c93b4f31
BLAKE2b-256 75b700d20a75efbc107d1d93c1fc6051293a73332ab6906c878995b22e7f3b7b

See more details on using hashes here.

File details

Details for the file map2model-0.1.11-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for map2model-0.1.11-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6d544ea1df6385e2ffc73c668f1d975f943a8c9d0ce68d85f983b0ef5d112fd8
MD5 f8865f2e9b31b24246f6db52c38f66ef
BLAKE2b-256 63f2b8c40cd1fc0328e92bd87cf8a039abd1877f706b16bedde7f01b029b8b9c

See more details on using hashes here.

File details

Details for the file map2model-0.1.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for map2model-0.1.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e7b7e513bc44498e7c7215a193182a569627a0c3ca20e716d5f057f7c7e7c6b2
MD5 7b8c12c705ecf4ccb2c41f45b879c040
BLAKE2b-256 728ba967d3c56250157930c7b32fe037db75860dfd7c28608465b658618a9f34

See more details on using hashes here.

File details

Details for the file map2model-0.1.11-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: map2model-0.1.11-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 177.4 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for map2model-0.1.11-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c875a46dfe3c362da7cdeb66e3eb9f14c0a2a018982465cd413994ecd5179733
MD5 75f0323c06b1b8af0be14b3bb7e13dcd
BLAKE2b-256 edb111073d5f0ae3dbd8d7fa141285d184a8e6f5818cb57b1d7016893dc04bd8

See more details on using hashes here.

File details

Details for the file map2model-0.1.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for map2model-0.1.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bd5720cec19d6509015f47158d7c0d3f6cd4e314da9088643b4c2a31bef7a5f6
MD5 6babe4ee6b04d4552bc3dfb66775d715
BLAKE2b-256 6cd984d41d328090d5bbc575481c3d5781aba33669c5ac9e210636b3593d2d23

See more details on using hashes here.

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