[pygeoapi] process: raster data output
Francesco Bartoli
xbartolone at gmail.com
Fri Jan 26 13:44:49 PST 2024
Hi Martin,
as far as I can see from the specification this result example may apply to your case:
"imagesOutput": [
{
"href": "https://www.someserver.com/ogcapi/Daraa/collections/Daraa_DTED/styles/Topographic/coverage?...",
"type": "application/tiff; application=geotiff"
},
{
"value": "VBORw0KGgoAAAANSUhEUgAABvwAAAa4CAYAAABMB35kAAABhGlDQ1BJQ0MgcHJvZmlsZQAA\nKJF9kT1Iw0AcxV9TpSL1A+xQxCFDdbIgKuKoVShChVArtOpgcumH0KQhSXFxFFwLDn4sVh1c\nnHV1cBUEwQ8QNzcnRRcp8X9JoUWMB8f9eHfvcfcOEOplplkdY4Cm22Y6mRCzuRUx9IogouhH\n ... \nj3Z5mX7/PCPVRJV92rpHK24xcJrzk20+tkeYlCPqcZNO3Lpni1OJWatPCcmgGDEqx7Om6lfa\nppM4k4BTe9+bsn3L9/9/yWhA0PwQGW8ipCZsnZt9lsdrYEM8z/M8z/M8z/M8z/M8z/MzLWY1\nAAAACUlEQVQ871H6P6JI+TxS5Wn2AAAAAElFTkSuQmCC",
"encoding": "base64",
"mediaType": "application/tiff; application=geotiff"
}
],
so the `href` property could take the place of `url`.
If you want to host the geotiffs as resources under a new base location `data` there should be an extension developed on top of a cloned pygeoapi, or pygeoapi loaded and used as a library in a totally brand new python project with one of the supported and the most preferred framework for you.
It's then up to you how and where to store the actual geotiff files.
Hope this helps
Best,
Francesco
On 26 Jan 2024, 15:58 +0100, Martin Landa via pygeoapi <pygeoapi at lists.osgeo.org>, wrote:
> Dear all,
>
> I am playing around with my first OGC API process. Result of the computation is a raster file. I would like to ask what are the options to integrate the file into response? I was thinking about:
>
> {
> "id": "result",
> "url": "http://localhost:5000/data/<uuid>/result.tif"
> }
>
> I'm not sure if this is correct in terms of OGC API Processes and how to modify Docker image to expose http://localhost:5000/data/.
>
> I am running pygeoapi service from Docker image as described in [1].
>
> Thanks in advance for your help. Best regards, Martin
>
> [1] https://docs.pygeoapi.io/en/latest/running-with-docker.html
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
> _______________________________________________
> pygeoapi mailing list
> pygeoapi at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pygeoapi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pygeoapi/attachments/20240126/4f383e6b/attachment.htm>
More information about the pygeoapi
mailing list