{"id":16504393,"url":"https://github.com/stdavis/pro-caching","last_synced_at":"2025-11-25T17:05:27.246Z","repository":{"id":145253519,"uuid":"368321346","full_name":"stdavis/pro-caching","owner":"stdavis","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-31T17:38:43.000Z","size":1756,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T18:41:25.271Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stdavis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-17T21:03:28.000Z","updated_at":"2025-03-31T17:38:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"9aac470c-0410-435f-b1d7-c05363c87bac","html_url":"https://github.com/stdavis/pro-caching","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stdavis/pro-caching","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdavis%2Fpro-caching","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdavis%2Fpro-caching/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdavis%2Fpro-caching/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdavis%2Fpro-caching/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdavis","download_url":"https://codeload.github.com/stdavis/pro-caching/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdavis%2Fpro-caching/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-25T02:00:05.816Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T15:02:29.472Z","updated_at":"2025-11-25T17:05:27.241Z","avatar_url":"https://github.com/stdavis.png","language":"Python","readme":"# Generating Traditional Raster Caches with ArcGIS Pro\n\n## Goal\n\nGenerate a traditional raster cache in the exploded format (one file per tile) using ArcGIS Pro (not ArcGIS Server).\n\n## Issues\n\n### Exploded format ✅\n\nI'm also unable to create a cache in the exploded format. This is recorded as [BUG-000136613](https://my.esri.com/#/support/bugs/BUG-000136613) which is marked as a duplicate of [BUG-000158716](https://my.esri.com/#/support/bugs/BUG-000158716).\n\nUpdate (Mar 2025): Esri support has confirmed that this bug is fixed in the upcoming v3.5 release. 👍\n\n### Unable to write JPEGs ❌\n\nI have been unable to get the `ManageTileCache` tool to write JPEGs. I have tried using the ``import_tiling_scheme` parameter to import a tiling scheme that has JPEG as the format, but it still writes PNGs. I have also tried pointing the tool at an existing cache with a tiling scheme file that has the JPEG format, but it still writes PNGs.\n\n## Steps to reproduce issues above\n\n1. `propy pro-test.py`\n1. Open `Maps.aprx`\n1. Notice that the `Format` is set to `Cache/PNG` in the properties of the `Cache/Existing/Terrain` cache.\n1. Notice that their is a bundle file in `Cache/Exploded/_alllayers/L04` and not individual image files.\n1. Run the following code in a notepad or Python window:\n\n```python\narcpy.management.ManageTileCache(\n    in_cache_location=r\"C:\\projects\\pro-caching\\Cache\",\n    manage_mode=\"RECREATE_EMPTY_TILES\",\n    in_cache_name=\"Terrain\",\n    in_datasource=\"Terrain\",\n    tiling_scheme=\"ARCGISONLINE_SCHEME\",\n    import_tiling_scheme=None,\n    scales=[18489297.737236],\n    area_of_interest=r\"C:\\projects\\pro-caching\\data.geodatabase\\main.test_extent\",\n    max_cell_size=None,\n    min_cached_scale=591657527.591555,\n    max_cached_scale=70.5310735,\n    ready_to_serve_format=\"NON_READY_TO_SERVE_FORMAT\"\n)\n```\n\nNotice that it works when run within Pro, but not in the `pro-test.py` script.\n\n## Possible Improvements\n\nIt would be nice if there was a way to generate caches directly to the exploded format. I was not able to make this happen. There does not seem to be a related parameter in the `ManageTileCache` tool and it seems to ignore the `CacheStorageInfo` setting in the `config.xml` file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdavis%2Fpro-caching","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstdavis%2Fpro-caching","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdavis%2Fpro-caching/lists"}