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 Distribution

map2model-1.2.1.tar.gz (83.0 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.12 macOS 11.0+ ARM64

map2model-1.2.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.2.1-cp311-cp311-win_amd64.whl (178.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

map2model-1.2.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.2.1-cp310-cp310-win_amd64.whl (177.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

map2model-1.2.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.2.1-cp39-cp39-win_amd64.whl (177.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

map2model-1.2.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.2.1.tar.gz.

File metadata

  • Download URL: map2model-1.2.1.tar.gz
  • Upload date:
  • Size: 83.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for map2model-1.2.1.tar.gz
Algorithm Hash digest
SHA256 9b910a1ecfc38ce073e5182c383d860bcfb593bbcfd0c49427f50059456763ff
MD5 5d4d93998471a8b72a99599c14366acb
BLAKE2b-256 587d0d1d846ca79b9939bb59ccefa31df38a21f3b48b2aabb0fd565062fe83da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dd1a4ee4ed9cddf89a91b41152794c38022f1afca2ab09fa46b23e084af75184
MD5 de3d4b36b97c0c9b93fb5b8ec2a63a9f
BLAKE2b-256 5f7d516afefdacd30dd13980ef3a75f33bd198184677931502aeb282d951ebcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d741e1934506a4b348cc33fd291d80bbaa1bdca2f24b334c47e7791898d19380
MD5 15df9c68335eb1e59bd0c7d09b3c64b7
BLAKE2b-256 c5ab2b6696995897a9bbf2d179230b0115a286dd8c1f6b2f86f0b1727f196ee5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90e5723ebde8e26cb64b92ef9f5473a0682f4ce2de2fbbe023987288dc4d23f3
MD5 0c0568a51cc5b6a111a2ad9e91f2d77d
BLAKE2b-256 9c1603e1535a5f73f645d1cb7cf08946efad5e498479e579f06da5f3fb4af3e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7b7428af9136cd4a1d65d3dd9a94e6e51c55b64f7353fe9a2961639b8a3e14ba
MD5 773ef1aab065d15c72c511d78ed4c1a4
BLAKE2b-256 37e3c13cfb49f1d901673fddad95cd07f699a0086d3c7a242ab85b9741cbe65c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5690be991c277c0da6b518763f6c274851cf3d386f964d176a344c841cfece10
MD5 da8365d59475b197e745410f56d8e8e7
BLAKE2b-256 c0f5784821e8ef22c29e9e4af697a677ce5fd8cdefa93dfcf604191c7dee96b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 40a40e65cea2311bec1e8a14331ae33049c8040ae509f58136fdf3a9d1e37777
MD5 edc63bd2eeee66fd64bb728e7bff9e30
BLAKE2b-256 5198c1c3fbb12ec4b6528d574ffec494e06cd8363d78d184df008046fca07716

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ed304115368c14afa6ce8795b85b4ec7a0ddcca06177f2a11031ffff3afd0e5
MD5 b85a911270dc0ee8e5f5d5731723fc6c
BLAKE2b-256 9c078ebaf589cbd34ae403ba9e7cc0f4f8274e467f4158090113c9a8681aafce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e1dcc9e4ae826eba1c707a800a87f4a474fe6a1143343435fc051d9894579dff
MD5 33f01aef679ad00e2421269ff1e2ca7d
BLAKE2b-256 6fa1a8bbe2153b4030ecf6574fd0bee2f59c77a26a43ddd121f14cd06658b55b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 669432e12d16ad656f97d7705295e7918f1025c0de084a69de9def0194c93d2e
MD5 094982b7a3bec9ff4952ffee254ebce3
BLAKE2b-256 0fc2031e4540c51f14a20a919c456530f2d6b59f9848e484ee309fc7e43cf9cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cfc7d4eed17ddb4b8acaee086b3be5cde279061cf3d202b1ae490efe1cbcf41c
MD5 f724abbf32fb9d1dcb0f3679d2adbb4b
BLAKE2b-256 c16773087624a4c4d0d8ca45d2431e4715e502344cfbc61b31bbaf3735e30b4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 effa8e40b40cbc64b0c5f0e35fbc0c3223eb8648e49362fc8e1ec325ff80970e
MD5 1cdb321cb262697864b3ceaa5128ef40
BLAKE2b-256 b0ee68d11b03f7988745d0ee7c776ba16f2a9fdf527df305ae63502eee4229d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bb3e07d11081819df3bd35f1e97a8ea3a06f837e355ad69a2af2e0c228dc3505
MD5 6cf78e483f9bd46dddf339c23ed2643c
BLAKE2b-256 f1bc3afee178c67009fba8f6df2a64e7809fe81c9767a32832bdb6c65b1fc5bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: map2model-1.2.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.2.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c8f5e76b45ad83906524fe64f5a84ce5d46077733dc0ec83c73639863a19aa5c
MD5 a447ce1ed2769f0b3fbdcefdf8d594b9
BLAKE2b-256 73a932b490e4a99aa4e8e51de8f31c5533d965f279f91ee914906169bfcdeb68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e9e6e19ce90536f33b52754abab7f3f82da8ebc046d2c0e3524c4431dc6a14c0
MD5 f2462b5c3829233a1c931a8e437b8b77
BLAKE2b-256 89979f22a3c625ebc7e92577fb45a1a86470ef46c72ef5a46b28918c43de7f3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee0e86bf1e5f9fa96612cea4ed250f013ed10c1819367d2e03aa9a7acf230bae
MD5 af5f3864ff46703cc7cc3318664eb2a6
BLAKE2b-256 fc144dedbfffcf608fb83f90d65af5b7c3ea20f5f2361ec2df07ae45c9a467e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-1.2.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 847c01ea9557a17a498c603e0b62407b4a59ccbe60ea6be6603e96bb3e73706f
MD5 8ff3490211f7cc206d0b0accd7d34011
BLAKE2b-256 15ff97a0eea1ea89e16dc8cec980c8476468dee0d6332fb73d8fdc0e02e0e4be

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