Skip to content

Commit c1a38fc

Browse files
committed
rfcs: more Geospatial RFC updates
Release note: None
1 parent a087b90 commit c1a38fc

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

docs/RFCS/20200421_geospatial.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,16 @@ serialization option for S2 objects which further improves disk usage,
328328
however it is not yet ported to Go.
329329

330330
We will not support indexing geospatial types in default primary keys
331-
and indexes (as we do not for JSONB and ARRAYs today). However, we
332-
will support using inverted indexes for geospatial indexing -- see the
333-
indexing section for details. This may change subject to further
334-
user consultation before the upcoming v20.2 release.
331+
and indexes (as we do not for JSONB and ARRAYs today). This is because
332+
we will not be able to match the PostGIS definition as it's based
333+
on a hash of it's internal data structure, which means we will
334+
not be able to be a "drop-in" replacement here. If we could decide
335+
on our own ordering, it will be based on the raw EWKB byte ordering.
336+
This may change subject to further user consultation before the upcoming
337+
v20.2 release.
335338

339+
We will however support using inverted indexes for geospatial indexing
340+
-- see the indexing section for details.
336341

337342
#### Display
338343

@@ -420,13 +425,13 @@ Curves are implemented natively in PostGIS, with an [approximation of
420425
~32 points per
421426
curve](https://github.com/postgis/postgis/blob/master/liblwgeom/lwgeom_geos.c#L412)
422427
done when input into the GEOS library. We can look to use some of the
423-
same math after 20.2.
428+
same math after v20.2.
424429

425430

426431
#### Geometry (2.5D)
427432

428433
These are implemented natively in PostGIS with some GEOS support. We
429-
can look at doing this after 20.2.
434+
can look at doing this after v20.2.
430435

431436

432437
#### Geometry (3D)
@@ -460,7 +465,7 @@ value. This will add an extra "row" for this builtin in our docs
460465
compared to PostGIS.
461466

462467
Users and tools specifying explicitly default args (e.g. `SELECT
463-
ST_Area(geom, use_spheroid := false)`) will be unable to do so at 20.2
468+
ST_Area(geom, use_spheroid := false)`) will be unable to do so at v20.2
464469
unless we implement the default args feature before then.
465470

466471

@@ -646,7 +651,6 @@ they are available on the public schema upon extension registration.
646651
647652
This will also be available on the `pg_extension` schema
648653
mentioned below.
649-
```
650654
651655
##### `pg_extension` schema
652656
@@ -730,8 +734,16 @@ types. This may be out of line with the OGC spec, but follows the
730734
principle that we will prioritize PostGIS behaviour.
731735
732736
733-
### Other Future Work/Out of Scope for 20.2
737+
### Out of Scope for v20.2
738+
739+
The following has been mentioned as out of scope:
740+
* 2.5D, 3D shapes
741+
* PRIMARY KEY definitions for Geometry/Geography types
742+
* Default Arguments for Builtins
743+
* Caching certain builtin operations
744+
* User defined SRIDs
734745
746+
Furthermore, these will be out of scope:
735747
* Supporting the default geometric data types in
736748
[PostgreSQL](https://www.postgresql.org/docs/current/datatype-geometric.html).
737749

0 commit comments

Comments
 (0)