Coordinate Converter
គណនាកូអរដោនេជាទម្រង់ decimal degrees, degrees-minutes-seconds, UTM, MGRS ឬ XY ដែល projected ដោយអានពីធរណីមាត្រនៃលក្ខណៈនីមួយៗ ឬពីវាលដែលមានស្រាប់ រួចសរសេរលទ្ធផលចូលវាលថ្មី ឬវាលដែលមានស្រាប់។
- រកឃើញនៅឯណា
- KGA Toolbox ▸ Data Management ▸ Attribute ▸ Coordinate Converter
ទិដ្ឋភាពទូទៅ
One tool covers both jobs that usually need two: stamping coordinates onto features from their geometry, and converting a column of coordinates already in the table from one notation to another.
ការប្រើប្រាស់
- Everything converts through a common path — source → WGS 84 → target — so any supported input format can be written to any supported output format.
- Source chooses where the coordinates come from:
- From geometry — read from each feature's shape. Geometry position then decides which point of the shape is used.
- From existing field(s) — read from the table. Source format states how those values are written, and Single text field handles the case where a whole coordinate sits in one column.
- Geometry position matters for anything that is not a point: The same position is used for every feature.
| Position | Point used |
|---|---|
| Centroid | The shape's centroid, which for a concave or multipart shape can fall outside it |
| Label point | A point guaranteed to be inside the shape — the safer choice for irregular polygons |
| Extent center | The centre of the bounding box |
| Start / End / Midpoint | For lines: the first vertex, the last vertex, or the midpoint |
- Output format is one of
DD,DMS,UTM,MGRS, orXY. Two options shape the result:- One combined field (latitude + longitude) writes a single string instead of a pair of columns.
- XY CRS (WKID) sets the coordinate system for
XYoutput, entered as a WKID and validated as you type; Use map CRS takes the map's.
- UTM zone can be Auto — each feature gets the zone its longitude falls in — or Fixed, with an explicit Zone and Hemisphere. Use Fixed when a dataset straddling two zones must be reported in a single zone, which is common for a survey deliverable.
- New fields are created before any edit, with fixed types: Double, Short, or Text (64). Feature services are refused — the tool works on local data only.
- The whole run is a single undo step. All rows are converted first, in batches of 1,000 with progress and a cancel option, then written in one edit operation named Coordinate Converter.
- Cancelling before the write phase changes nothing.
- The write phase itself cannot be cancelled.
- If the layer cannot be edited through an edit session, the tool falls back to a direct update cursor and reports that undo is unavailable — note this if it appears.
- Overwrite existing values decides what happens to rows that fail to convert: Either way, bad rows are counted and logged with their ObjectID in Details. Read that log rather than assuming every row converted.
- On — a bad row's target cell is set to null, but only where the field is nullable and currently holds a value.
- Off — existing non-null cells are left alone entirely.
Accuracy and range limits
- MGRS output is truncated, which is the standard convention, and parsing an MGRS value returns the south-west corner of its square. A five-digit MGRS round trip is therefore accurate to about 1.4 m, not 1 m. Do not treat MGRS as a lossless store for survey coordinates.
- UTM and MGRS are undefined outside 80°S to 84°N. Features beyond those latitudes are reported as out of range rather than converted; the tool does not fall back to UPS.
- In UTM text, a lone
NorSis read as a hemisphere — which is what the tool writes — while the lettersCtoXare read as MGRS latitude bands. Mixed conventions in a hand-typed column are a common source of failed rows. - Values longer than 256 characters are rejected, and each text parser gives up after 250 ms, so a malformed cell becomes a counted failure rather than a hang.
ប៉ារ៉ាម៉ែត្រ
Input layer
| ផ្ទាំងគ្រប់គ្រង | ការពិពណ៌នា |
|---|---|
| Layer / table | The feature layer or standalone table to work on. Feature services are not accepted. |
| Geometry type | The input's geometry type, shown for reference. |
Source
| ផ្ទាំងគ្រប់គ្រង | ការពិពណ៌នា |
|---|---|
| From geometry | Reads coordinates from each feature's shape. |
| From existing field(s) | Reads coordinates from the table. |
| Source format | How the existing values are written — |
| Single text field | The whole coordinate sits in one text column rather than separate ones. |
Geometry position
| ផ្ទាំងគ្រប់គ្រង | ការពិពណ៌នា |
|---|---|
| Use | Which point of the shape supplies the coordinate: Centroid, Label point, Extent center, Start, End, or Midpoint. The same position is used for every feature. |
Target
| ផ្ទាំងគ្រប់គ្រង | ការពិពណ៌នា |
|---|---|
| Output format |
|
| One combined field (latitude + longitude) | Writes a single combined string instead of a pair of fields. |
| XY CRS (WKID) | The coordinate system for |
| Use map CRS | Uses the map's coordinate system for |
| UTM zone | Auto derives the zone per feature from its longitude; Fixed uses the Zone and Hemisphere given. |
| Zone | The UTM zone number, when Fixed. |
| Hemisphere | North or south, when Fixed. |
| Overwrite existing values | Replaces values already present. Off, existing non-null cells are kept. |
Run
| ផ្ទាំងគ្រប់គ្រង | ការពិពណ៌នា |
|---|---|
| Details | Validation messages, notes, and the per-row failure log with ObjectIDs. |
| Copy details | Copies the log to the clipboard. |
| Run | Converts and writes. Becomes Cancel while running, enabled only before the write phase. |
របៀបប្រើ
Stamp coordinates onto features from their geometry
- On the KGA Toolbox tab, in the Data Management group, open the Attribute menu and click Coordinate Converter.
- Set Layer / table.
- Under Source, choose From geometry.
- Under Geometry position, set Use. For irregular polygons choose Label point rather than Centroid, so the point is guaranteed to fall inside the parcel.
- Under Target, set Output format. For
XY, set XY CRS (WKID) or click Use map CRS. ForUTM, set UTM zone to Fixed if the whole dataset must report in one zone. - Leave Overwrite existing values unchecked on a first run.
- Click Run, then read Details for any rows that failed.
Convert a column of coordinates to another notation
- Open the tool and set Layer / table.
- Under Source, choose From existing field(s) and set Source format to match how the values are actually written. Check Single text field if the whole coordinate is in one column.
- Under Target, set Output format to the notation you want.
- Click Run, then check Details. Failed rows are usually a mixed notation in the source column — in UTM text especially, a lone
N/Smeans hemisphere whileC–Xmeans an MGRS band.
ព័ត៌មានអាជ្ញាបណ្ណ
Requires an active KGA Toolbox license. The tool validates the license before running.