How coordinates determine distance and area#

A planar distance or area calculation uses the numbers in the coordinates. The coordinate system tells you what those numbers mean on the ground.

How far apart are (0,0) and (0.5,0)?#

(0,0) •────────• (0.5,0)
        0.5 coordinate units

The planar separation is 0.5 coordinate units, so the pair falls inside a numeric radius of 1 in either interpretation, as shown below.

Axes

Meaning of the separation

Metre-based grid

Half a metre

Longitude and latitude in degrees

Half a degree of longitude along the equator

The numeric comparison succeeds in both cases, although the ground distances differ.

Why the rectangle has an area of 6#

The closed ring (0,0),(2,0),(2,3),(0,3),(0,0) has width 2 and height 3. Each dimension contributes one coordinate unit to the product, so its planar area is 6 square coordinate units: 6 m² on metre axes, or 6 square degrees on degree axes.

What changes when you assign the rectangle a CRS?#

Assigning a CRS to the same ring with eager set_crs leaves its vertices and numeric planar area unchanged. Replacing a different known declaration requires allow_override.

Transforming coordinates instead computes vertex positions in the target system. To carry out that operation, see Put two layers in the same coordinate system.

What can you say about the pickup sample?#

The GeoParquet footers explicitly declare the CRS of b_boundary and t_pickuploc null. A planar threshold for that sample can be described in coordinate units. Calling it a distance in metres requires additional evidence. The eager nearest rule admits a projected or unknown CRS and rejects a known geographic CRS. Admission with an unknown CRS does not establish the units.