satdump/src-core/common/map
baskiton 077437e9c3 Add configuring map/cities overlay to result rgb-composites.
Result images will be saved to a separate file with "_map" suffix instead of the main image.

Configure options:

| Name           | Type    | Default     | Description           |
|----------------|---------|-------------|-----------------------|
| map_overlay    | Boolean | `false`     | Draw countries border |
| cities_overlay | Mapped  | `NONE`      | Draw cities           |

`cities_overlay`:

| Name           | Type    | Default     | Description                                                                |
|----------------|---------|-------------|----------------------------------------------------------------------------|
| color          | Array   | `[0, 1, 0]` | RGB float-array (0.0 - 1.0)                                                |
| font_size      | Number  | `50`        | Cities font size                                                           |
| type           | String  | `capitals`  | Cities type. See below                                                     |
| scale_rank     | Number  | `3`         | **Only for `all` type**. 0-10. The more, the smaller cities will be drawn. |

Cities `type` is one of:
* `capitals` - Draw only Capitals
* `rcapitals` - Draw Capitals and Administrative centers
* `all` - Draw all cities by Scale Rank

Example:
```json
...
"map_overlay": true,
"cities_overlay": {
    "color": [0.85, 1, 0],
    "font_size": 24,
    "type": "rcapitals",
    "scale_rank": 6
}
...
```
2023-09-05 02:40:13 +07:00
..
maidenhead.c cleanup 2021-10-05 22:13:11 +02:00
maidenhead.h cleanup 2021-10-05 22:13:11 +02:00
map_drawer.cpp Add configuring map/cities overlay to result rgb-composites. 2023-09-05 02:40:13 +07:00
map_drawer.h Add configuring map/cities overlay to result rgb-composites. 2023-09-05 02:40:13 +07:00
shapefile.cpp Add a Shapefile parser and replace 10m map file with .shp instead of GeoJSON 2021-09-16 17:50:53 +02:00
shapefile.h Add a Shapefile parser and replace 10m map file with .shp instead of GeoJSON 2021-09-16 17:50:53 +02:00