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

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.12 macOS 11.0+ ARM64

map2model-1.0.1-cp312-cp312-macosx_10_13_x86_64.whl (189.4 kB view details)

Uploaded CPython 3.12 macOS 10.13+ x86-64

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

map2model-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl (190.8 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

map2model-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl (189.4 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

map2model-1.0.1-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-1.0.1-cp39-cp39-macosx_11_0_arm64.whl (169.3 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

map2model-1.0.1-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-1.0.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for map2model-1.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3114eddb2c0955f544517d2766deaf98dbc5803b7b631630713a8c69603d3d26
MD5 4dca4da271a265f040440b1600959d63
BLAKE2b-256 5c3037c4ea56c04c4737778fc1de7830be12494255b25e3ab1e812ecb9a7c3b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a0da4086f41a657ef3a6fc78c0258f695e36cea13c1b1105f7c45bf9b2fbda88
MD5 b41650d0be8250f18ef4457f2733621f
BLAKE2b-256 509376a11d1e317d95191f2d6aa690ef9bef00d1478b55ead93bf41668a033f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9964bdbf00b4af5b9fab39f62adf1ae196cbb64a199c522a6f16d98f33df633
MD5 435fe3ee4a390fa53483f9c4da217b55
BLAKE2b-256 1ef89e119933c1bdcd5a3b403532c4ba537e2c8e3441220441473a3a16aae64e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f5c8625497758a52154463b1dd5187e3fff05901305357617928262fcdf303e1
MD5 135c03f80901dad1874eeacdd0d25eea
BLAKE2b-256 198bd8c8d365fbe59bfc6fe2954ce56d6d1eab184493a3271da56104104196d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 27c715b655e514d750b7c4064458e6b7eaabfe547a8a8b553f57320f316fc5df
MD5 b87719e86722cefc252c638ab5ffd2c8
BLAKE2b-256 7d311b3a5244c6c20c31030620add7f6b43493bb0122709c16c411b1074155e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9c5b3bc4fcf3b1b4992a939312223aab1945728f1ba4a3c54d82ea7a81506e7d
MD5 67b142e2a619eb0eb5d60d7cdd694180
BLAKE2b-256 9c7ec6faf55bbfe18dc14b4e8d8e22f3375a0aa98408e1cf47b7acb51c168c35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08a3b99ab347d9eac3ca5be1c91a719d9184c7d40848eda7108eab373aadae89
MD5 1d05d936310e3eceb6221851bc126972
BLAKE2b-256 a0762353f1c4cc0ed33069a3b85c7db431767f590fa1c68445a801cee5c7b9ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 708aa4223305ee40c2220a0aa5f2e6100392794d93b0bf7eaaf27dff685c0584
MD5 198ace2adea5df511d2926612a21cd41
BLAKE2b-256 603dfa82e3956dad6123bbdea372ed9316bd7f6571c9ae637b36999983576e57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 96f17f2a5a2995c861066773f43b04f2fb3da43992e0af80037fe1bf836a144d
MD5 3e14b4fa56f97e346a1002b01853ce09
BLAKE2b-256 76ee090418b92e4d0429de35d2a236f7162db72d809074839f2520ea7f781c7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a4395c3b4fb3008708c93818a316c74aa3a0cc2f34bcdc500ce5739c02ab31f
MD5 7f131336c59aebdf56758fc4281ec744
BLAKE2b-256 431cf55341226bdc1ce5052bcbb3d672017a3584e74ca45ba61e4da109ef4368

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dae270ebbe1108ed8dd07c72e9bd7a1fc823c6f7585e2d4c6012cd93206b49d5
MD5 b9c944c24105de436a3779e4a7b2ba98
BLAKE2b-256 31eb88a277b6b2759469d435b3aa1bc725184d95918c48c4dda869b557c25678

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ad979ba28e11d5fccfcf3510282ff7ad53b1773d537e06b8ed660a8af8a57c1d
MD5 eeb53bea195dce7857d9f7dceb778595
BLAKE2b-256 0d210eef150c73881d6c5e4d60f26483aa416ea07b89fc2d235f2be712491856

See more details on using hashes here.

File details

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

File metadata

  • Download URL: map2model-1.0.1-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-1.0.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e390eb44d80f33c20081549f712a6fc19721eb4d77ad547f6928a353325b3dae
MD5 14e6911d683a1f19732f794a5896cd14
BLAKE2b-256 53dbc2f0445ea86cccb17f1bf0b735d9d50555e7d9ac27351544c6da8d3e90b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2d4c689236637d2173a6589d5fdbc1cb906427108f87b4e6792830b06965d97
MD5 7757a4d5e3b05d0fee4cb925ad900a69
BLAKE2b-256 4d6eef4888bb6e364879bee3e98d38fdbfc4d68ceb77467d2beb82cbd04b10c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c65adb98b33f9d266ce04f2471821281f2555bc64b3e69013994dfbf7b5dec17
MD5 6a9cec24f651cac2ccaa5284e5425331
BLAKE2b-256 9af7a1420b4bd3278f27f00fe52a4f252db1b6db214fdb419df108c27353278e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 499e23b24b033fe400c7a7a5061cb8440e928c5c10aab4a8f83cdaacbddd96ed
MD5 9c79a6929b8178d10932f293a7f40284
BLAKE2b-256 20008e6993147f0515026b02863b8c4173003e5bc475baa470aae765c98ef521

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