Esri / raster-tiles-compactcache

Compact Cache V2 is used by ArcGIS to store raster tiles. The bundle file structure is very simple and optimized for quick access, resulting in improved performance over alternative formats.
Apache License 2.0
60 stars 27 forks source link

Where to get the real coordinate of the upper left corner #9

Closed RawenW closed 1 year ago

RawenW commented 1 year ago

Hello, first of all, a very nice summary of working with ESRI Imagery Compact Cache V2. It was very usefull. But I don't understand only one thing. How do I determine the top left corner for each level. It is clear to me that all levels will have the same upper left corner that specifies the 0x0 position of tile, but where do I get this coordinate? I expected it to be a TileOrigin (in newest definitions know as tileInfo.origin), but from what I understand it only applies if it's a whole world map. If it is a .tpkx of only part of the world, then this value is useless because it causes displacement. Based on what the upper left corner should be determined for individual bundles (tiles)? If I try to import .tpkx file into a WPF application that uses the ArcGIS Runtime SDK, no displacement will occur. So I wonder where this information about the upper left corner is hidden. 🤔

RawenW commented 1 year ago

Sorry, my mistake, I didn't realize that the map doesn't display at maximum size in the ArcGIS Runtime SDK.