KGA Irrigation Toolsដំណើរការជាបាច់

DEM Legend Bar

បង្កើតរូបភាព PNG នៃរបារកាតាឡុកពណ៌ សម្រាប់ raster DEM។

រកឃើញនៅឯណា
Processing ▸ Toolbox ▸ KGA Toolbox ▸ KGA Irrigation Tools ▸ DEM Legend Bar
លេខសម្គាល់ algorithm
kga:dem_legend_bar
ប្រភេទឧបករណ៍
Batch algorithm

ទិដ្ឋភាពទូទៅ

Generates a hypsometric legend bar as a PNG for one or more DEM rasters — the elevation colour ramp with tick marks and labels that goes beside a map in a report or on a plan sheet.

QGIS's own legend for a continuous raster is not built for print. This writes a standalone image you place in a layout, a Word document or a drawing, at the DPI you need.

ប៉ារ៉ាម៉ែត្រ

Parameters for DEM Legend Bar
ឈ្មោះប្រភេទតម្លៃលំនាំដើមការពិពណ៌នា
DEM Raster Layer(s)Multiple raster layersOne legend bar is produced per DEM.
Color SchemeEnumfrom_qgisfrom_qgis (reuse the layer's own ramp), YlGn_r, turbo, jet, RdYlBu_r, terrain, plasma, viridis, gist_earth.
Legend DPI (150=Fast | 300=Balanced | 600=HQ)Enum150 (Fast)Also 300 (Balanced) and 600 (High Quality). Use 300 or 600 for anything that will be printed.
Output FolderFolder destinationWhere the PNGs are written.
Number of TicksInteger (3–20)7
Legend TitleStringElevation (m)
Font FamilyStringTimes New Roman
Font Tick SizeInteger (6–24)9
Font Title SizeInteger (6–24)10

របៀបប្រើ

  1. Load the DEM(s) and, if you want the map's own colours, style them first.
  2. Open KGA Irrigation Tools > DEM Legend Bar.
  3. Pick the DEMs and an output folder.
  4. Leave Color Scheme on from_qgis to match the map exactly; pick a named ramp only when you want the legend to differ from the layer.
  5. Set the Legend DPI to match the destination — 150 for screen, 300 or 600 for print.
  6. Press Run, then place the PNGs in your layout.

លទ្ធផល

  • One PNG legend bar per input DEM, in the output folder, at the chosen DPI.

កំណត់សម្គាល់ និងដែនកំណត់

  • Tick placement is auto-adaptive from the DEM's elevation range, so the labels land on round numbers rather than on the exact minimum and maximum:
    • flat terrain (range ≤ 30 m) → 5 m steps
    • hills (≤ 300 m) → 50 m steps
    • mountain → 100, 200 or 500 m steps

Number of Ticks is a target, not a guarantee: the result is clamped to between 4 and 10 ticks.

  • from_qgis reads the layer's current renderer, so restyling the DEM changes the legend — regenerate it after any styling change.
  • The font must be installed on this machine; an unavailable family falls back silently.
ត្រឡប់ទៅឯកសារណែនាំ