{ "info": { "author": "MapAction", "author_email": "github@mapaction.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: Microsoft :: Windows", "Programming Language :: Python :: 2.7" ], "description": "# MapChef\n\nMaster branch [![Build Status](https://travis-ci.org/mapaction/mapactionpy_arcmap.svg?branch=master)](https://travis-ci.org/mapaction/mapactionpy_arcmap) [![Coverage Status](https://coveralls.io/repos/github/mapaction/mapactionpy_arcmap/badge.svg?branch=pep8-and-travis)](https://coveralls.io/github/mapaction/mapactionpy_arcmap?branch=master)\n\nAdds geospatial data to an ArcMap MXD file based on a recipe from a cookbook configuration file and a product name.\n\n### Prerequisites\n\n* Python and ArcPy\n\n ```\n C:\\Python27\\ArcGIS10.6\\python.exe\n ```\n* ArcMap MapAction templates.\n* Complete data scrable using Crash Move Folder Version xx.\n\n## Packaging\n\n```python setup.py bdist_wheel```\n\n## Installing\n1) Clone\ngit clone https://github.com/mapaction/mapactionpy_arcmap/\n2) Change Directory at the command line\n ```cd mapactionpy_arcmap```\n3) Run package ```python setup.py bdist_wheel```\n4) Install\n ```\n python -m pip install jsonpickle\n python -m pip install --user -e .\n ```\n To install for use non-development purposes:\n Clone the github repo then from the root of your local clone:\n ```\n python -m pip install .\n ```\n5) If required, uninstall the ArcMap Esri Add-In.\n6) Reinstall ArcMap Esri Add-In using file here:\n https://drive.google.com/open?id=14TJCqA6rDrnu6VmRTHSLXFrDBr8FADGP\n6) Restart ArcMap and ensure the 'Map Generation Tool' is available within the MapAction toolbar.\n7) To run the 'Map Generation Tool' the following paths MUST exist:\n ``` \n \\GIS\\3_Mapping\\31_Resources\\312_Layer_files\\\n ```\n This must contain the Layer files (.lyr) which correspond with the names quoted in the mapCookbook.json file.\n\n8) Move the layerProperties.json and mapCookbook.json files from the Git repository to:\n ```\n \\GIS\\3_Mapping\\31_Resources\\31A_Automation\\\n ```\n i.e.\n ```\n \\GIS\\3_Mapping\\31_Resources\\31A_Automation\\layerProperties.json\n \\GIS\\3_Mapping\\31_Resources\\31A_Automation\\mapCookbook.json\n ```\n\n## Integration with MapAction Toolbar\n\nIn order to integrate this `MapActionPy_ArcMap` module with the MapAction Toolbar, the following steps need to be carried out:\n\n:information_source: The \"Automation\" add-in is in development in the `automation` branch at: https://github.com/mapaction/mapaction-toolbox/tree/automation):\n\n1) All layer `.lyr` files should be made available under the crash move folder at the following location:\n`\\GIS\\3_Mapping\\31_Resources\\312_Layer_files`\n2) Layer properties file [layerProperties.json](mapactionpy_arcmap/Config/layerProperties.json) copied to new directory under the crash move folder at the following location:\n`\\GIS\\3_Mapping\\31_Resources\\31A_Automation`\n3) Map cookbook file [mapCookbook.json](mapactionpy_arcmap/Config/mapCookbook.json) copied to directory under the crash move folder at the following location:\n`\\GIS\\3_Mapping\\31_Resources\\31A_Automation`\n\n\n## Configuration Files\n\n### Cookbook File\n\nThe [mapCookbook.json](mapactionpy_arcmap/Config/mapCookbook.json) file is a static configuration file which contains \"recipes\" for each map product.\n\nThis example cookbook only contains a single product: ```Country Overview```.\n```\n{\n \"recipes\": [\n {\n \"product\": \"Country Overview\",\n \"classification\": \"Core\",\n \"layers\": [\n \"mainmap-s0-pt-settlements\",\n \"mainmap-s0-pt-airports\",\n \"mainmap-s0-pt-seaports\",\n \"mainmap-s0-py-feather\",\n \"Borders - Admin 0\",\n \"mainmap-s1-ln-admin1\",\n \"mainmap-s0-ln-roads\",\n \"mainmap-s0-ln-rail\",\n \"mainmap-s0-py-waterbodies\",\n \"mainmap-s0-ln-rivers\",\n \"mainmap-s0-py-admin1\",\n \"mainmap-s0-py-affectedcountry\",\n \"mainmap-s0-py-surroundingcountries\",\n \"mainmap-s0-py-sea\",\n \"mainmap-s0-ras-dem\",\n \"mainmap-s0-ras-hillshade\",\n \"Location Map - Admin 0 Polygon\"\n ]\n }\n ]\n}\n```\n\nThe layer names in the \"```layers```\" array MUST correlate to layer files (```.lyr```) in the specified layer directory.\n\n### layerConfig File\n\nThe Layer Config file ([layerProperties.json](mapactionpy_arcmap/Config/layerProperties.json)) is a static file which defines how to add a particular layer.\n\n```\n {\n \"MapFrame\": \"Main Map\",\n \"LayerName\": \"mainmap-s0-pt-settlements\",\n \"RegExp\": \"^[a-z]{3}_stle_stl_pt_(.*?)_(.*?)_([phm][phm])(.*?).shp$\",\n \"DefinitionQuery\": \"place IN ('national_capital', 'city', 'capital')\",\n \"Display\": \"Yes\",\n \"LabelClasses\": [\n {\n \"className\": \"National Capital\",\n \"expression\": \"[name]\",\n \"SQLQuery\": \"(\\\"place\\\" = 'national_capital')\"\n },\n {\n \"className\": \"Admin 1 Capital\",\n \"expression\": \"[name]\",\n \"SQLQuery\": \"(\\\"place\\\" = 'city')\"\n }\n ]\n },\n```\n\n#### Fields \n\n| # | Field | Description |\n|---|-----------------|----------------------------------------------------------------------------------------------------------------|\n| 1 | MapFrame | Name of the Map Frame that the layer is to be added to |\n| 2 | LayerName | Name of the Layer. This must correlate with the ```layerFile.Name``` field in the ```mapCookbook.json``` file. |\n| 3 | RegExp | Regular Expression. Used when selecting files to display |\n| 4 | DefinitionQuery | Definition Query |\n| 5 | Display | Shows if set to 'Yes' |\n| 6 | LabelClasses | Details for displaying labels |\n\n## Execution\n\n### Parameters\n\n| # | Field | Description |\n|---|---------------|-----------------------------------------------------------------------|\n| 1 | --cookbook | Path to the cookbook ```mapCookbook.json``` file. |\n| 2 | --layerConfig | Path to the ```layerProperties.json``` file. |\n| 3 | --cmf | Path to the Crash Move Folder root. |\n| 4 | --template | Path to the ```MXD``` file. |\n| 5 | --product | Name of product (must correlate with a product in the cookbook file). |\n| 6 | --country | Name of country. |\n\n\n### Example\n\n```\nC:\\Python27\\ArcGIS10.6\\python.exe main.py \\\n --cookbook \"D:\\MapAction\\2019-06-25 - Automation - El Salvador\\GIS\\3_Mapping\\31_Resources\\31A_Automation\\mapCookbook.json\" \\ \n --layerConfig \"C:\\Users\\steve\\Source\\Repos\\mapactionpy_arcmap\\poc\\MapChef\\Config\\layerProperties.json\" \\\n --cmf \"D:\\MapAction\\2019-06-25 - Automation - El Salvador\" \\ \n --template \"D:\\MapAction\\2019-06-25 - Automation - El Salvador\\GIS\\3_Mapping\\32_MXD_Templates\\arcgis_10_2\\MapAction\\01 Reference mapping\\arcgis_10_2_ma000_reference_landscape_bottom_DEV.mxd\" \\\n --product \"Country Overview\" \\\n --country \"El Salvador\"\n```\n\n### Result\n\nThis ```Country Overview``` map was generated:\n\n![alt text](Images/Result.png)\n\n\n## Authors\n\n* **Steve Hurst** - [https://github.com/mapaction/mapactionpy_arcmap](https://github.com/mapaction/mapactionpy_arcmap)\n* **Steve Penson**\n\n\ntodo:\n[] enable installation via pypi.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/mapaction/mapactionpy_arcmap", "keywords": "", "license": "GPL3", "maintainer": "", "maintainer_email": "", "name": "mapactionpy-arcmap", "package_url": "https://pypi.org/project/mapactionpy-arcmap/", "platform": "", "project_url": "https://pypi.org/project/mapactionpy-arcmap/", "project_urls": { "Homepage": "http://github.com/mapaction/mapactionpy_arcmap" }, "release_url": "https://pypi.org/project/mapactionpy-arcmap/0.3.dev78/", "requires_dist": null, "requires_python": "", "summary": "Used to drive ArcMap", "version": "0.3.dev78" }, "last_serial": 5968412, "releases": { "0.2.dev12": [ { "comment_text": "", "digests": { "md5": "b8828b6b9fb358e25af579407393e00f", "sha256": "5b5905436b090e84bad87bc45dfadddecfff96e095ce041cef5fbe774d8d2773" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.2.dev12.tar.gz", "has_sig": false, "md5_digest": "b8828b6b9fb358e25af579407393e00f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11680, "upload_time": "2019-08-31T08:36:58", "url": "https://files.pythonhosted.org/packages/ee/bf/703ff8109893496b5b74a750331b3a06ee1e01b601fdc07d12b25512f920/mapactionpy_arcmap-0.2.dev12.tar.gz" } ], "0.2.dev16": [ { "comment_text": "", "digests": { "md5": "905ca8d75550ab74124c25f3944ef74b", "sha256": "93c8568cfd61da38082165f4a042eb9211b00bf52ba9e42e58f771a710fdd61e" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.2.dev16.tar.gz", "has_sig": false, "md5_digest": "905ca8d75550ab74124c25f3944ef74b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11748, "upload_time": "2019-09-03T18:03:40", "url": "https://files.pythonhosted.org/packages/9a/2f/2a1cc7818a95279e611f385e721983c68c245a46f99c8a0ccdce1f51ef48/mapactionpy_arcmap-0.2.dev16.tar.gz" } ], "0.2.dev20": [ { "comment_text": "", "digests": { "md5": "f420add8abbdff06d98bdcc696d1e3f3", "sha256": "5a27450ae623a88c3cc4d00d9bdc7c0cfcd182774fd65d06e7933a493b1c8e0f" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.2.dev20.tar.gz", "has_sig": false, "md5_digest": "f420add8abbdff06d98bdcc696d1e3f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12027, "upload_time": "2019-09-05T15:31:05", "url": "https://files.pythonhosted.org/packages/a7/d7/db7d250be0286152359ec51038911f4c39d6baf3adaba32922b85c605aa4/mapactionpy_arcmap-0.2.dev20.tar.gz" } ], "0.2.dev24": [ { "comment_text": "", "digests": { "md5": "13d4464b0906ac1474aa876254ffc812", "sha256": "d8185785001f44af998652d2d8594594e677887a1ab181cfbfb448524fdda18c" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.2.dev24.tar.gz", "has_sig": false, "md5_digest": "13d4464b0906ac1474aa876254ffc812", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12516, "upload_time": "2019-09-06T10:51:15", "url": "https://files.pythonhosted.org/packages/25/c7/6b1aef9f6056ebafcaecf213e2969e7447db30497efc8136eb3f73ca86a9/mapactionpy_arcmap-0.2.dev24.tar.gz" } ], "0.2.dev4": [ { "comment_text": "", "digests": { "md5": "eac88510841a88c9a28a02adbc8cdf93", "sha256": "765f18416621376f2f9da5b488f2d4dd74021b3afe06aa44a662174436dc9679" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.2.dev4.tar.gz", "has_sig": false, "md5_digest": "eac88510841a88c9a28a02adbc8cdf93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9909, "upload_time": "2019-08-28T20:45:49", "url": "https://files.pythonhosted.org/packages/f4/4f/ddf0d1e6ba98bb23ae397d43cd5cd0128977f93d7418b70579d1d6fed5af/mapactionpy_arcmap-0.2.dev4.tar.gz" } ], "0.2.dev6": [ { "comment_text": "", "digests": { "md5": "0c7c6a99d7a07fad347a27db7bf2335d", "sha256": "4777e130b98f5e4fcc644c7098e445d60bfa908ff131dd6eb155f88419db5680" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.2.dev6.tar.gz", "has_sig": false, "md5_digest": "0c7c6a99d7a07fad347a27db7bf2335d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10015, "upload_time": "2019-08-28T20:50:32", "url": "https://files.pythonhosted.org/packages/b3/b9/cb779312c622a30c7c9b24270cadc6307cc60cca2ebb4bb21d8fa103a96c/mapactionpy_arcmap-0.2.dev6.tar.gz" } ], "0.2.dev66": [ { "comment_text": "", "digests": { "md5": "1112fc6327a6527b76eb5accf62489de", "sha256": "2fde92c22e882581051ea805aa5d1b73bb6ae187cadb05f09ef3e9cc5a05cd45" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.2.dev66.tar.gz", "has_sig": false, "md5_digest": "1112fc6327a6527b76eb5accf62489de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11920, "upload_time": "2019-09-16T19:48:17", "url": "https://files.pythonhosted.org/packages/d7/35/dc9da6c0143c16b265ebcd192d6f5628b3692d6736fcd30b6fc00c20b5ba/mapactionpy_arcmap-0.2.dev66.tar.gz" } ], "0.2.dev68": [ { "comment_text": "", "digests": { "md5": "2fc0e92706c8ef32093e54702a0772b3", "sha256": "bfbed662486e1c10f970d4f9bc0a100208c3c2615a9d8663eeed5ef28313f0da" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.2.dev68.tar.gz", "has_sig": false, "md5_digest": "2fc0e92706c8ef32093e54702a0772b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11922, "upload_time": "2019-09-16T19:51:42", "url": "https://files.pythonhosted.org/packages/d2/c0/a33b9ba2fce36df713fc00067b91d92a8ccbea2aa37a42cd021ef6964a93/mapactionpy_arcmap-0.2.dev68.tar.gz" } ], "0.2.dev69": [ { "comment_text": "", "digests": { "md5": "f20e37220c539b7c5755f0a66c45f7e6", "sha256": "7e5d6e21c79e68b0f2f03b48d68e0b6f93f702f6c322cf78352a78698f407ac4" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.2.dev69.tar.gz", "has_sig": false, "md5_digest": "f20e37220c539b7c5755f0a66c45f7e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11917, "upload_time": "2019-09-18T18:44:46", "url": "https://files.pythonhosted.org/packages/22/b7/cede57763ab90466338199bf6cbcedf318dd6938bc72d8ee4ba6d55a705a/mapactionpy_arcmap-0.2.dev69.tar.gz" } ], "0.2.dev70": [ { "comment_text": "", "digests": { "md5": "26d17a449fcdcf6d50d0c4f23b3cb59a", "sha256": "04fe8aee7c1bf9f06901805dc9abed0706bb4f47dafeeb1d4695ee3b3a568de8" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.2.dev70.tar.gz", "has_sig": false, "md5_digest": "26d17a449fcdcf6d50d0c4f23b3cb59a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12431, "upload_time": "2019-09-20T14:06:40", "url": "https://files.pythonhosted.org/packages/13/1f/0ba075b0326bf4ac94d0ebf2d3fce761007bdf54c6ca672ab25f0f3119a7/mapactionpy_arcmap-0.2.dev70.tar.gz" } ], "0.2.dev8": [ { "comment_text": "", "digests": { "md5": "6ceb62390fee650e318c049f00280819", "sha256": "b88b7035c4b87d1c9c427bdad8ed8bf0d9b39affbc208cc8f62f0221f956cc69" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.2.dev8.tar.gz", "has_sig": false, "md5_digest": "6ceb62390fee650e318c049f00280819", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10021, "upload_time": "2019-08-30T18:24:26", "url": "https://files.pythonhosted.org/packages/21/c7/4cb5702543ae18857a836da7873dd66173b5a49a43201853049272b80baf/mapactionpy_arcmap-0.2.dev8.tar.gz" } ], "0.3.dev71": [ { "comment_text": "", "digests": { "md5": "547a32818f03c042d509ba6a50dfbf6c", "sha256": "4a69df45330c3b297e3df879c6f1daa2c64774841aae405f9c6e75e90da828af" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.3.dev71.tar.gz", "has_sig": false, "md5_digest": "547a32818f03c042d509ba6a50dfbf6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11934, "upload_time": "2019-09-21T12:07:19", "url": "https://files.pythonhosted.org/packages/bc/be/f889c1c0b4bbe061e6dba86dc43e5f09f0c00f7c3ada87b8abbb0e7e63b8/mapactionpy_arcmap-0.3.dev71.tar.gz" } ], "0.3.dev73": [ { "comment_text": "", "digests": { "md5": "518120d8b1553b68f20cdef076e91acc", "sha256": "8949b082ed69295469a0089acb9069854f98866baf29303222bbf2bc46362c48" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.3.dev73.tar.gz", "has_sig": false, "md5_digest": "518120d8b1553b68f20cdef076e91acc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12439, "upload_time": "2019-09-21T12:16:44", "url": "https://files.pythonhosted.org/packages/38/16/a3b05c98f26907ea20d70939d6860ca6d2441ea2d6807dc840f3a81e5430/mapactionpy_arcmap-0.3.dev73.tar.gz" } ], "0.3.dev74": [ { "comment_text": "", "digests": { "md5": "de0bf0efab5b2e25180c0bf1984bf76e", "sha256": "9b39ce47ab9e20cd27c797d22ead3727f6f8d27d68fddbef3617325095c7bd7b" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.3.dev74.tar.gz", "has_sig": false, "md5_digest": "de0bf0efab5b2e25180c0bf1984bf76e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12445, "upload_time": "2019-10-02T13:22:55", "url": "https://files.pythonhosted.org/packages/67/f5/43508be5dfa9f13f15082f0a353668f00b8be9b2864f1b94f3d51949dfe8/mapactionpy_arcmap-0.3.dev74.tar.gz" } ], "0.3.dev75": [ { "comment_text": "", "digests": { "md5": "5d9968da0c17b4a1162f75dc76f992a8", "sha256": "16f8408913fe71d828faf327eed3d94bf9e0b05efcad239464b707519bf17319" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.3.dev75.tar.gz", "has_sig": false, "md5_digest": "5d9968da0c17b4a1162f75dc76f992a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12443, "upload_time": "2019-10-08T11:32:40", "url": "https://files.pythonhosted.org/packages/81/1f/1fc307ae34659832ae6fe4fbb83d71aef3fa073582877e71129a16556896/mapactionpy_arcmap-0.3.dev75.tar.gz" } ], "0.3.dev76": [ { "comment_text": "", "digests": { "md5": "467e9944e3ecf1e514328e08aac7d2a0", "sha256": "13a15986525f4012c8b157c16b25c747e5b8a429b565996d4431a879f8cc6385" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.3.dev76.tar.gz", "has_sig": false, "md5_digest": "467e9944e3ecf1e514328e08aac7d2a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12436, "upload_time": "2019-10-10T13:32:30", "url": "https://files.pythonhosted.org/packages/0a/8d/523f253ebfe63dde46e0d67624395fc1a01b12a8e7dbfc3405d07198c075/mapactionpy_arcmap-0.3.dev76.tar.gz" } ], "0.3.dev77": [ { "comment_text": "", "digests": { "md5": "1683ca26988043be94095e40296bd13b", "sha256": "6059dddb06a70ee30b48274a18e67de4bdfc4f4dc017611c539cb39a1c73da4f" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.3.dev77.tar.gz", "has_sig": false, "md5_digest": "1683ca26988043be94095e40296bd13b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12441, "upload_time": "2019-10-10T18:50:35", "url": "https://files.pythonhosted.org/packages/68/83/3dcc9272e3630f140bc913cfd44c4e83b7ca614df04bec155dca24f1e945/mapactionpy_arcmap-0.3.dev77.tar.gz" } ], "0.3.dev78": [ { "comment_text": "", "digests": { "md5": "9cf1c75f0d0a37629f48541816f747bb", "sha256": "e50ce6a42eb33e3eb7741082e655128af18006583d9835c50f1267e5f8fa3422" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.3.dev78.tar.gz", "has_sig": false, "md5_digest": "9cf1c75f0d0a37629f48541816f747bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12434, "upload_time": "2019-10-13T19:08:45", "url": "https://files.pythonhosted.org/packages/3a/a5/fbf8312088e3a23044fb88d0c29b588de5d47e0a900b64f0e16dc9807c6d/mapactionpy_arcmap-0.3.dev78.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9cf1c75f0d0a37629f48541816f747bb", "sha256": "e50ce6a42eb33e3eb7741082e655128af18006583d9835c50f1267e5f8fa3422" }, "downloads": -1, "filename": "mapactionpy_arcmap-0.3.dev78.tar.gz", "has_sig": false, "md5_digest": "9cf1c75f0d0a37629f48541816f747bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12434, "upload_time": "2019-10-13T19:08:45", "url": "https://files.pythonhosted.org/packages/3a/a5/fbf8312088e3a23044fb88d0c29b588de5d47e0a900b64f0e16dc9807c6d/mapactionpy_arcmap-0.3.dev78.tar.gz" } ] }