Skip to content

Commit b2b5495

Browse files
committed
feedback
1 parent d028325 commit b2b5495

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

articles/azure-maps/elevation-data-services.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Once you have the raster tiles you need, you can import them in QGIS.
9393
[rio-rgbify], developed by MapBox. There are some challenges running this tool directly in
9494
Windows, so it's easier to run from WSL. Below are the steps in Ubuntu on WSL:
9595

96-
```Ubuntu
96+
```bash
9797
sudo apt get update
9898
sudo apt get upgrade
9999
sudo apt install python3-pip
@@ -247,8 +247,8 @@ PostgreSQL to return vector tiles.
247247
248248
The next step requires a PostgreSQL database with [PostGIS] extension.
249249
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 **Add Layer** -> **Add PostGIS Layers**
251+
from the **Layer** menu, then select the **New** button.
252252
253253
:::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.":::
254254
@@ -319,11 +319,6 @@ PostgreSQL to return vector tiles.
319319
# Materialize the bounds
320320
# Select the relevant geometry and clip to MVT bounds
321321
# 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':
327322
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'
328323
329324
# Run tile query SQL and return error on failure conditions
738 KB
Loading

0 commit comments

Comments
 (0)