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

GeoPackage to Shapefiles

នាំចេញស្រទាប់ spatial ទាំងអស់ពី GeoPackage ទៅជាឯកសារ ESRI Shapefile ដាច់ដោយឡែក ក្នុងថតមួយ។

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

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

Exports every spatial layer inside a GeoPackage to its own ESRI Shapefile in a folder, in one pass.

This is the format-of-last-resort direction: you run it when something downstream — an old survey package, a government submission template, a consultant workflow — will only accept shapefiles. Keep the GeoPackage as the master copy.

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

Parameters for GeoPackage to Shapefiles
ឈ្មោះប្រភេទតម្លៃលំនាំដើមការពិពណ៌នា
Input GeoPackageFile (*.gpkg)The container to unpack. Every spatial sublayer inside it is exported.
Output folderFolder destinationWhere the shapefiles are written. Created if it does not exist.
Field encodingString, optionalUTF-8The encoding written into each shapefile and its .cpg sidecar. Leave it at UTF-8 unless the consumer demands otherwise — this is what keeps Khmer attributes readable.
Filename prefix (optional)String, optionalemptyPrepended to every output file name, e.g. 2024_ giving 2024_Canal.shp.
Skip layers with no featuresBooleanFalseOn, empty layers produce no file at all.
Overwrite existing shapefilesBooleanTrueOff, a layer whose .shp already exists in the folder is skipped rather than replaced.

របៀបប្រើ

  1. Open KGA Data Management > GeoPackage to Shapefiles.
  2. Pick the Input GeoPackage and an empty Output folder.
  3. Leave Field encoding at UTF-8 unless you have been told otherwise.
  4. Press Run and read the log: it names every layer as ok, skip (with the reason) or FAILED, and finishes with an Exported | Skipped | Failed tally.

លទ្ធផល

  • One .shp per spatial layer in the chosen folder, with its .dbf, .shx, .prj and a .cpg sidecar recording the encoding.
  • Each layer keeps its own CRS — nothing is reprojected.
  • The Output folder path is returned to Processing.

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

  • Field names are truncated to 10 characters. That is the DBF limit, not a choice this tool makes, and the original names cannot be recovered from the shapefile afterwards.
  • Non-spatial tables are skipped — a shapefile must have geometry. The log says skip (no geometry) for each one.
  • A shapefile holds one geometry type and stores date-times without full precision. Layers that rely on either lose something in the trip.
  • Layer names are sanitised for the file system: anything that is not a letter, digit, underscore or hyphen becomes an underscore, and runs of underscores are collapsed. Two layers whose names differ only in punctuation therefore collide — check the log.
  • The reverse direction is Shapefiles to GeoPackage.

មើលផងដែរ

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