avoid gdalconst deprecation warning