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.12-cp312-cp312-win_amd64.whl (178.8 kB view details)

Uploaded CPython 3.12 Windows x86-64

map2model-0.1.12-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.12-cp312-cp312-macosx_11_0_arm64.whl (169.3 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

map2model-0.1.12-cp312-cp312-macosx_10_13_x86_64.whl (189.5 kB view details)

Uploaded CPython 3.12 macOS 10.13+ x86-64

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

Uploaded CPython 3.11 Windows x86-64

map2model-0.1.12-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.12-cp311-cp311-macosx_11_0_arm64.whl (170.8 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

map2model-0.1.12-cp311-cp311-macosx_10_9_x86_64.whl (190.9 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

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

Uploaded CPython 3.10 Windows x86-64

map2model-0.1.12-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.12-cp310-cp310-macosx_11_0_arm64.whl (169.2 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

map2model-0.1.12-cp310-cp310-macosx_10_9_x86_64.whl (189.5 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

map2model-0.1.12-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

map2model-0.1.12-cp39-cp39-macosx_11_0_arm64.whl (169.3 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

map2model-0.1.12-cp39-cp39-macosx_10_9_x86_64.whl (189.5 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for map2model-0.1.12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 849d4d6c5d84e7133e56a3ac79ffee3948e2d6d9ed1a273738783991b76ba3df
MD5 b9fd9cc1cc5d461bb8a057a413c69216
BLAKE2b-256 337386e4fb73cd92f39c664829e8af10f985040f8d401d58dd7b559a09a1924e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6f65d77e3d532b67c7a5537beb288a9758dd0698fa57d9dff4acf3bdb7ee620d
MD5 2b93add6d6da06f56357703d0c86c245
BLAKE2b-256 3547e8b27539e6a5dad991bce73677d5b39da2868135f5c60dfcb0d78639dc1e

See more details on using hashes here.

File details

Details for the file map2model-0.1.12-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for map2model-0.1.12-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed3ed009a809746056d3faef34c946f27aad04f7db52650b0e11d9ae035b4455
MD5 8775a17773df6c591070e75eac8e6e08
BLAKE2b-256 41e010f1952052fe4725ecaf81edfe27e0c42e7496d0d95334b9f5b466ec7c72

See more details on using hashes here.

File details

Details for the file map2model-0.1.12-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for map2model-0.1.12-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 4d1c78481ee93fc411e00910604fefa37018b3f39de2e4663fd4340bb0818a12
MD5 8eb1c59d93b039c826c0748932271b19
BLAKE2b-256 a8928f0941d335d5acff9213a77facf612cbc8eafcabca90fb535210dddf7941

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.12-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e3757aeac93b564bcca8a949044aa0d9e59731034bae06498379077fae9a7a73
MD5 8c14aa0323620ba2c16031b25517682c
BLAKE2b-256 2dfd7af65d1bd85ce2cb3af7de13492e21640ddafd5bae6a06fcf3e67210c251

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a8343204579f171662fe60a2b2d12f413931fbfaa63e2211f13ccf79c788df3e
MD5 997eeff6fec84b4a7f20fd9275b1a2c7
BLAKE2b-256 d7194f974297f46e07321d329fcbdbb70f867b9eca081153bebd6963eb0033f8

See more details on using hashes here.

File details

Details for the file map2model-0.1.12-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for map2model-0.1.12-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3e78371dae0e9d7d87cf7ab6149f0cf7ad75cf53f33bdfd21b989fc839875f5
MD5 c835f6be5f9034af49158516cb1ca3fd
BLAKE2b-256 03c9fb197b12b073b28583746fd4a7d0356c1b8a1775e6f6703ac59057eb473f

See more details on using hashes here.

File details

Details for the file map2model-0.1.12-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for map2model-0.1.12-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ec003a5b16f229aaefe7560525f8bb60252ea4252051ce22fbbf69ab5177be1c
MD5 4ba11d27d0c42c140aeb5c0aa749c889
BLAKE2b-256 9e4b69137e7b8b3ce1522ada851e891f612690fe59a9c5a1a9717f661e0c548b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.12-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7ad76b77b451181dda45a784ba2e60dc3f0d9d15c94907159f66e6295aa3f06c
MD5 08cd6157b227b8cbf9bf22c84e7574ff
BLAKE2b-256 3c28b0d164c5c2f9dbf5e1aa299866c56b7421e0583a59db39aaddfc6091be65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ae85d2bb00d797ec8bff85c49b01c91b51c3ad93120104a4f8a7ff7768270887
MD5 7d22e9b256d890c7c9d3c876b73a8d8c
BLAKE2b-256 6cd7b165d8cb2494822d3a2c8145bf423234d68694027707dc276677d225b074

See more details on using hashes here.

File details

Details for the file map2model-0.1.12-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for map2model-0.1.12-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b722c4c1550f1dc9beede3dd0cdeeaf4ec8c2b9b33732957ca6f511c64bd15b7
MD5 34aff4ccdf80e5e346ac9e16ae0ed776
BLAKE2b-256 77320f77604815350cdffc4ca102ed78870982506864142f2206f9d8ee443281

See more details on using hashes here.

File details

Details for the file map2model-0.1.12-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for map2model-0.1.12-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e77b7266dcf0eb22d5d543e2dc0ee170376de3f34ba4108dc7ff05770e11ccde
MD5 116f1d2e8901076f08a95d39444be2a5
BLAKE2b-256 f6aacdaf36143c3928b75c7932a5bfa472e3f2a67851b4ed006c1845942e2f95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: map2model-0.1.12-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.12-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6683296bccb3a9a9d316e2cf7871e76fbf8f60d3ed8695cede6ee3548b5e8c24
MD5 6fcc6a55bca7552dc3216d15d207d579
BLAKE2b-256 4ce1df8802e4a12da52d71ddf8f345ada819aca71922c8e699ac84bbfe7f0b8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b17dab25713570f2a586e59a95278405646869a8007de91677b50a06a9cc1da3
MD5 9f9454db96b408d2dbc7c69b2691d016
BLAKE2b-256 7a0d34f42bcffbd0b412fb8d7a07de84f20b6f638944a95da8296d6cd7835514

See more details on using hashes here.

File details

Details for the file map2model-0.1.12-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for map2model-0.1.12-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9cc631b9bdde33a9ff10268bbca838543fa4ac08c16b952533911f8673eda07c
MD5 447bb218ece79921559c6d6e7f4b6d47
BLAKE2b-256 0b6c0768d6241e728fa05f86c5ab5213f9d90cbd98cc0f8c83e553c354cf7885

See more details on using hashes here.

File details

Details for the file map2model-0.1.12-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for map2model-0.1.12-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1dbaec125465b2bb2aa1ee084a6988391d07e82e2abab6731ca0ffcef00a4aac
MD5 91287fc3e00e6179df4d2a61ce27531c
BLAKE2b-256 6d1c368fbf4191e660d51aa8bf3bddcfca181c5a13976c56ddfe929dbc36b77f

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