@@ -5,8 +5,8 @@ provides free high-resolution LIDAR-derived elevation data covering the entire P
55through its [ Collaborative Data Distribution (CDD)] ( https://cdd.dgterritorio.gov.pt/ ) portal.
66GMT.jl provides two functions for working with this dataset:
77
8- - ** ` dgt_lidar ` ** — authenticates against the DGT portal and downloads all tiles intersecting a bounding box.
9- - ** ` dgt_mosaic ` ** — assembles downloaded tiles into a single, clipped GeoTIFF.
8+ - {{< gmtref dgt_lidar >}} — authenticates against the DGT portal and downloads all tiles intersecting a bounding box.
9+ - {{< gmtref dgt_mosaic >}} — assembles downloaded tiles into a single, clipped GeoTIFF.
1010
1111Five collections are available:
1212
@@ -53,7 +53,7 @@ You can also create or edit the file directly with any text editor.
5353
5454### Load the extension
5555
56- ` dgt_lidar ` lives in the ` GMTDGTLidarExt ` package extension, activated automatically when ` HTTP ` is loaded:
56+ {{< gmtref dgt_lidar >}} lives in the ` GMTDGTLidarExt ` package extension, activated automatically when ` HTTP ` is loaded:
5757
5858``` {julia}
5959using GMT, HTTP
@@ -408,6 +408,22 @@ dgt_lidar([-8.995, -8.968, 38.473, 38.486]; collection="LAZ", output_dir="_arrab
408408pc = lasread(joinpath(homedir(), ".gmt/DGT/arrabida_laz/LAZ/LO-148174-06-2024.laz"))
409409```
410410
411+ And we can make a little detour and drape a Bing aereal image fetch with mosaic on top of the DEM:
412+
413+ ``` {julia}
414+ #| eval: false
415+ # Get the DEM as a grid in memory, reprojected to geographic coordinates
416+ G = dgt_lidar([-8.995, -8.968, 38.473, 38.486]; output_dir = "_arrabida", mosaic="grid", proj="geog");
417+
418+ # Use its limits to fetch a Bing image of the same area. We use a zoom=16 to get a approximate resolution to G
419+ I = mosaic(G, zoom=16);
420+
421+ # Visualize the draped result
422+ viz(G, drape=I, view=(155,35), zsize=3)
423+ ```
424+
425+ ![ ] ( /assets/portinho_draped.png ) {width="700" .center}
426+
411427
412428## Large Areas — Automatic Subdivision
413429
0 commit comments