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

Uploaded CPython 3.13 Windows x86-64

map2model-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (215.5 kB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.12 Windows x86-64

map2model-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (215.6 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11 Windows x86-64

map2model-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (215.7 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10 Windows x86-64

map2model-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (214.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

map2model-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (214.2 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

map2model-0.1.0-cp38-cp38-win_amd64.whl (177.2 kB view details)

Uploaded CPython 3.8 Windows x86-64

map2model-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213.9 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

File details

Details for the file map2model-0.1.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for map2model-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 743c149beeb975c31102cbea1816c3498c6ec456f9bae16288dad6910b028e90
MD5 d8adbcfb035ee49bcf2a6e78f6d32235
BLAKE2b-256 516265f92e126a414fd661348cd35b28c0a48978095ad234ed55db10b2023a60

See more details on using hashes here.

File details

Details for the file map2model-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for map2model-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65a3c434ec54db2cd59cc911c2b89ebcd647f0be24374e6ef16ac986070afde4
MD5 1fbbaa5a3f51946a71d56f87ea5eb854
BLAKE2b-256 8b99b0c75a5bac7ad454542ac19b60c9a8b1e0a5e7fee4d1394085f8ec2bfe33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 484ac148a309126aa14e8e425cab3e86b1d2a80348afba112547aff949921569
MD5 5f4ec6e28e4d32053dd6bd2b9ac96a20
BLAKE2b-256 e332065bcbd96059a5388e3d126e423dd5a96afd85490b1f5fca01b8cb45bac0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 212d91ff4a9b1025b984f303119956742d272a640528e6c4405552bcf2579ad4
MD5 9ba350376d4c299f68e4c50b2afa7346
BLAKE2b-256 d041275e6e80a319422427baa0d2f8e23ce584467105fb80973ef51c50e8b461

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4872b5b82af8ba1bb5dbfa6dfd6ec118d42c861185ce92ed47708df593991c0b
MD5 19c5ff647318c8dc87c22ef6fcfe89b5
BLAKE2b-256 ce26dd32615962f29765e6dcf2b8feeaf40cd5c226a07fae2d3227eeabe5da6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 648a29d2ff87c2993573641ac8a1eab680327f9fc0a3ccf1d765396214fa3d30
MD5 9fa7c554bb039795b6bc4432742653c2
BLAKE2b-256 2d2fa697e3991162a9bc0f18f5a2ed74b454dac9bfd7e11f5cb3d39f292e3a65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8e72e05a96b72501bda59bf70db5c4b5167784fe3a73bc94c2cb519bbff56a25
MD5 b072b289f88a6c14fec672444b7cda33
BLAKE2b-256 92bead656c421d5fde03499152d4d2ca196034536026768aabe75afe1c4e844e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2753b8b28f886c0d6a7f9c728a2f4d75f47158ffbfd6166d26664744267ff9f3
MD5 a321ee3f21ca45eac5e9c53aeccda29f
BLAKE2b-256 b3faa46343bbb05da6d4af12d80c2028ceef4e9234214ef9b5c0694325017851

See more details on using hashes here.

File details

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

File metadata

  • Download URL: map2model-0.1.0-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.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 540f4426635151fa4f439fb0360ade377cb34dc2154bb11d3f374e169db3ee54
MD5 bcafbdc8fa92685c6216fa03200b3198
BLAKE2b-256 5352ab9e02a60b1ddedbe36cdd6227303a4e41bbbabacffdd0318c55025b1db7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for map2model-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 92f09f7b4ccad818e958695e8e8192d41c42efeafc6b8925d8603140a1d88a2b
MD5 b23c3e9eedde403a49eb906457421db6
BLAKE2b-256 d4b5e47fb88eff5ac4a6284a1ca4f948069fe1dbb2f764299a23b95b122b6de7

See more details on using hashes here.

File details

Details for the file map2model-0.1.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: map2model-0.1.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 177.2 kB
  • Tags: CPython 3.8, 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.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 57e1dc18b362055d5bdde08ed61933ba10d45387ec63d528ece1b99c92957d04
MD5 d222e17eb66af373a3751241742e5251
BLAKE2b-256 227df8459cc10a6c46235a05203dfa6cf014142f4bca4a72411c350be8e43579

See more details on using hashes here.

File details

Details for the file map2model-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for map2model-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dc0a2245adb13eafcfcc3dfca165d404e3bfadf78bd711e864b9efbd1362ae15
MD5 26cdac58f4262b95cd7903d916d36a2e
BLAKE2b-256 9bb32faf87fe74aad4a6fa27d1f054129278f339c57616f9a1e44f87449376b4

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