Skip to content

ESRIC: Add write (CreateCopy()) support#14362

Open
HusamMohammad wants to merge 33 commits intoOSGeo:masterfrom
HusamMohammad:esric_writer
Open

ESRIC: Add write (CreateCopy()) support#14362
HusamMohammad wants to merge 33 commits intoOSGeo:masterfrom
HusamMohammad:esric_writer

Conversation

@HusamMohammad
Copy link
Copy Markdown

@HusamMohammad HusamMohammad commented Apr 14, 2026

What does this PR do?

Added write support for the ESRIC driver through the CreateCopy() pattern. The writer only supports writing the zipped .tpkx cache with JSON metadata, not the exploded directory cache characterized by the XML metadata conf.xml.

What are related issues/pull requests?

N/A

AI tool usage

  • AI (Claude Code) supported my development of this PR. See our policy about AI tool use. Use of AI tools must be indicated.

Tasklist

  • Make sure code is correctly formatted (cf pre-commit configuration)
  • Add test case(s)
  • Add documentation
  • Updated Python API documentation (swig/include/python/docs/)
  • Review
  • Adjust for comments
  • All CI builds and checks have passed

Environment

Provide environment details, if relevant:

  • OS: Windows 11
  • Compiler: MSVC 14.44 (Visual Studio 2022 Professional)

Build a warped VRT for each LOD, encode non-empty tiles, and write them into the matching bundle writer for each bundle block
… 1 band sources to RGB before resampling.

Expand paletted 1-band sources to RGB(A) so that resampling operates on colour values instead of palette indices
Each output LOD now warps from the coarsest source overview that does not exceed the target resolution, avoiding unnecessary downsampling from full
  resolution. Uses nearest-neighbour resampling when resolutions match
Quality is applicable for JPEG only and has a default of 75. MIN_LOD  and MAX_LOD must be in the range [0, 23] and the default is 0 and 1 to match arcgis pro. Summary is a string and Tags are user comma separated tags
ArcGIS sets RGB(253, 253, 253) as the NoData for JPEG and RGBA(NoData, NoData, NoData, 0) for PNG
Since disabling deflate compression to match arcgis pro, need to also disable SOZIP
…mplicit conversions between variables and set the default TILE_FORMAT to PNG to match ArcGIS Pro
@rouault rouault added the AI assisted⚠️ AI assisted coding involved. Review with extreme scepticism. label Apr 14, 2026
@rouault
Copy link
Copy Markdown
Member

rouault commented Apr 14, 2026

CC @lucianpls
I'm personnally on diet related to AI based contributions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assisted⚠️ AI assisted coding involved. Review with extreme scepticism.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants