KGA Data Managementផ្ទាំងអន្តរកម្ម
Duplicate to New Layer
ចម្លងស្រទាប់ព្រមទាំងទិន្នន័យរបស់វា ដូច្នេះច្បាប់ចម្លងឯករាជ្យពីច្បាប់ដើម។
- រកឃើញនៅឯណា
- Processing ▸ Toolbox ▸ KGA Toolbox ▸ KGA Data Management ▸ Duplicate to New Layer
- លេខសម្គាល់ algorithm
- kga:duplicate_to_new_layer
- ប្រភេទឧបករណ៍
- Interactive dialog, modeless; also on the right-click menu of vector and raster layers, below QGIS's Duplicate Layer
ទិដ្ឋភាពទូទៅ
QGIS's built-in Duplicate Layer adds a second layer pointing at the same data source, so editing or deleting features in the copy changes the original. This tool copies the data as well, so the copy is fully independent.
- Vector layers are written to a GeoPackage, shapefile, File Geodatabase, GeoJSON, KML or KMZ, as you choose.
- Rasters are written to a new GeoTIFF (LZW, tiled) with the same values, no-data value and data type.
- Memory (scratch) layers are cloned in memory; no file is needed.
Symbology, labels, aliases and form settings are copied. The new layer is named <layer> (copy) and sits directly above the original.
ប៉ារ៉ាម៉ែត្រ
| ផ្ទាំងគ្រប់គ្រង | ប្រភេទ | តម្លៃលំនាំដើម | ការពិពណ៌នា |
|---|---|---|---|
| Original Layer | Layer combo | — | A vector or raster layer in the project. |
| Output Location | Folder | beside the original | The folder to save the copy in. The file is named <layer>_copy (numbered if taken), so a copy never replaces an existing file. Disabled for a memory layer. |
| Output type | Combo box | GeoPackage | Vector: GeoPackage, Shapefile, File Geodatabase, GeoJSON, KML or KMZ. Raster: GeoTIFF, COG, IMG, PNG, JPEG, JPEG 2000 and ASCII Grid. A format this QGIS cannot write is greyed out. |
| Extent to copy (rasters only) | Combo box | Whole raster | Whole raster, Current map extent, Extent of a layer, Draw a rectangle or polygon on the map, or Boundary of a polygon layer (optionally selected features only). |
| Selected features only (vectors) | Boolean | off | Copy just the features selected on the original layer. Available only when a vector layer has a selection; the box shows how many. |
របៀបប្រើ
Right-click a layer in the Layers panel and choose Duplicate to New Layer… (just below QGIS's Duplicate Layer), or open KGA Data Management > Duplicate to New Layer. The window stays open, so several layers can be copied in a row.
កំណត់សម្គាល់ និងដែនកំណត់
- A layer filter limits what is copied; the copy has no filter.
- Unsaved edits in an edit-mode layer are included in the copy.
- Rasters must be files on disk; WMS, XYZ and other web services are refused.
- Cutting a raster. A map or layer extent, or a drawn rectangle, copies that box of whole pixels. A drawn polygon or a layer boundary also sets every pixel outside the shape to NoData: the raster's own NoData value, or
-9999for floating-point data and0otherwise when it has none. An area that does not overlap the raster is refused. - Format limits are checked before anything is written: PNG takes 8- or 16-bit data and up to 4 bands, JPEG 8-bit and up to 3 bands, JPEG 2000 integer data, ASCII Grid one band. JPEG is lossy. Use GeoTIFF for anything else.
- Shapefile field names are cut to 10 characters. KML and KMZ are written in WGS 84 (EPSG:4326), as Google Earth requires. A File Geodatabase copy is a new
.gdbfolder holding one layer, and its layer name is limited to letters, digits and underscores. - A GeoPackage source that already has its own
fidattribute keeps it; the copy's feature-id column is calledfid_gpkg.