<div dir="ltr"><div>Hi Travis:</div><div><br></div><div>1./ correct, OGC API - Coverages does not support HTTP Range request headers at the moment. This</div><div>concept was presented and discussed at last week's Cloud Native Geospatial Outreach Event.  As OGC API -</div><div>Coverages evolves, we may see a conformance class for cloud optimized coverage requests.  Having said this,</div><div>I see a use case where we could provide this capability where if an HTTP</div><div>Range request is passed to /collections/{collectionId}/coverage, this would override any OGC API - Coverages</div><div>functionality, thus kicking into "cloud optimized" mode.  Please feel free to open a pygeoapi issue on GitHub</div><div>and I can take a deeper look.<br></div><div><br></div><div>Regarding using GDAL's OGC API - Coverages support, can you retry with the following changed in your</div><div>pygeoapi provider configuration:</div><div><br></div><div>format:</div><div>   name: GTiff  # per <a href="https://docs.pygeoapi.io/en/latest/data-publishing/ogcapi-coverages.html#rasterio" target="_blank">https://docs.pygeoapi.io/en/latest/data-publishing/ogcapi-coverages.html#rasterio</a></div><div>   mimetype: image/tiff; application=geotiff</div><div><br></div><div>This then works for me when running gdalinfo OGCAPI:<a href="http://example.org/collections/foogdps-temperature" target="_blank">http://example.org/collections/foogdps-temperature</a> -oo API=COVERAGE</div><div><br></div><div><br></div><div>2./ Regarding using AWS vars, I believe this is natively supported in Rasterio proper via environment variables.</div><div><br></div><div>..Tom</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 23, 2022 at 10:29 AM Travis Kirstine <<a href="mailto:traviskirstine@gmail.com" target="_blank">traviskirstine@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi All,</div><div><br></div><div>Sorry but I'm a bit of newb to the Open API / OGC API world and have a few questions that perhaps some kind person could shed some light on.</div><div><br></div><div>I have a client who would like to leverage a swagger / open api interface to retrieve aerial imagery data in a Cloud Optimized Geotiff format using http range requests.  So my initial thought was to set up a collection with a coverage provider.  Is this possible using pygeoapi? <br></div><div></div><div>The docs at this point aren't that clear but this is what I've set in the config: <br></div><div><br></div><div>    halton_2021:<br>        type: collection<br>        title: Halton Imagery<br>        description: Example imagery<br>        keywords:<br>            - canada<br>            - ontario<br>        extents:<br>            spatial:<br>                bbox: [-80.174,43.281,-79.608,43.746]<br>                crs: <a href="http://www.opengis.net/def/crs/OGC/1.3/CRS84" target="_blank">http://www.opengis.net/def/crs/OGC/1.3/CRS84</a><br>        providers:<br>            - type: coverage<br>              name: rasterio<br>              data: tests/data/2137HALT_2m_overall_cog.tif<br>              format:<br>                  name: tif<br>                  mimetype: image/tiff; application=geotiff; profile=cloud-optimized</div><div><br></div><div>The issue I'm having is that it appears the OCGAPI coverage does not support http range requests and I'm having issues connecting to the data using GDAL OGCAPI driver. <br></div><div><br></div><div>gdalinfo OGCAPI:<a href="http://server26.foobar.com:5000/collections/halton_2021" target="_blank">http://server26.foobar.com:5000/collections/halton_2021</a> -oo API=coverage    <br></div><div>ERROR 1: API coverage requested, but not available<br></div><div><br></div><div>My second question is that eventually we would be moving this to a AWS instance in which the source COGs would be stored in s3 buckets using server side encryption AES-256.  Is it possible to use a http data source for a  coverage and can I configure the rasterio's GDAL AWS vars in the config.</div><div><br></div><div>Thanks<br></div><div> <br></div><div><br></div><div><br></div><div><br></div><div> At some point I'd be moving the application to AWS with <br></div></div>
_______________________________________________<br>
pygeoapi mailing list<br>
<a href="mailto:pygeoapi@lists.osgeo.org" target="_blank">pygeoapi@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pygeoapi" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pygeoapi</a><br>
</blockquote></div></div>