Skip to content

Install numpy before GDAL #14

@GerbenJdeBoer

Description

@GerbenJdeBoer

Great docker file, it solved my GDAL installation issues. Suggestion: add
RUN pip3 install numpy
before
RUN pip3 install GDAL==3.0.4
so ReadAsAssary works in this example

driver = gdal.GetDriverByName('GTiff')
dataset = gdal.Open(file_name)
band = dataset.GetRasterBand(1)
band.ReadAsArray(i1, j1, new_cols, new_rows)

thanx to https://gis.stackexchange.com/questions/153199/import-error-no-module-named-gdal-array

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions