mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-04 11:53:47 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
6
data/conf/isolines/README.md
Normal file
6
data/conf/isolines/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
These regions are removed from countries-to-generate.json, because they are too large even for extra_small profile:
|
||||
```
|
||||
257829111 Aug 3 15:55 'Russia_Sakha Republic.isolines'
|
||||
164222539 Aug 3 15:45 'Russia_Krasnoyarsk Krai_North.isolines'
|
||||
```
|
||||
Other USA and Russia regions are promoted: poor -> extra_small. "poor" profile is completely useless, IMO.
|
||||
31
data/conf/isolines/add_missing_countries.py
Normal file
31
data/conf/isolines/add_missing_countries.py
Normal file
@@ -0,0 +1,31 @@
|
||||
import json
|
||||
from os import listdir
|
||||
|
||||
data = object()
|
||||
|
||||
with open('countries-to-generate.json') as f1:
|
||||
countries = set()
|
||||
|
||||
data = json.load(f1)
|
||||
tree = data['countryParams']
|
||||
for e in tree:
|
||||
countries.add(e['key'])
|
||||
|
||||
for f2 in listdir('../../borders/'):
|
||||
c = f2[:-5]
|
||||
if c not in countries:
|
||||
print(c)
|
||||
|
||||
entry = {
|
||||
"key": c,
|
||||
"value": {
|
||||
"profileName": "normal",
|
||||
"tileCoordsSubset": list(),
|
||||
"tilesAreBanned": False
|
||||
}
|
||||
}
|
||||
|
||||
tree.append(entry)
|
||||
|
||||
with open('countries-to-generate.json', "w") as f3:
|
||||
json.dump(data, f3, indent=4)
|
||||
9696
data/conf/isolines/countries-to-generate.json
Normal file
9696
data/conf/isolines/countries-to-generate.json
Normal file
File diff suppressed because it is too large
Load Diff
88
data/conf/isolines/isolines-profiles.json
Normal file
88
data/conf/isolines/isolines-profiles.json
Normal file
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"profiles": [
|
||||
{
|
||||
"key": "high",
|
||||
"value": {
|
||||
"alitudesStep": 20,
|
||||
"gaussianFilterRFactor": 1.0,
|
||||
"gaussianFilterStDev": 2.0,
|
||||
"latLonStepFactor": 1,
|
||||
"maxIsolinesLength": 500,
|
||||
"medianFilterR": 1,
|
||||
"simplificationZoom": 17
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "high_f2",
|
||||
"value": {
|
||||
"alitudesStep": 20,
|
||||
"gaussianFilterRFactor": 1.0,
|
||||
"gaussianFilterStDev": 2.0,
|
||||
"latLonStepFactor": 2,
|
||||
"maxIsolinesLength": 500,
|
||||
"medianFilterR": 1,
|
||||
"simplificationZoom": 17
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "normal",
|
||||
"value": {
|
||||
"alitudesStep": 50,
|
||||
"gaussianFilterRFactor": 1.0,
|
||||
"gaussianFilterStDev": 2.0,
|
||||
"latLonStepFactor": 1,
|
||||
"maxIsolinesLength": 500,
|
||||
"medianFilterR": 1,
|
||||
"simplificationZoom": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "small",
|
||||
"value": {
|
||||
"alitudesStep": 50,
|
||||
"gaussianFilterRFactor": 1.0,
|
||||
"gaussianFilterStDev": 2.0,
|
||||
"latLonStepFactor": 1,
|
||||
"maxIsolinesLength": 500,
|
||||
"medianFilterR": 1,
|
||||
"simplificationZoom": 14
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "extra_small",
|
||||
"value": {
|
||||
"alitudesStep": 100,
|
||||
"gaussianFilterRFactor": 1.0,
|
||||
"gaussianFilterStDev": 2.0,
|
||||
"latLonStepFactor": 1,
|
||||
"maxIsolinesLength": 500,
|
||||
"medianFilterR": 1,
|
||||
"simplificationZoom": 14
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "poor",
|
||||
"value": {
|
||||
"alitudesStep": 500,
|
||||
"gaussianFilterRFactor": 1.0,
|
||||
"gaussianFilterStDev": 2.0,
|
||||
"latLonStepFactor": 2,
|
||||
"maxIsolinesLength": 500,
|
||||
"medianFilterR": 1,
|
||||
"simplificationZoom": 14
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "extra_poor",
|
||||
"value": {
|
||||
"alitudesStep": 1000,
|
||||
"gaussianFilterRFactor": 1.0,
|
||||
"gaussianFilterStDev": 2.0,
|
||||
"latLonStepFactor": 2,
|
||||
"maxIsolinesLength": 500,
|
||||
"medianFilterR": 1,
|
||||
"simplificationZoom": 14
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user