geopython / pywps

PyWPS is an implementation of the Web Processing Service standard from the Open Geospatial Consortium. PyWPS is written in Python.
https://pywps.org
MIT License
178 stars 117 forks source link

Fix a namespace warning when importing gdal directly #573

Closed Zeitsperre closed 3 years ago

Zeitsperre commented 3 years ago

Overview

This is a very small fix needed to squelch a warning that shows up with GDAL:

../../miniconda3/envs/raven-dev/lib/python3.8/site-packages/osgeo/gdal.py:106
  /home/tjs/miniconda3/envs/raven-dev/lib/python3.8/site-packages/osgeo/gdal.py:106: DeprecationWarning: gdal.py was placed in a namespace, it is now available as osgeo.gdal
    warn('%s.py was placed in a namespace, it is now available as osgeo.%s' % (module,module),

Related Issue / Discussion

Additional Information

Contribution Agreement

(as per https://github.com/geopython/pywps/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

cehbrecht commented 3 years ago

@Zeitsperre Thanks 👍 Could you make this PR on the pywps 4.4 branch? https://github.com/geopython/pywps/tree/pywps-4.4