maps4fs 1.8.12__tar.gz → 1.8.13__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {maps4fs-1.8.12 → maps4fs-1.8.13}/PKG-INFO +1 -1
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/__init__.py +1 -0
- maps4fs-1.8.13/maps4fs/generator/dtm/canada.py +37 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs.egg-info/PKG-INFO +1 -1
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs.egg-info/SOURCES.txt +1 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/pyproject.toml +1 -1
- {maps4fs-1.8.12 → maps4fs-1.8.13}/LICENSE.md +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/README.md +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/__init__.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/background.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/component/__init__.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/component/base/__init__.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/component/base/component.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/component/base/component_xml.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/component/config.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/component/i3d.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dem.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/__init__.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/base/wcs.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/base/wms.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/bavaria.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/dtm.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/england.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/hessen.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/niedersachsen.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/nrw.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/srtm.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/usgs.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/dtm/utils.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/game.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/grle.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/map.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/qgis.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/satellite.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/settings.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/generator/texture.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/logger.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/toolbox/__init__.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/toolbox/background.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/toolbox/custom_osm.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs/toolbox/dem.py +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs.egg-info/dependency_links.txt +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs.egg-info/requires.txt +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/maps4fs.egg-info/top_level.txt +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/setup.cfg +0 -0
- {maps4fs-1.8.12 → maps4fs-1.8.13}/tests/test_generator.py +0 -0
@@ -7,6 +7,7 @@ from maps4fs.generator.dtm.bavaria import BavariaProvider
|
|
7
7
|
from maps4fs.generator.dtm.niedersachsen import NiedersachsenProvider
|
8
8
|
from maps4fs.generator.dtm.hessen import HessenProvider
|
9
9
|
from maps4fs.generator.dtm.england import England1MProvider
|
10
|
+
from maps4fs.generator.dtm.canada import CanadaProvider
|
10
11
|
from maps4fs.generator.game import Game
|
11
12
|
from maps4fs.generator.map import Map
|
12
13
|
from maps4fs.generator.settings import (
|
@@ -0,0 +1,37 @@
|
|
1
|
+
"""This module contains provider of Canada data."""
|
2
|
+
|
3
|
+
from maps4fs.generator.dtm.base.wcs import WCSProvider
|
4
|
+
from maps4fs.generator.dtm.dtm import DTMProvider
|
5
|
+
|
6
|
+
|
7
|
+
class CanadaProvider(WCSProvider, DTMProvider):
|
8
|
+
"""Provider of Canada data."""
|
9
|
+
|
10
|
+
_code = "canada"
|
11
|
+
_name = "Canada HRDEM"
|
12
|
+
_region = "CN"
|
13
|
+
_icon = "🇨🇦"
|
14
|
+
_resolution = 1
|
15
|
+
_author = "[kbrandwijk](https://github.com/kbrandwijk)"
|
16
|
+
_is_community = True
|
17
|
+
_is_base = False
|
18
|
+
_extents = (76.49491845750764, 33.66564101989275, -26.69697497450798, -157.7322455868316)
|
19
|
+
_instructions = (
|
20
|
+
"HRDEM coverage for Canada is limited. Make sure to check the "
|
21
|
+
"[coverage map](https://geo.ca/imagery/high-resolution-digital"
|
22
|
+
"-elevation-model-hrdem-canelevation-series/)."
|
23
|
+
)
|
24
|
+
|
25
|
+
_url = "https://datacube.services.geo.ca/ows/elevation"
|
26
|
+
_wcs_version = "1.1.1"
|
27
|
+
_source_crs = "EPSG:3979"
|
28
|
+
_tile_size = 1000
|
29
|
+
|
30
|
+
def get_wcs_parameters(self, tile: tuple[float, float, float, float]) -> dict:
|
31
|
+
return {
|
32
|
+
"identifier": "dtm",
|
33
|
+
"gridbasecrs": "urn:ogc:def:crs:EPSG::3979",
|
34
|
+
"boundingbox": f"{tile[1]},{tile[0]},{tile[3]},{tile[2]},urn:ogc:def:crs:EPSG::3979",
|
35
|
+
"format": "image/geotiff",
|
36
|
+
"timeout": 600,
|
37
|
+
}
|
@@ -26,6 +26,7 @@ maps4fs/generator/component/base/component.py
|
|
26
26
|
maps4fs/generator/component/base/component_xml.py
|
27
27
|
maps4fs/generator/dtm/__init__.py
|
28
28
|
maps4fs/generator/dtm/bavaria.py
|
29
|
+
maps4fs/generator/dtm/canada.py
|
29
30
|
maps4fs/generator/dtm/dtm.py
|
30
31
|
maps4fs/generator/dtm/england.py
|
31
32
|
maps4fs/generator/dtm/hessen.py
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "maps4fs"
|
7
|
-
version = "1.8.
|
7
|
+
version = "1.8.13"
|
8
8
|
description = "Generate map templates for Farming Simulator from real places."
|
9
9
|
authors = [{name = "iwatkot", email = "iwatkot@gmail.com"}]
|
10
10
|
license = {text = "MIT License"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|