Skip to content

Commit 6d89657

Browse files
authored
"edges" field spec definition for version 0.1 (#27)
1 parent 8c985a3 commit 6d89657

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed
0 Bytes
Binary file not shown.

examples/geoparquet/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
'(Lon)",east],UNIT["degree",0.0174532925199433],USAGE[SCOPE["Horizontal '
2525
'component of 3D '
2626
'system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]]',
27-
'edges': 'planar',
28-
'encoding': 'WKB'}},
27+
'encoding': 'WKB',
28+
'edges': 'planar'}},
2929
'primary_column': 'geometry',
3030
'version': '0.1.0'}
3131
"""

format-specs/geoparquet.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Each geometry column in the dataset must be included in the columns field above
5353
| ---------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
5454
| crs | string | **REQUIRED** [WKT2](https://docs.opengeospatial.org/is/18-010r7/18-010r7.html) string representing the Coordinate Reference System (CRS) of the geometry. |
5555
| encoding | string | **REQUIRED** Name of the geometry encoding format. Currently only 'WKB' is supported. |
56+
| edges | string | **OPTIONAL** Name of the coordinate system for the edges. Must be one of 'planar' or 'spherical'. The default value is 'planar'. |
5657
| bbox | \[number] | **OPTIONAL** Bounding Box of the geometries in the file, formatted according to [RFC 7946, section 5](https://tools.ietf.org/html/rfc7946#section-5) |
5758

5859
#### crs
@@ -103,6 +104,14 @@ The axis order of the coordinates in WKB stored in a geoparquet follows the de f
103104
(x, y) where x is easting or longitude and y is northing or latitude. This ordering explicitly overrides the axis order as specified in the CRS.
104105
This follows the precedent of [GeoPackage](https://geopackage.org), see the [note in their spec](https://www.geopackage.org/spec130/#gpb_spec).
105106

107+
#### edges
108+
109+
This attribute indicates how to interpret the edges of the geometries: whether the line between two points is a straight cartesian line or the shortest line on the sphere (geodesic line). Available values are:
110+
- planar: use a flat cartesian coordinate system.
111+
- spherical: use a spherical coordinate system and radius derived from the spheroid defined by the coordinate reference system.
112+
113+
If no value is set, the default value to assume is 'planar'.
114+
106115
#### bbox
107116

108117
Bounding boxes are used to help define the spatial extent of each geometry column.

0 commit comments

Comments
 (0)