KGA Geometry Utilitiesដំណើរការជាបាច់

Planarize Lines

បំបែកបន្ទាត់នៅកន្លែងដែលកាត់គ្នា បង្កើតជាបន្ទាត់ផ្នែកតែមួយដែលគ្មានការកាត់គ្នា។ គុណលក្ខណៈពីបន្ទាត់ដើមត្រូវបានរក្សាទុក។

រកឃើញនៅឯណា
Processing ▸ Toolbox ▸ KGA Toolbox ▸ KGA Geometry Utilities ▸ Planarize Lines
លេខសម្គាល់ algorithm
kga:planarizelines
ប្រភេទឧបករណ៍
Batch algorithm (runs on the GUI thread — the in-place branch writes into a project layer)

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

This is the step a network needs before it is a network: a canal layer digitized as long runs that cross each other has no node where they meet, so routing, topology checks and length-per-reach all give the wrong answer. Planarizing puts a break at every crossing.

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

Parameters for Planarize Lines
ឈ្មោះប្រភេទតម្លៃលំនាំដើមការពិពណ៌នា
Input Line LayerFeature source (line)The lines to planarize.
Planarize the input layer in place (no output layer)BooleanFalseOff, a new layer is written and the input is untouched. On, the input layer's features are replaced by the planarized ones and no output layer is produced.
Planarized OutputFeature sink (line), optionaltemporary layerWhere the result goes. Ignored when the in-place box is ticked.

របៀបប្រើ

  1. Open KGA Geometry Utilities > Planarize Lines.
  2. Pick the Input Line Layer.
  3. Leave the in-place box off for the first run — check the result, then decide.
  4. Press Run.
  5. To rewrite the source instead, load it in the project, tick Planarize the input layer in place, and run again.

លទ្ធផល

  • A line layer of single-part, non-crossing segments, each carrying the attributes of the line it came from.
  • In place: the input layer's features replaced by those segments, and no output layer.

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

  • Feature ids are not preserved, in either mode. One input line becomes several output segments, so there is no id to keep. Joins and relates keyed on the old ids will not survive.
  • In place needs a real project layer whose provider can add and delete features — not a file path typed into the parameter, and not a read-only source.
  • In place respects an edit session. If the layer is already in edit mode the change is left in the edit buffer so you can undo it; otherwise it is committed.
  • The original attributes are duplicated onto every segment. A length field carried across this way is now wrong for each piece — recompute it with Update Geometry Fields.

មើលផងដែរ

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