[Pywps-dev] gdal in docker

Adam Laža ad.laza32 at gmail.com
Sun Nov 26 10:44:57 PST 2017


Hello everyone,

finally I've found the problem. It's necessary to compile GDAL with xerces,
expat and geos. For geos and expat there are alpine packages, xerces has to
be installed manually.
Updated Dockerfile is attached. Probably there is a smoother way how to
have pywps-demo docker with GDAL but at least this one works.

Cheers,
Adam

2017-11-25 23:40 GMT+01:00 Adam Laža <ad.laza32 at gmail.com>:

> Hello Jorge,
>
> thanks for the link it was really helpful. I edited my Dockerfile (in
> attachment) and after build it looks that GDAL is installed (inside running
> docker I tried to run gdalinfo command and import gdal module in python
> console and both looked ok).
> However when I run demo process buffer I get
>
> <ows:ExceptionText>Input data not valid using mode 2</ows:ExceptionText>
>
> in response and in demo.py output:
>
>  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
> ERROR 1: Unable to create Xerces C++ or Expat based GML reader, Xerces or
> Expat support not configured into GDAL/OGR.
> ERROR 1: File /tmp/pywps_process_3z1kdw9t/tmpgpw33gki appears to be GML
> but the GML reader can't
> be instantiated, likely because Xerces or Expat support was
> not configured in.
> 172.17.0.1 - - [25/Nov/2017 22:33:27] "POST /wps HTTP/1.1" 400 -
>
> The same proccess on my locally installed pywps instance ends successfuly
> so I suppose I forgot to add something to dockerfile.
>
> Any idea what I'm missing? Thanks.
>
> Adam
>
> 2017-11-21 8:43 GMT+01:00 jorge.dejesus <jorge.dejesus at geocat.net>:
>
>> Hi Adam
>>
>> Actually you have a good point, the docker images have no install for
>> GDAL. I will try to update  the dockerfile in the following days (bit
>> pressed with work).
>>
>> For GDAL I normally install in server I normally follow the things from
>> Geographica
>>
>>
>> https://github.com/GeographicaGS/Docker-GDAL2/tree/master/2.2.2
>>
>> https://github.com/GeographicaGS/Docker-GDAL2/blob/master/2.
>> 2.2/Dockerfile
>>
>> These dockersfile are for ubuntu and python3 so therefore they will
>> properly work with pywps4-flask
>>
>> Jorge
>>
>>
>> On 20-11-17 22:36, Adam Laža wrote:
>>
>> Hi devs,
>>
>> I'm using pywps-flask docker image but when I tried to run demo processes
>> which need gdal I got this exception:
>>
>> <ows:ExceptionText>Complex validation requires GDAL/OGR
>> support</ows:ExceptionText>
>>
>> I wanted to edit dockerfile so there will be gdal installed but I wasn't
>> really successful. I tried different ways to install gdal with apk and pip
>> but none of them succeeded.
>>
>> Does anybody use pywps in docker with gdal installed (and with Dockerfile
>> using alpine)?
>>
>> Thanks in advance.
>> Adam
>>
>>
>> _______________________________________________
>> pywps-dev mailing listpywps-dev at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/pywps-dev
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20171126/a5e77e85/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dockerfile
Type: application/octet-stream
Size: 1658 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20171126/a5e77e85/attachment.obj>


More information about the pywps-dev mailing list