Skip to content

Commit 5c5099a

Browse files
committed
organize and basic functionality working
1 parent b66f976 commit 5c5099a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2174
-271
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ values =
2424

2525
[bumpversion:file:./docsrc/mkdocs.yml]
2626
[bumpversion:file:./docsrc/mkdocs/index.md]
27+
28+
[bumpversion:file:./arcgis/overture_to_arcgis.pyt]

README.md

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,12 @@ Utility for easily getting data from Overture into ArcGIS Pro.
1212
> make env
1313
```
1414

15-
3 - Explore - If you are more into Python, a good place to start is `jupyter lab` from the root of the project, and
16-
look in the `./notebooks` directory. If GIS is more your schtick, open the project
17-
`./arcgis/overture-to-arcgis.aprx`.
15+
3 - Try it out!
1816

19-
## Using Make - common commands
17+
``` python
18+
from arcgis_overture import get_spatially_enabled_dataframe
2019

21-
Based on the pattern provided in the
22-
[Cookiecutter Data Science template by Driven Data](https://drivendata.github.io/cookiecutter-data-science/) this
23-
template streamlines a number of commands using the `make` command pattern.
20+
extent = (-119.911,48.3852,-119.8784,48.4028)
2421

25-
- `make env` - Clone the default ArcGIS Pro Conda environment, `arcgispro-pyu3`, add all the dependencies in
26-
`environment.yml` and install the local project package using the command
27-
`python -m pip install -e ./src/src/<project_package>` so you can easily test against the package as you are
28-
developing it.
29-
30-
- `make data` - Run `./scripts/make_data.py`, which should be the data pipeline to create an output dataset.
31-
32-
- `make pytpkg` - Create a zipped achive of the Python (`*.pyt`) toolbox located in `./arcgis`. This uses the script,
33-
`./scripts/make_pyt_archive.py`, to collect the Python toolbox (`*.pyt`) along with all the supporting
34-
dependencies listed in `pyproject.toml` and `*.xml` files with the tool documentation, and put into a zipped archive
35-
ready for sharing.
36-
37-
- `make docserve` - Run live MkDocs documentation server to view documentation updates at http://127.0.0.1:8000.
38-
39-
- `make docs` - Build the documentation using MkDocs from files in `./docsrc` and save the output in `./docs`.
40-
41-
- `make test` - activates the environment created by the `make env` or `make env_clone` and runs all the tests in the
42-
`./testing` directory using PyTest.
43-
44-
## BumpVersion Cliff Notes
45-
46-
[Bump2Version](https://github.com/c4urself/bump2version) is preconfigured based on hints from
47-
[this article on Medium](https://williamhayes.medium.com/versioning-using-bumpversion-4d13c914e9b8).
48-
49-
If you want to...
50-
51-
- apply a patch, `bumpversion patch`
52-
- update version with no breaking changes (minor version update), `bumpversion minor`
53-
- update version with breaking changes (major version update), `bumpversion major`
54-
- create a release (tagged in version control - Git), `bumpversion --tag release`
55-
56-
<p><small>Project based on the <a target="_blank" href="https://github.com/knu2xs/cookiecutter-geoai">cookiecutter
57-
GeoAI project template</a>. This template, in turn, is simply an extension and light modification of the
58-
<a target="_blank" href="https://drivendata.github.io/cookiecutter-data-science/">cookiecutter data science project
59-
template</a>. #cookiecutterdatascience</small></p>
22+
df = get_spatially_enabled_dataframe('places', extent)
23+
```

arcgis/GpMessages/1727928220348400

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?><messages><msg code="0" type="2">Start Time: Wednesday, 22 October, 2025 11:29:13</msg><msg code="0" type="0">2025-10-22 11:29:14,482 | overture_to_arcgis.GetOvertureFeatures | INFO | Projecting extent to WGS84 (EPSG:4326).</msg><msg code="0" type="0">2025-10-22 11:29:14,486 | overture_to_arcgis.GetOvertureFeatures | INFO | Retrieving 'place' features for extent: (-122.97114022486309, 46.79021851479568, -122.57601443434288, 47.11923875974476).</msg><msg code="1" type="100">Traceback (most recent call last):
2+
 File "&lt;string&gt;", line 184, in execute
3+
AttributeError: module 'overture_to_arcgis.utils' has no attribute 'add_primary_category'. Did you mean: 'add_primary_category_field'?
4+
</msg><msg code="-2147467259" type="100">Failed to execute (GetOvertureFeatures).</msg><msg code="0" type="3">Failed at Wednesday, 22 October, 2025 11:30:03 (Elapsed Time: 49.52 seconds)</msg></messages>

arcgis/GpMessages/1728071260424200

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="utf-8"?><messages><msg code="0" type="2">Start Time: Wednesday, 22 October, 2025 11:31:36</msg><msg code="0" type="0">2025-10-22 11:31:37,157 | overture_to_arcgis.GetOvertureFeatures | INFO | Projecting extent to WGS84 (EPSG:4326).</msg><msg code="0" type="0">2025-10-22 11:31:37,158 | overture_to_arcgis.GetOvertureFeatures | INFO | Retrieving 'place' features for extent: (-122.97114022486309, 46.79021851479568, -122.57601443434288, 47.11923875974476).</msg><msg code="0" type="3">Succeeded at Wednesday, 22 October, 2025 11:32:29 (Elapsed Time: 52.44 seconds)</msg></messages>

arcgis/GpMessages/1736138964912300

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?><messages><msg code="0" type="2">Start Time: Wednesday, 22 October, 2025 13:46:05</msg><msg code="1" type="100">Traceback (most recent call last):
2+
 File "&lt;string&gt;", line 554, in execute
3+
AttributeError: module 'overture_to_arcgis.utils' has no attribute 'add_overture_taxonomy_code_fields'
4+
</msg><msg code="-2147467259" type="100">Failed to execute (AddOvertureTaxonomyCodeFields).</msg><msg code="0" type="3">Failed at Wednesday, 22 October, 2025 13:46:11 (Elapsed Time: 6.75 seconds)</msg></messages>

arcgis/GpMessages/1736579068563900

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="utf-8"?><messages><msg code="0" type="2">Start Time: Wednesday, 22 October, 2025 13:53:25</msg><msg code="0" type="3">Succeeded at Wednesday, 22 October, 2025 13:54:08 (Elapsed Time: 42.84 seconds)</msg></messages>

arcgis/GpMessages/1737090707516700

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="utf-8"?><messages><msg code="0" type="2">Start Time: Wednesday, 22 October, 2025 14:01:55</msg><msg code="0" type="3">Succeeded at Wednesday, 22 October, 2025 14:01:58 (Elapsed Time: 2.10 seconds)</msg></messages>

arcgis/GpMessages/1737109589346600

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="utf-8"?><messages><msg code="0" type="2">Start Time: Wednesday, 22 October, 2025 14:02:14</msg><msg code="0" type="3">Succeeded at Wednesday, 22 October, 2025 14:02:16 (Elapsed Time: 1.73 seconds)</msg></messages>

arcgis/GpMessages/1737177004169900

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="utf-8"?><messages><msg code="0" type="2">Start Time: Wednesday, 22 October, 2025 14:03:22</msg><msg code="0" type="0">2025-10-22 14:03:23,063 | overture_to_arcgis.GetOvertureFeatures | INFO | Retrieving 'place' features for extent: (-123.07692738665492, 46.717833820403314, -122.47033626714472, 47.191618353121044).</msg><msg code="0" type="3">Succeeded at Wednesday, 22 October, 2025 14:04:03 (Elapsed Time: 40.42 seconds)</msg></messages>

arcgis/GpMessages/1737345981542500

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="utf-8"?><messages><msg code="0" type="2">Start Time: Wednesday, 22 October, 2025 14:06:11</msg><msg code="0" type="3">Succeeded at Wednesday, 22 October, 2025 14:06:29 (Elapsed Time: 17.84 seconds)</msg></messages>

0 commit comments

Comments
 (0)