Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
vvmruder committed Jan 15, 2025
1 parent e858981 commit 1706890
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 74 deletions.
32 changes: 0 additions & 32 deletions config.yml

This file was deleted.

39 changes: 0 additions & 39 deletions dev_application.ini

This file was deleted.

2 changes: 0 additions & 2 deletions entrypoint.sh

This file was deleted.

9 changes: 8 additions & 1 deletion src/qgis_server_light/exporter/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def extract_save_layer(
username=config["username"],
)
)
del config["service"]
if decoded.get("service"):
del config["service"]
source_path = QgsProviderRegistry.instance().encodeUri(
child.providerType(), config
)
Expand All @@ -169,6 +170,8 @@ def extract_save_layer(
id=child.id(),
crs=crs,
bbox=bbox,
minimum_scale=child.minimumScale(),
maximum_scale=child.maximumScale(),
)
)
elif layer_type == "raster":
Expand Down Expand Up @@ -221,6 +224,8 @@ def extract_save_layer(
id=child.id(),
crs=crs,
bbox=bbox,
minimum_scale=child.minimumScale(),
maximum_scale=child.maximumScale(),
)
)
elif layer_type == "custom":
Expand Down Expand Up @@ -251,6 +256,8 @@ def extract_save_layer(
id=child.id(),
crs=crs,
bbox=bbox,
minimum_scale=child.minimumScale(),
maximum_scale=child.maximumScale(),
)
)
else:
Expand Down
8 changes: 8 additions & 0 deletions src/qgis_server_light/interface/qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,14 @@ class DataSet(AbstractDataset):
style: Optional[str] = field(
default=None, metadata={"name": "Style", "type": "Element", "required": True}
)
minimum_scale: float = field(
default=None,
metadata={"name": "MinimumScale", "type": "Element", "required": True},
)
maximum_scale: float = field(
default=None,
metadata={"name": "MaximumScale", "type": "Element", "required": True},
)


@dataclass
Expand Down

0 comments on commit 1706890

Please sign in to comment.