You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/elevation-data-services.md
+3-8Lines changed: 3 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ Once you have the raster tiles you need, you can import them in QGIS.
93
93
[rio-rgbify], developed by MapBox. There are some challenges running this tool directly in
94
94
Windows, so it's easier to run from WSL. Below are the steps in Ubuntu on WSL:
95
95
96
-
```Ubuntu
96
+
```bash
97
97
sudo apt get update
98
98
sudo apt get upgrade
99
99
sudo apt install python3-pip
@@ -247,8 +247,8 @@ PostgreSQL to return vector tiles.
247
247
248
248
The next step requires a PostgreSQL database with [PostGIS] extension.
249
249
250
-
1. To create a connection from QGIS to PostgreSQL, select **Add PostGIS Layers**
251
-
from the **Layer** menu, then select the *New** button.
250
+
1. To create a connection from QGIS to PostgreSQL, select**AddLayer** ->**Add PostGIS Layers**
251
+
from the **Layer** menu, thenselectthe**New** button.
252
252
253
253
:::image type="content" source="./media/elevation-services/create-new-postgis-connection.png" alt-text="A screenshot showing the create new PostGIG connection dialog in QGIS.":::
254
254
@@ -319,11 +319,6 @@ PostgreSQL to return vector tiles.
319
319
# Materialize the bounds
320
320
# Select the relevant geometry and clip to MVT bounds
321
321
# Convert to MVT format
322
-
# if table == 'kc_parcels':
323
-
# sql02 = 'WITH bounds AS (SELECT ' + sql01 + ' AS geom, ' + sql01 + '::box2d AS b2d), mvtgeom AS (SELECT ST_AsMVTGeom(ST_Transform(t.geom, 3857), bounds.b2d) AS geom, addr_full FROM kc_parcels t, bounds WHERE ST_Intersects(t.geom, ST_Transform(bounds.geom, 4326))) SELECT ST_AsMVT(mvtgeom.*) FROM mvtgeom'
324
-
# elif table == 'kc_school_districts':
325
-
# sql02 = 'WITH bounds AS (SELECT ' + sql01 + ' AS geom, ' + sql01 + '::box2d AS b2d), mvtgeom AS (SELECT ST_AsMVTGeom(ST_Transform(t.geom, 3857), bounds.b2d) AS geom FROM kc_school_districts t, bounds WHERE ST_Intersects(t.geom, ST_Transform(bounds.geom, 4326))) SELECT ST_AsMVT(mvtgeom.*) FROM mvtgeom'
326
-
# elif table == 'contourlines_smooth':
327
322
sql02 = 'WITH bounds AS (SELECT ' + sql01 + ' AS geom, ' + sql01 + '::box2d AS b2d), mvtgeom AS (SELECT ST_AsMVTGeom(ST_Transform(t.geom, 3857), bounds.b2d) AS geom, elev FROM contourlines_smooth t, bounds WHERE ST_Intersects(t.geom, ST_Transform(bounds.geom, 4326))) SELECT ST_AsMVT(mvtgeom.*) FROM mvtgeom'
328
323
329
324
# Run tile query SQL and return error on failure conditions
0 commit comments