← Blog
A translucent ruler crosses a survey grid marked with three crosses and an orange point.
Published on
2026-11-27

Move a GeoParquet file between tools and verify its coordinates

A survey point with an easting of 500,000 metres can sit at 9°E or 15°E. Both answers are plausible. Which one is right depends on the coordinate reference system (CRS) attached to the numbers. A checksum can tell you whether a GeoParquet file arrived intact. To find out whether it puts the survey in the right place, you need a location you can check independently.

Here’s a handoff you can repeat before sharing a layer from object storage. It uses four synthetic sites, two readers and a small map area that should contain exactly two of the sites.

Write a layer with an explicit coordinate system

GeoParquet adds spatial metadata to a Parquet file. In version 1.1, the geo metadata identifies the primary geometry column and describes its encoding and CRS. Our file stores points as well-known binary (WKB). The column’s crs entry describes WGS 84 / UTM zone 32N, identified by EPSG:32632. The source coordinates are eastings and northings in metres.

import geopandas as gpd

sites = gpd.GeoDataFrame(
    {"site_id": ["A", "B", "C", "D"]},
    geometry=gpd.points_from_xy(
        [500000, 500700, 510000, 500000],
        [5200000, 5200600, 5200000, 5210000],
    ),
    crs="EPSG:32632",
)
sites.to_parquet("survey.parquet", index=False,
                 schema_version="1.1.0", geometry_encoding="WKB")

Use the CRS supplied with the survey. Assigning one because the coordinates look familiar can produce a file that every reader opens successfully in the wrong place. Another detail matters when inspecting metadata: under GeoParquet 1.1, an omitted crs defaults to OGC:CRS84, while an explicit null means the CRS is unknown. The GeoParquet 1.1 specification defines both cases. If you’re choosing a container for ordinary tabular data first, see Parquet vs CSV.

Check the object that reached the receiving machine

We uploaded survey.parquet to a local S3-compatible emulator and downloaded the complete object as received-survey.parquet. The source and received files were each 12,399 bytes and had the same SHA-256 digest. For a handoff between teams, give the receiving team the digest from the producer, along with the expected CRS and site IDs.

import hashlib
from pathlib import Path

def digest(path):
    with Path(path).open("rb") as stream:
        return hashlib.file_digest(stream, "sha256").hexdigest()

assert digest("survey.parquet") == digest("received-survey.parquet")

This checks the transfer. It cannot tell you whether the producer chose the correct UTM zone. A hash generated only after download gives you no independent source value to compare against.

Ask two readers the same geographic question

Our acceptance area runs from 8.99 to 9.02 degrees east and 46.94 to 46.97 degrees north. Sites A and B belong inside. C lies farther east and D farther north. Since these limits are in degrees, transform the points before applying the filter. Passing degree limits directly to a layer in metres would ask a different question.

layer = gpd.read_parquet("received-survey.parquet")
assert layer.crs.to_epsg() == 32632
lonlat = layer.to_crs("OGC:CRS84")
found = lonlat.cx[8.99:9.02, 46.94:46.97]
assert sorted(found.site_id) == ["A", "B"]

GeoPandas 1.1.1 returned A and B. Site A landed at 9.00000°E, 46.95353°N. To choose which columns to read or use a stored bounding-box covering, see the GeoPandas Parquet reader documentation. This small test reads the full file and filters in memory.

We opened the downloaded file independently in DuckDB 1.4.3 with its spatial extension. We read the CRS from the file’s geo metadata, checked the four native coordinate pairs, then transformed the points. The SQL below shows the source CRS resolved from the correct file. In our test, the source CRS is taken from each file being checked. always_xy := true makes the output order explicit: longitude first, latitude second.

WITH sites AS (
    SELECT site_id,
           ST_Transform(geometry, 'EPSG:32632', 'EPSG:4326',
                        always_xy := true) AS lonlat
    FROM read_parquet('received-survey.parquet')
)
SELECT site_id FROM sites
WHERE ST_X(lonlat) BETWEEN 8.99 AND 9.02
  AND ST_Y(lonlat) BETWEEN 46.94 AND 46.97
ORDER BY site_id;

DuckDB also returned A and B. Recording the IDs matters. A count of two would still pass if a different pair of sites fell in the box.

What the wrong UTM zone changes

In a separate copy we replaced the declaration with EPSG:32633, UTM zone 33N. We left every point’s stored x and y values untouched. The second file also matched its own source digest after transfer. Both readers opened all four points and placed site A at about 15°E, at the same latitude as before. Neither reader found any site in the original box.

The mistake happened before upload. Repeating the transfer would reproduce it. If the coordinate values are correct and the declaration is wrong, confirm the source CRS with the producer before correcting the metadata. If you want to deliver those same locations in a different CRS, transform the coordinates with to_crs(). Merely changing their label moves their interpreted positions.

To evaluate Object Storage with Hivenet for survey delivery, repeat the handoff using your bucket and the recipient’s read permissions. Send a reference feature and a small area with known results alongside the file. Once those checks pass, use a representative layer to measure transfer time and the effect of Parquet compression.

Your next workload belongs on Hivenet.

Pick one AI, compute, or storage workload and see the difference for yourself. Spin it up in minutes, or let our team map your fastest path to production.