<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is there a statistics-cache for rasters? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/is-there-a-statistics-cache-for-rasters/m-p/1546916#M89006</link>
    <description>&lt;P&gt;We've got some COG Tif on a server online and add them as VRT to ArcGIS Pro using gdal functions. I don't have writing rights on that server via its url, only reading rights. Some of the there stored rasters don't have statistics. In that case I can add the rasters without statistics - in this case the metadata of the vrt never hold the statistics (as expected). However if I add the raster and let it calculate the statistics, the next&amp;nbsp; time adding the same data to a *NEW* project, the statistics of the same raster somehow exist - even though the COG Tif on server has none and I don't have writing rights on the server. Thus I think the statistics are also stored in a cache. Does anyone know, whether the statiics are stored in a cache? if yes, where do I find that cache? if no, how else could this behaviour be explained?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2024 11:40:36 GMT</pubDate>
    <dc:creator>nadja</dc:creator>
    <dc:date>2024-10-09T11:40:36Z</dc:date>
    <item>
      <title>Is there a statistics-cache for rasters?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/is-there-a-statistics-cache-for-rasters/m-p/1546916#M89006</link>
      <description>&lt;P&gt;We've got some COG Tif on a server online and add them as VRT to ArcGIS Pro using gdal functions. I don't have writing rights on that server via its url, only reading rights. Some of the there stored rasters don't have statistics. In that case I can add the rasters without statistics - in this case the metadata of the vrt never hold the statistics (as expected). However if I add the raster and let it calculate the statistics, the next&amp;nbsp; time adding the same data to a *NEW* project, the statistics of the same raster somehow exist - even though the COG Tif on server has none and I don't have writing rights on the server. Thus I think the statistics are also stored in a cache. Does anyone know, whether the statiics are stored in a cache? if yes, where do I find that cache? if no, how else could this behaviour be explained?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 11:40:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/is-there-a-statistics-cache-for-rasters/m-p/1546916#M89006</guid>
      <dc:creator>nadja</dc:creator>
      <dc:date>2024-10-09T11:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a statistics-cache for rasters?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/is-there-a-statistics-cache-for-rasters/m-p/1547453#M89050</link>
      <description>&lt;P&gt;GDAL can write an .aux.xml locally when accessing files from a location where the user does not have write permissions.&amp;nbsp; This auxillary metadata contains the cached stats.&lt;/P&gt;&lt;P&gt;This location is controlled by an environment variable or GDAL config option "&lt;A href="https://gdal.org/en/latest/user/configoptions.html#persistent-auxiliary-metadata-pam-options" target="_self"&gt;GDAL_PAM_PROXY_DIR&lt;/A&gt;"&lt;/P&gt;&lt;P data-unlink="true"&gt;I don't know if this actually is the way your statistics are being cached as ArcGIS may have it's own cache mechanism. Nor do I know if there's a default location in the ArcGIS environment . I can't check as I don't have ArcGIS access as I'm on leave from work currently.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;One way to check would be to see if ArcGIS sets a&amp;nbsp; GDAL_PAM_PROXY_DIR&amp;nbsp; env dir (or set the&amp;nbsp;env var&amp;nbsp; GDAL_PAM_PROXY_DIR yourself to a known directory before opening ArcGIS), then look for .aux.xml in there after calculating statistics.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 01:44:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/is-there-a-statistics-cache-for-rasters/m-p/1547453#M89050</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2024-10-10T01:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a statistics-cache for rasters?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/is-there-a-statistics-cache-for-rasters/m-p/1548615#M89155</link>
      <description>&lt;P&gt;thanks Luke, I ended up using&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gdal.SetConfigOption('GDAL_PAM_ENABLED', 'NO') &lt;/LI-CODE&gt;&lt;P&gt;which stopped the aux.xml files from being created.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 12:04:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/is-there-a-statistics-cache-for-rasters/m-p/1548615#M89155</guid>
      <dc:creator>nadja</dc:creator>
      <dc:date>2024-10-15T12:04:54Z</dc:date>
    </item>
  </channel>
</rss>

