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.
Several code chunks of the
generate_habitatmap_terrproject that convert values (type, source, description) may be made more straightforward, e.g. by not replacing via a dummy value detour; by not usingstr_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.