Commit graph

35 commits

Author SHA1 Message Date
Aang23
cdf0ff54d3 Add QTH again 2025-07-19 14:17:24 +02:00
Aang23
9fc2cc2fd6 Re-add old lat/lon grid 2025-07-18 17:01:45 +02:00
Aang23
b2e0b0911c Windows 2025-06-01 13:18:41 +02:00
Aang23
b978eb72bb A bunch more cleanup 2025-05-27 18:42:18 +01:00
Aang23
09087c6a0f Move image into satdump namespace and its own directory 2025-05-25 14:30:24 +02:00
Aang23
271457f3c9 Goodbye old system 2024-05-09 01:16:08 +02:00
Aang23
d1723efc1e Text drawing works 2024-05-08 22:37:37 +02:00
Aang23
fc3f32263d Make projections, overlay work 2024-05-08 20:17:42 +02:00
Jamie Vital
50271a7fa0 Make map overlays nearly 2x faster 2024-03-17 23:46:09 -04:00
Aang23
90d1ad63ea And another few more 2024-02-28 16:54:33 +01:00
Aang23
4438e4b062 Start testing new projs & tif saving 2024-02-24 22:38:54 +01:00
Jamie Vital
a2a73ade25 Optimize map overlay caching 2024-01-03 22:11:59 -05:00
Jamie Vital
be0080c692 Reduce map overlay colors to 8-bit 2024-01-02 19:48:25 -05:00
Aang23
599084d748 Fix stray lines on latlon 2023-10-18 14:20:08 +02:00
Aang23
e2c8a20909 Fix a stupid 2 years old bug 2023-10-17 18:34:35 +02:00
Jamie Vital
507424075d Clean up some viewer functionality 2023-10-16 11:14:21 -04:00
Aang23
720a823b38 Slightly less precise latlon grid 2023-10-15 21:46:56 +02:00
Aang23
c137d4d593 Add lat/lon grid option 2023-10-14 22:25:43 +02:00
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
baskiton
3543b54f6f Choose other cities types/size instead Capitals only, in Viewer only.
* Capital Only: Draw only Capitals
* Regional Capital Also: Draw Capitals and Administrative centers
* All (by Scale Rank): Draw all cities by Scale Rank. The higher the "Scale Rank", the smaller cities will be drawn.
2023-08-26 16:44:25 +07:00
ZbychuButItWasTaken
c5b88751c1 finnish up the font 2023-03-18 23:49:29 +01:00
Aang23
cdbbaccc27 Fix windows 2022-05-12 15:24:25 -07:00
Aang23
7c6c49b366 Goodbye projections 2022-02-26 23:30:06 +01:00
Aang23
3e6fb93ede Goodbye CImg, replace by own Image library. Thanks Zbychu for the help here and there! 2021-12-22 21:00:11 +01:00
Aang23
7fe1b1d040 Allow LEO mapping on more sats 2021-11-19 01:03:12 +01:00
Aang23
9c462aaaac Fix a shapefile drawing bug 2021-11-12 19:56:29 +01:00
Aang23
7098ba98f9 Initial forward LEO projection support 2021-11-12 19:50:05 +01:00
Aang23
84e2c9dcc5 Custom map labels 2021-11-03 16:47:52 +01:00
Aang23
cc3b868c9f Fix windows, finally 2021-10-07 16:32:44 -07:00
Aang23
45fa1ff3fb Hopefully Windows works this time 2021-10-08 00:25:37 +02:00
Aang23
ceb32b6ec4 Hopefully Windows works 2021-10-08 00:09:48 +02:00
Aang23
6ff86db594 cleanup 2021-10-05 22:13:11 +02:00
Aang23
53d1435fcd Fix a few bugs, retune projections and more 2021-09-30 17:33:32 +02:00
Aang23
372df02588 Add a Shapefile parser and replace 10m map file with .shp instead of GeoJSON 2021-09-16 17:50:53 +02:00
Aang23
3c05fdeadf Add map drawer 2021-08-23 00:52:42 +02:00