KGA Data Conversionដំណើរការជាបាច់

Export Layers to KML

សរសេរស្រទាប់ចំណុច បន្ទាត់ និង polygon ទៅជា KML ឬ KMZ សម្រាប់ Google Earth។ ពណ៌ ស្លាក និងតារាងគុណលក្ខណៈត្រូវបានយកទៅជាមួយ ហើយ CRS ទាំងអស់ត្រូវបម្លែងទៅ WGS 84។

រកឃើញនៅឯណា
Processing ▸ Toolbox ▸ KGA Toolbox ▸ KGA Data Conversion ▸ Export Layers to KML
លេខសម្គាល់ algorithm
kga:export_layers_to_kml
ប្រភេទឧបករណ៍
Batch algorithm

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

The reason this exists rather than Save Features As… KML: rotated labels. Plain KML always draws text horizontally. This tool can render each label as a transparent PNG laid on the ground and turned to match the line, so a canal name reads along the canal the way it does on the map.

Two ways to label

Placemark labelsRotated ground overlays
Drawn asKML textTransparent PNG on the ground
AngleAlways horizontalTurned to match the line
SizeConstant on screenFixed on the ground, in metres
File.kml.kmz — the images ride inside
Applies toEverythingLines; points and polygons still get placemarks

Placemark labels are the safe choice and always legible. Reach for rotated overlays when the text has to read along a canal, a road or a parcel boundary.

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

Parameters for Export Layers to KML
ឈ្មោះប្រភេទតម្លៃលំនាំដើមការពិពណ៌នា
Input LayersMultiple vector layers (any geometry)
Export Selected Features OnlyBooleanFalse
Export ModeEnumOne file per layerOne file per layer names each file after its layer. Single combined file puts every layer in one file, one folder each — what you want when the whole lot is going to somebody as an attachment.
Combined File NameString, optionalCombined_ExportUsed by the combined mode.
Carry Layer Labels AcrossBooleanTrue
Label StyleEnumPlacemark labels — horizontal, constant screen size (.kml)Or Rotated ground overlays along lines (.kmz).
Placemark Labels · Text ScaleNumber (0.0–10.0)1.0Placemark mode only.
Rotated Labels · Text Height on Ground (m)Number (0.05–10000)4.0The one control that decides how big the text looks.
Rotated Labels · Perpendicular Offset (m)Number (−10000…10000)0.0Pushes the label clear of the stroke — positive to the left of the direction the line runs, negative to the right. Scales with each tier, so the gap looks the same at every zoom.
Rotated Labels · Zoom TiersInteger (1–6)3Each tier is a second copy 4× larger that switches on as you zoom out, keeping the text roughly the same size on screen. 1 = one fixed scale (printed-map look); 3 = parcel to district; 5 = province-wide browsing. All tiers point at the same PNG, so they cost XML, not image weight.
Rotated Labels · Text ColourColour (with opacity)white
Rotated Labels · Halo ColourColour (with opacity)black
Rotated Labels · Keep Text Right-Way-UpBooleanTrueSpins any label turned past vertical, so westward lines do not come out upside down.
Output FolderFolder destination

Advanced

Parameters for Export Layers to KML — Advanced
ឈ្មោះប្រភេទតម្លៃលំនាំដើមការពិពណ៌នា
Rotated Labels · Render Resolution (px)Integer (8–256)48Sharpness only. How big the text looks is set entirely by text height on ground.
Rotated Labels · Font FamilyString, optionalArial
Rotated Labels · Bold TextBooleanTrue
Include Attribute BalloonBooleanTrueEvery non-empty field goes into the balloon that opens when a feature is clicked. Turn it off for a much smaller file.
Line Width (px)Integer (1–10)2

របៀបប្រើ

  1. Style and label the layers in QGIS first — this tool reads what is already there.
  2. Open KGA Data Conversion > Export Layers to KML.
  3. Pick the Input Layers and the Output Folder.
  4. Choose the Export Mode: one file per layer, or one combined file to email.
  5. Leave Label Style on placemark labels unless the text has to follow a line. If it does, set Text Height on Ground first — it is the control that matters — then adjust Zoom Tiers for the range you will browse at.
  6. Press Run, then open the result in Google Earth and check the label size at the zoom you actually work at.

លទ្ធផល

  • .kml files (placemark labels) or .kmz files (rotated overlays, with the label PNGs inside), in the output folder — one per layer, or one combined.
  • Line and fill colours read from the layer's symbology.
  • An attribute balloon per feature, unless turned off.

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

  • One colour per layer. A categorised or graduated renderer collapses to its first symbol. Split the layer if the classes have to stay apart in Google Earth.
  • Everything is clamped to the ground at altitude 0. Z values are not carried across.
  • Rotated labels are images. Thousands of distinct label texts mean thousands of PNGs inside the .kmz. Repeated text is rendered once and shared, so it is the number of different strings that matters.
  • Files are overwritten without asking when the name already exists in the output folder.
  • Labels come from whatever the layer's Labels tab is set to: a field, an expression, or the first labelled rule of a rule-based setup. KML prints HTML literally, so tags are stripped and <sup>2</sup> becomes a real ².
  • Each rotated label sits on the midpoint of its line, turned to the bearing of the segment containing that midpoint.
ត្រឡប់ទៅឯកសារណែនាំ