ssb-sgis 1.2.11__py3-none-any.whl → 1.2.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sgis/maps/examine.py +1 -5
- sgis/maps/httpserver.py +25 -13
- {ssb_sgis-1.2.11.dist-info → ssb_sgis-1.2.13.dist-info}/METADATA +1 -1
- {ssb_sgis-1.2.11.dist-info → ssb_sgis-1.2.13.dist-info}/RECORD +6 -6
- {ssb_sgis-1.2.11.dist-info → ssb_sgis-1.2.13.dist-info}/LICENSE +0 -0
- {ssb_sgis-1.2.11.dist-info → ssb_sgis-1.2.13.dist-info}/WHEEL +0 -0
sgis/maps/examine.py
CHANGED
|
@@ -99,11 +99,7 @@ class Examine:
|
|
|
99
99
|
|
|
100
100
|
m = Explore(*gdfs, column=column, **kwargs)
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
self._gdfs: dict[str, gpd.GeoDataFrame] = dict(
|
|
104
|
-
zip(m.labels, m.gdfs, strict=False)
|
|
105
|
-
)
|
|
106
|
-
|
|
102
|
+
self._gdfs = m._gdfs
|
|
107
103
|
self.rasters: dict[str, ImageCollection | Image | Band] = m.rasters
|
|
108
104
|
|
|
109
105
|
self.indices = list(range(len(self.mask_gdf)))
|
sgis/maps/httpserver.py
CHANGED
|
@@ -24,21 +24,33 @@ def run_html_server(contents: str | None = None, port: int = 3000) -> None:
|
|
|
24
24
|
if "JUPYTERHUB_SERVICE_PREFIX" in os.environ:
|
|
25
25
|
# Create a link using the https://github.com/jupyterhub/jupyter-server-proxy
|
|
26
26
|
display_address = os.environ["JUPYTERHUB_SERVICE_PREFIX"] + f"proxy/{port}/"
|
|
27
|
-
stop_address = os.environ["JUPYTERHUB_SERVICE_PREFIX"] + f"proxy/{port}/stop"
|
|
28
|
-
display_content = HTML(
|
|
29
|
-
|
|
30
|
-
<p>Click <a href='{display_address}'>here</a> to open in browser.</p>
|
|
31
|
-
<p>Click <a href='{stop_address}'>here</a> to stop.</p>
|
|
32
|
-
"""
|
|
33
|
-
)
|
|
27
|
+
# stop_address = os.environ["JUPYTERHUB_SERVICE_PREFIX"] + f"proxy/{port}/stop"
|
|
28
|
+
# display_content = HTML(
|
|
29
|
+
# f"""
|
|
30
|
+
# <p>Click <a href='{display_address}'>here</a> to open in browser.</p>
|
|
31
|
+
# <p>Click <a href='{stop_address}'>here</a> to stop.</p>
|
|
32
|
+
# """
|
|
33
|
+
# )
|
|
34
|
+
elif (
|
|
35
|
+
"VSCODE_PROXY_URI" in os.environ
|
|
36
|
+
and "{{port}}" in os.environ["VSCODE_PROXY_URI"]
|
|
37
|
+
):
|
|
38
|
+
display_address = os.environ["VSCODE_PROXY_URI"].replace("{{port}}", str(port))
|
|
34
39
|
else:
|
|
35
40
|
display_address = f"http://localhost:{port}"
|
|
36
|
-
display_content = HTML(
|
|
37
|
-
|
|
38
|
-
<p>Click <a href='http://localhost:{port}'>here</a> to open in browser.</p>
|
|
39
|
-
<p>Click <a href='http://localhost:{port}/stop'>here</a> to stop.<p>"
|
|
40
|
-
"""
|
|
41
|
-
)
|
|
41
|
+
# display_content = HTML(
|
|
42
|
+
# f"""
|
|
43
|
+
# <p>Click <a href='http://localhost:{port}'>here</a> to open in browser.</p>
|
|
44
|
+
# <p>Click <a href='http://localhost:{port}/stop'>here</a> to stop.<p>"
|
|
45
|
+
# """
|
|
46
|
+
# )
|
|
47
|
+
stop_address = f"{display_address}/stop"
|
|
48
|
+
display_content = HTML(
|
|
49
|
+
f"""
|
|
50
|
+
<p>Click <a href='{display_address}'>here</a> to open in browser.</p>
|
|
51
|
+
<p>Click <a href='{stop_address}'>here</a> to stop.</p>
|
|
52
|
+
"""
|
|
53
|
+
)
|
|
42
54
|
|
|
43
55
|
class HTTPServerRequestHandler(BaseHTTPRequestHandler):
|
|
44
56
|
"""A handler of request for the server, hosting static content."""
|
|
@@ -27,9 +27,9 @@ sgis/io/dapla_functions.py,sha256=9NqkL67WdJJHczIWNdChHZp8T5hlXhcYucX7GWN1mCA,31
|
|
|
27
27
|
sgis/io/opener.py,sha256=HWO3G1NB6bpXKM94JadCD513vjat1o1TFjWGWzyVasg,898
|
|
28
28
|
sgis/io/read_parquet.py,sha256=FvZYv1rLkUlrSaUY6QW6E1yntmntTeQuZ9ZRgCDO4IM,3776
|
|
29
29
|
sgis/maps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
-
sgis/maps/examine.py,sha256=
|
|
30
|
+
sgis/maps/examine.py,sha256=69nPtMChKmso7Yy8X--UoTWJjKmjMF1VHsdLpPKFbA0,9233
|
|
31
31
|
sgis/maps/explore.py,sha256=ANbhScthhwznLEUDDjRUBmniGmkdF9zftbzp9dYHu-U,48210
|
|
32
|
-
sgis/maps/httpserver.py,sha256=
|
|
32
|
+
sgis/maps/httpserver.py,sha256=I7tTn3hFaTCc-E-T_o9v0nXwMGaS2Xqd4MlWbq8k-J4,3014
|
|
33
33
|
sgis/maps/legend.py,sha256=qq2RkebuaNAdFztlXrDOWbN0voeK5w5VycmRKyx0NdM,26512
|
|
34
34
|
sgis/maps/map.py,sha256=07YK_oHa2z_yw_es06pd-80dV8YTI5mkTyJxyud707Y,30758
|
|
35
35
|
sgis/maps/maps.py,sha256=fLK5WUlQ2YTm7t-8260lYxCFvpZN6j0Y-bVYCyv8NAY,23249
|
|
@@ -61,7 +61,7 @@ sgis/raster/indices.py,sha256=efJmgfPg_VuSzXFosXV661IendF8CwPFWtMhyP4TMUg,222
|
|
|
61
61
|
sgis/raster/regex.py,sha256=4idTJ9vFtsGtbxcjJrx2VrpJJuDMP3bLdqF93Vc_cmY,3752
|
|
62
62
|
sgis/raster/sentinel_config.py,sha256=nySDqn2R8M6W8jguoBeSAK_zzbAsqmaI59i32446FwY,1268
|
|
63
63
|
sgis/raster/zonal.py,sha256=D4Gyptw-yOLTCO41peIuYbY-DANsJCG19xXDlf1QAz4,2299
|
|
64
|
-
ssb_sgis-1.2.
|
|
65
|
-
ssb_sgis-1.2.
|
|
66
|
-
ssb_sgis-1.2.
|
|
67
|
-
ssb_sgis-1.2.
|
|
64
|
+
ssb_sgis-1.2.13.dist-info/LICENSE,sha256=np3IfD5m0ZUofn_kVzDZqliozuiO6wrktw3LRPjyEiI,1073
|
|
65
|
+
ssb_sgis-1.2.13.dist-info/METADATA,sha256=gMENChDEpgyyDfQrbE7uPqXy1t59IHXmUMX8_ZIMt2Q,11741
|
|
66
|
+
ssb_sgis-1.2.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
67
|
+
ssb_sgis-1.2.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|