Skip to content

generate_habitatmap_terr: modernize / streamline string replacement logic #85

Description

@florisvdh

Several code chunks of the generate_habitatmap_terr project that convert values (type, source, description) may be made more straightforward, e.g. by not replacing via a dummy value detour; by not using str_replace_all() for a type column; by not repeating the same outcome for several incoming values. This was done in part in 2243502 (since that part needed to be extended), but similar updates can be applied to other code chunks.

Such changes should normally not affect the result itself, even though some of the changes would also better protect against errors in the code and the result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions