Closed davide-f closed 1 year ago
I investigated a bit the issue and a potential fix is in https://github.com/davide-f/earth-osm/tree/parse_nan_country_codes . However, my feeling is that this postprocessing makes things more complicated.
I think this is a feature not desirable for the main repo: the conversion may convert too much.
I believe you can use the name, country code or a mixture of them.
I have confirmed the following to be working:
earth_osm extract power --regions panama
Indeed, I've implemented that. At the beginning it sounded weird but it is the most suitable approach. Since you agree, I close this issue
When running
earth_osm view regions
, "panama" is available in central-america with flag "panama" but NaN country code. When using earth_osm using PA, it does not work. When country_code is NaN, it may be filled using country_converter, that would help a lot. I fear this may occur for other countries as well.