Skip to content

Commit

Permalink
Add more explanation (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayuasu authored Nov 24, 2024
1 parent 1502458 commit 7bf529c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
16 changes: 10 additions & 6 deletions LogicalTypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -889,17 +889,19 @@ by the CRS.

Bounding box is defined as the thrift struct below in the representation of
min/max value pair of coordinates from each axis. Note that X and Y Values
are always present. Z and M are omitted for 2D geometries.
are always present. Z and M are omitted for 2D geometries. The concepts of
westmost and eastmost values are explicitly introduced to address cases
involving antimeridian crossing, where xmin may be greater than xmax.

```thrift
struct BoundingBox {
/** Westmost value (min longitude) on the X axis */
/** Westmost value on the longitude axis */
1: required double xmin;
/** Eastmost value (max longitude) on the X axis */
/** Eastmost value on the longitude axis */
2: required double xmax;
/** Southmost value (min latitude) on the Y axis */
/** Southmost value on the latitude axis */
3: required double ymin;
/** Northmost value (max latitude) on the Y axis */
/** Northmost value on the latitude axis */
4: required double ymax;
/** Min Z value if the axis exists */
5: optional double zmin;
Expand Down Expand Up @@ -945,7 +947,9 @@ The Geometry class hierarchy and its WKT and WKB serializations (ISO supporting
XY, XYZ, XYM, XYZM) are defined by [OpenGIS Implementation Specification for
Geographic information – Simple feature access – Part 1: Common architecture](
https://portal.ogc.org/files/?artifact_id=25355), from [OGC (Open Geospatial
Consortium)](https://www.ogc.org/standard/sfa/).
Consortium)](https://www.ogc.org/standard/sfa/). According to the OGC specification,
all geometric attributes are described piecewise by straight line or planar interpolation
between sets of points.

The version of the OGC standard first used here is 1.2.1, but future versions
may also used if the WKB representation remains wire-compatible.
Expand Down
8 changes: 4 additions & 4 deletions src/main/thrift/parquet.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ struct SizeStatistics {
* coordinates from each axis.
*/
struct BoundingBox {
/** Westmost value (min longitude) on the X axis */
/** Westmost value on the longitude axis */
1: required double xmin;
/** Eastmost value (max longitude) on the X axis */
/** Eastmost value on the longitude axis */
2: required double xmax;
/** Southmost value (min latitude) on the Y axis */
/** Southmost value on the latitude axis */
3: required double ymin;
/** Northmost value (max latitude) on the Y axis */
/** Northmost value on the latitude axis */
4: required double ymax;
/** Min Z value if the axis exists */
5: optional double zmin;
Expand Down

0 comments on commit 7bf529c

Please sign in to comment.