Spaces:
Sleeping
Sleeping
Added ordnance survey app
Browse files
data/scotland_xyz.tsv
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Name URL
|
2 |
+
Ordnance Survey - Air Photos, 1944-1950 - 1:10,560 https://geo.nls.uk/maps/air-photos/{z}/{x}/{y}.png
|
3 |
+
Ordnance Survey - Six Inch Scotland, 1843-1882 - 1:10,560 https://mapseries-tilesets.s3.amazonaws.com/os/6inchfirst/{z}/{x}/{y}.png
|
4 |
+
War Office, Great Britain 1:25,000. GSGS 3906, 1940-43 https://mapseries-tilesets.s3.amazonaws.com/gsgs3906/{z}/{x}/{y}.png
|
5 |
+
Roy - Roy Highlands, 1747-1752 - 1:36000 https://mapseries-tilesets.s3.amazonaws.com/roy/highlands/{z}/{x}/{y}.png
|
6 |
+
Roy - Roy Lowlands, 1752-1755 - 1:36000 https://mapseries-tilesets.s3.amazonaws.com/roy/lowlands/{z}/{x}/{y}.png
|
7 |
+
Great Britain - OS 1:25,000, 1937-61 https://nls-0.tileserver.com/fpsUZbIoj0Oa/{z}/{x}/{y}.jpg
|
8 |
+
Great Britain - OS One Inch 7th series, 1955-61 https://nls-0.tileserver.com/fpsUZbc4ftb2/{z}/{x}/{y}.jpg
|
9 |
+
Great Britain - OS 1:10,560, 1949-1970 https://mapseries-tilesets.s3.amazonaws.com/os/britain10knatgrid/{z}/{x}/{y}.png
|
10 |
+
Great Britain - Bartholomew Half Inch, 1897-1907 https://mapseries-tilesets.s3.amazonaws.com/bartholomew_great_britain/{z}/{x}/{y}.png
|
11 |
+
OS 25 inch, 1892-1914 - Scotland South https://mapseries-tilesets.s3.amazonaws.com/25_inch/scotland_1/{z}/{x}/{y}.png
|
12 |
+
OS 25 inch, 1892-1914 - Scotland North https://mapseries-tilesets.s3.amazonaws.com/25_inch/scotland_2/{z}/{x}/{y}.png
|
13 |
+
OS 25 inch, 1892-1914 - Bedfordshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/bedfordshire/{z}/{x}/{y}.png
|
14 |
+
OS 25 inch, 1892-1914 - Berkshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/berkshire/{z}/{x}/{y}.png
|
15 |
+
OS 25 inch, 1892-1914 - Buckinghamshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/buckingham/{z}/{x}/{y}.png
|
16 |
+
OS 25 inch, 1892-1914 - Cambridgeshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/cambridge/{z}/{x}/{y}.png
|
17 |
+
OS 25 inch, 1892-1914 - Cheshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/cheshire/{z}/{x}/{y}.png
|
18 |
+
OS 25 inch, 1892-1914 - Cornwall https://mapseries-tilesets.s3.amazonaws.com/25_inch/cornwall/{z}/{x}/{y}.png
|
19 |
+
OS 25 inch, 1892-1914 - Cumberland https://mapseries-tilesets.s3.amazonaws.com/25_inch/cumberland/{z}/{x}/{y}.png
|
20 |
+
OS 25 inch, 1892-1914 - Devon https://mapseries-tilesets.s3.amazonaws.com/25_inch/devon/{z}/{x}/{y}.png
|
21 |
+
OS 25 inch, 1892-1914 - Dorset https://mapseries-tilesets.s3.amazonaws.com/25_inch/dorset/{z}/{x}/{y}.png
|
22 |
+
OS 25 inch, 1892-1914 - Durham https://mapseries-tilesets.s3.amazonaws.com/25_inch/durham/{z}/{x}/{y}.png
|
23 |
+
OS 25 inch, 1892-1914 - Essex https://mapseries-tilesets.s3.amazonaws.com/25_inch/essex/{z}/{x}/{y}.png
|
24 |
+
OS 25 inch, 1892-1914 - Gloucestershire https://mapseries-tilesets.s3.amazonaws.com/25_inch/gloucestershire/{z}/{x}/{y}.png
|
25 |
+
OS 25 inch, 1892-1914 - Hampshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/hampshire/{z}/{x}/{y}.png
|
26 |
+
OS 25 inch, 1892-1914 - Herefordshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/herefordshire/{z}/{x}/{y}.png
|
27 |
+
OS 25 inch, 1892-1914 - Hertfordshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/hertfordshire/{z}/{x}/{y}.png
|
28 |
+
OS 25 inch, 1892-1914 - Huntingdon https://mapseries-tilesets.s3.amazonaws.com/25_inch/huntingdon/{z}/{x}/{y}.png
|
29 |
+
OS 25 inch, 1892-1914 - Kent https://mapseries-tilesets.s3.amazonaws.com/25_inch/kent/{z}/{x}/{y}.png
|
30 |
+
OS 25 inch, 1892-1914 - Lancashire https://mapseries-tilesets.s3.amazonaws.com/25_inch/lancashire/{z}/{x}/{y}.png
|
31 |
+
OS 25 inch, 1892-1914 - Leicestershire https://mapseries-tilesets.s3.amazonaws.com/25_inch/leicestershire/{z}/{x}/{y}.png
|
32 |
+
OS 25 inch, 1892-1914 - Lincolnshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/lincolnshire/{z}/{x}/{y}.png
|
33 |
+
OS 25 inch, 1892-1914 - London https://mapseries-tilesets.s3.amazonaws.com/25_inch/london/{z}/{x}/{y}.png
|
34 |
+
OS 25 inch, 1892-1914 - Middlesex https://mapseries-tilesets.s3.amazonaws.com/25_inch/middlesex/{z}/{x}/{y}.png
|
35 |
+
OS 25 inch, 1892-1914 - Norfolk https://mapseries-tilesets.s3.amazonaws.com/25_inch/norfolk/{z}/{x}/{y}.png
|
36 |
+
OS 25 inch, 1892-1914 - Northamptonshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/northampton/{z}/{x}/{y}.png
|
37 |
+
OS 25 inch, 1892-1914 - Northumberland https://mapseries-tilesets.s3.amazonaws.com/25_inch/northumberland/{z}/{x}/{y}.png
|
38 |
+
OS 25 inch, 1892-1914 - Nottinghamshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/nottinghamshire/{z}/{x}/{y}.png
|
39 |
+
OS 25 inch, 1892-1914 - Oxford https://mapseries-tilesets.s3.amazonaws.com/25_inch/oxford/{z}/{x}/{y}.png
|
40 |
+
OS 25 inch, 1892-1914 - Rutland https://mapseries-tilesets.s3.amazonaws.com/25_inch/rutland/{z}/{x}/{y}.png
|
41 |
+
OS 25 inch, 1892-1914 - Shropshire / Derbyshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/Shrop_Derby/{z}/{x}/{y}.png
|
42 |
+
OS 25 inch, 1892-1914 - Somerset https://mapseries-tilesets.s3.amazonaws.com/25_inch/somerset/{z}/{x}/{y}.png
|
43 |
+
OS 25 inch, 1892-1914 - Stafford https://mapseries-tilesets.s3.amazonaws.com/25_inch/stafford/{z}/{x}/{y}.png
|
44 |
+
OS 25 inch, 1892-1914 - Suffolk https://mapseries-tilesets.s3.amazonaws.com/25_inch/suffolk/{z}/{x}/{y}.png
|
45 |
+
OS 25 inch, 1892-1914 - Surrey https://mapseries-tilesets.s3.amazonaws.com/25_inch/surrey/{z}/{x}/{y}.png
|
46 |
+
OS 25 inch, 1892-1914 - Sussex https://mapseries-tilesets.s3.amazonaws.com/25_inch/sussex/{z}/{x}/{y}.png
|
47 |
+
OS 25 inch, 1892-1914 - Wales https://mapseries-tilesets.s3.amazonaws.com/25_inch/wales/{z}/{x}/{y}.png
|
48 |
+
OS 25 inch, 1892-1914 - Warwick https://mapseries-tilesets.s3.amazonaws.com/25_inch/warwick/{z}/{x}/{y}.png
|
49 |
+
OS 25 inch, 1892-1914 - Westmorland https://mapseries-tilesets.s3.amazonaws.com/25_inch/westmorland/{z}/{x}/{y}.png
|
50 |
+
OS 25 inch, 1892-1914 - Wiltshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/wiltshire2nd/{z}/{x}/{y}.png
|
51 |
+
OS 25 inch, 1892-1914 - Worcestershire https://mapseries-tilesets.s3.amazonaws.com/25_inch/Worcestershire/{z}/{x}/{y}.png
|
52 |
+
OS 25 inch, 1892-1914 - Yorkshire https://mapseries-tilesets.s3.amazonaws.com/25_inch/yorkshire/{z}/{x}/{y}.png
|
53 |
+
OS 25 inch, 1892-1914 'Holes' (fills gaps in series) https://geo.nls.uk/mapdata3/os/25_inch_holes_england/{z}/{x}/{y}.png
|
pages/10_π§±_Ordnance_Survey.py
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import folium
|
2 |
+
import pandas as pd
|
3 |
+
import streamlit as st
|
4 |
+
import leafmap.foliumap as leafmap
|
5 |
+
import folium.plugins as plugins
|
6 |
+
|
7 |
+
st.set_page_config(layout="wide")
|
8 |
+
|
9 |
+
st.sidebar.title("About")
|
10 |
+
st.sidebar.info(
|
11 |
+
"""
|
12 |
+
Web App URL: <https://geospatial.streamlitapp.com>
|
13 |
+
GitHub repository: <https://github.com/giswqs/streamlit-geospatial>
|
14 |
+
"""
|
15 |
+
)
|
16 |
+
|
17 |
+
st.sidebar.title("Contact")
|
18 |
+
st.sidebar.info(
|
19 |
+
"""
|
20 |
+
Qiusheng Wu: <https://wetlands.io>
|
21 |
+
[GitHub](https://github.com/giswqs) | [Twitter](https://twitter.com/giswqs) | [YouTube](https://www.youtube.com/c/QiushengWu) | [LinkedIn](https://www.linkedin.com/in/qiushengwu)
|
22 |
+
"""
|
23 |
+
)
|
24 |
+
|
25 |
+
st.title("National Library of Scotland XYZ Layers")
|
26 |
+
df = pd.read_csv("data/scotland_xyz.tsv", sep="\t")
|
27 |
+
basemaps = leafmap.basemaps
|
28 |
+
names = df["Name"].values.tolist() + list(basemaps.keys())
|
29 |
+
links = df["URL"].values.tolist() + list(basemaps.values())
|
30 |
+
|
31 |
+
col1, col2, col3, col4, col5, col6 = st.columns([3, 3, 1, 1, 1, 1.5])
|
32 |
+
with col1:
|
33 |
+
left_name = st.selectbox(
|
34 |
+
"Select the left layer",
|
35 |
+
names,
|
36 |
+
index=names.index("Great Britain - OS 1:25,000, 1937-61"),
|
37 |
+
)
|
38 |
+
|
39 |
+
with col2:
|
40 |
+
right_name = st.selectbox(
|
41 |
+
"Select the right layer",
|
42 |
+
names,
|
43 |
+
index=names.index("HYBRID"),
|
44 |
+
)
|
45 |
+
|
46 |
+
with col3:
|
47 |
+
# lat = st.slider('Latitude', -90.0, 90.0, 55.68, step=0.01)
|
48 |
+
lat = st.text_input("Latitude", " 55.68")
|
49 |
+
|
50 |
+
with col4:
|
51 |
+
# lon = st.slider('Longitude', -180.0, 180.0, -2.98, step=0.01)
|
52 |
+
lon = st.text_input("Longitude", "-2.98")
|
53 |
+
|
54 |
+
with col5:
|
55 |
+
# zoom = st.slider('Zoom', 1, 24, 6, step=1)
|
56 |
+
zoom = st.text_input("Zoom", "6")
|
57 |
+
|
58 |
+
with col6:
|
59 |
+
checkbox = st.checkbox("Add OS 25 inch")
|
60 |
+
|
61 |
+
m = leafmap.Map(
|
62 |
+
center=[float(lat), float(lon)],
|
63 |
+
zoom=int(zoom),
|
64 |
+
locate_control=True,
|
65 |
+
draw_control=False,
|
66 |
+
measure_control=False,
|
67 |
+
)
|
68 |
+
measure = plugins.MeasureControl(position="bottomleft", active_color="orange")
|
69 |
+
measure.add_to(m)
|
70 |
+
|
71 |
+
if left_name in basemaps:
|
72 |
+
left_layer = basemaps[left_name]
|
73 |
+
else:
|
74 |
+
left_layer = folium.TileLayer(
|
75 |
+
tiles=links[names.index(left_name)],
|
76 |
+
name=left_name,
|
77 |
+
attr="National Library of Scotland",
|
78 |
+
overlay=True,
|
79 |
+
)
|
80 |
+
|
81 |
+
if right_name in basemaps:
|
82 |
+
right_layer = basemaps[right_name]
|
83 |
+
else:
|
84 |
+
right_layer = folium.TileLayer(
|
85 |
+
tiles=links[names.index(right_name)],
|
86 |
+
name=right_name,
|
87 |
+
attr="National Library of Scotland",
|
88 |
+
overlay=True,
|
89 |
+
)
|
90 |
+
|
91 |
+
if checkbox:
|
92 |
+
for index, name in enumerate(names):
|
93 |
+
if "OS 25 inch" in name:
|
94 |
+
m.add_tile_layer(
|
95 |
+
links[index], name, attribution="National Library of Scotland"
|
96 |
+
)
|
97 |
+
|
98 |
+
m.split_map(left_layer, right_layer)
|
99 |
+
m.to_streamlit(height=600)
|
pages/8_ποΈ_Raster_Data_Visualization.py
CHANGED
@@ -2,7 +2,6 @@ import os
|
|
2 |
import leafmap.foliumap as leafmap
|
3 |
import leafmap.colormaps as cm
|
4 |
import streamlit as st
|
5 |
-
import palettable
|
6 |
|
7 |
st.set_page_config(layout="wide")
|
8 |
|
|
|
2 |
import leafmap.foliumap as leafmap
|
3 |
import leafmap.colormaps as cm
|
4 |
import streamlit as st
|
|
|
5 |
|
6 |
st.set_page_config(layout="wide")
|
7 |
|