Open roelderickx opened 3 years ago
I have tried downgrading GDAL to version 3.0.4 to no effect. I set up docker using the Dockerfile from @HSLdevcom (thanks!) but the results are still not the same as before.
An updated docker image is available in the master branch using the default ubuntu packages for GDAL. All test cases pass succesfully in this image, at least there is a reliable test environment now. The problem described in this issue is reproducible using the docker image from osgeo/gdal, using the latest version of GDAL.
FROM osgeo/gdal:ubuntu-full-3.2.2
WORKDIR /app
RUN apt-get update \
&& apt-get install -y \
libprotobuf-dev \
libxml2-utils \
osmctools \
protobuf-compiler \
python3-pip
RUN pip3 install \
--no-cache-dir \
cram \
lxml \
protobuf
# A clumsy hack to avoid errors
RUN cd /usr/lib/python3/dist-packages/osgeo \
&& ln -s ./_gdal.cpython*.so ./_gdal.so \
&& ln -s ./_gdal_array.cpython*.so ./_gdal_array.so \
&& ln -s ./_gdalconst.cpython*.so ./_gdalconst.so \
&& ln -s ./_gnm.cpython*.so ./_gnm.so \
&& ln -s ./_ogr.cpython*.so ./_ogr.so \
&& ln -s ./_osr.cpython*.so ./_osr.so
ENV PYTHONPATH=/usr/lib/python3/dist-packages/
After a system upgrade (python from version 3.9.2 to 3.9.4 and GDAL from version 3.0.4 to 3.2.2) the testcases fail. Here is an example of the first nodes before and after the upgrade:
A similar problem can be seen for the tags. However, contrary to the coordinates which are fetched as doubles the attributes are fetched as string.
This leaves a couple of open questions: