Skip to content

Option to deal with pixels at nodata as if they were valid in gdal raster proximity #14949

Description

@VaasuDevanS

Feature description

gdal raster proximity takes nodata from the input raster into account and is not calculating and assigning distance values. -use_input_nodata option in the old api solved this issue.

Reference: https://gdal.org/en/stable/programs/gdal_proximity.html#cmdoption-gdal_proximity-use_input_nodata

As a workaround, I am setting the nodata to none using gdal raster edit, calculating the distances and then setting it back to the original nodata value.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementnot for AI loversSee https://gdal.org/en/stable/community/ai_tool_policy.html

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions