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

Shapefiles to GeoPackage

ប្រមូល shapefile ទាំងអស់ក្នុងថតមួយ រួចសរសេរទៅក្នុង GeoPackage តែមួយ ដោយប្រើឈ្មោះឯកសារនីមួយៗជាឈ្មោះស្រទាប់។

រកឃើញនៅឯណា
Processing ▸ Toolbox ▸ KGA Toolbox ▸ KGA Data Management ▸ Shapefiles to GeoPackage
លេខសម្គាល់ algorithm
kga:shapefilestogpkg
ប្រភេទឧបករណ៍
Batch algorithm

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

The usual reason to run it: a folder of shapefiles arrived from somewhere, and you want one file to work with, back up and hand on. It can also reproject everything to a common CRS on the way in, which is what you want when the folder is a mix of UTM zones and degrees.

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

Parameters for Shapefiles to GeoPackage
ឈ្មោះប្រភេទតម្លៃលំនាំដើមការពិពណ៌នា
Input folderFolderThe folder holding the shapefiles.
Output GeoPackageFile destination (*.gpkg)The container to write.
File extensions (comma separated)String, optionalshpWhich files to pick up. Widen it to pull in other OGR formats sitting in the same folder.
Source encodingString, optionalUTF-8Applied on read. This is the one to get right — see the notes.
Reproject all layers to (optional)CRS, optionalemptyLeave empty to keep each layer in its own CRS. Set it to bring a mixed folder into one system.
Search subfoldersBooleanFalseOn, walks the whole tree below the input folder.
Append to existing GeoPackage (keep current layers)BooleanFalseOn, adds to a GeoPackage that is already there instead of replacing it.
Skip layers with no featuresBooleanFalseOn, an empty shapefile produces no layer.

របៀបប្រើ

  1. Open KGA Data Management > Shapefiles to GeoPackage.
  2. Point Input folder at the folder and name the Output GeoPackage.
  3. Set Source encoding to whatever the shapefiles actually are. If the attributes contain Khmer and there is no .cpg beside the .shp, this is almost always the setting that decides whether the text survives.
  4. Set Reproject all layers to only if you want a single common CRS.
  5. Press Run. The log reports each file as ok, skip or a failure, and finishes with a Packed | Skipped | Failed tally.

លទ្ធផល

  • One GeoPackage containing every shapefile as a layer.
  • The Output GeoPackage path is returned to Processing.

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

  • Encoding is applied on read, not on write. QGIS falls back to the system encoding when a .cpg sidecar is missing, and that is the usual cause of unreadable Khmer attributes. Setting it wrong here mangles the text permanently in the output.
  • Truncated field names cannot be recovered. If a previous shapefile export cut Construction_Year down to Constructi, that is the name that arrives in the GeoPackage. Nothing here can restore it.
  • Duplicate layer names are renamed rather than overwritten; the log says renamed duplicate to … when it happens.
  • The reverse direction is GeoPackage to Shapefiles.

មើលផងដែរ

ត្រឡប់ទៅឯកសារណែនាំ