-
- Downloads
Extend r-tree operator classes to handle Y-direction tests equivalent
to the existing X-direction tests. An rtree class now includes 4 actual 2-D tests, 4 1-D X-direction tests, and 4 1-D Y-direction tests. This involved adding four new Y-direction test operators for each of box and polygon; I followed the PostGIS project's lead as to the names of these operators. NON BACKWARDS COMPATIBLE CHANGE: the poly_overleft (&<) and poly_overright (&>) operators now have semantics comparable to box_overleft and box_overright. This is necessary to make r-tree indexes work correctly on polygons. Also, I changed circle_left and circle_right to agree with box_left and box_right --- formerly they allowed the boundaries to touch. This isn't actually essential given the lack of any r-tree opclass for circles, but it seems best to sync all the definitions while we are at it.
Showing
- contrib/rtree_gist/rtree_gist.c 32 additions, 8 deletionscontrib/rtree_gist/rtree_gist.c
- contrib/rtree_gist/rtree_gist.sql.in 9 additions, 1 deletioncontrib/rtree_gist/rtree_gist.sql.in
- doc/src/sgml/func.sgml 40 additions, 9 deletionsdoc/src/sgml/func.sgml
- doc/src/sgml/indices.sgml 6 additions, 1 deletiondoc/src/sgml/indices.sgml
- doc/src/sgml/xindex.sgml 29 additions, 9 deletionsdoc/src/sgml/xindex.sgml
- src/backend/access/rtree/rtstrat.c 11 additions, 3 deletionssrc/backend/access/rtree/rtstrat.c
- src/backend/utils/adt/geo_ops.c 173 additions, 25 deletionssrc/backend/utils/adt/geo_ops.c
- src/include/access/rtree.h 6 additions, 2 deletionssrc/include/access/rtree.h
- src/include/catalog/catversion.h 2 additions, 2 deletionssrc/include/catalog/catversion.h
- src/include/catalog/pg_am.h 2 additions, 2 deletionssrc/include/catalog/pg_am.h
- src/include/catalog/pg_amop.h 25 additions, 17 deletionssrc/include/catalog/pg_amop.h
- src/include/catalog/pg_operator.h 13 additions, 3 deletionssrc/include/catalog/pg_operator.h
- src/include/catalog/pg_proc.h 23 additions, 5 deletionssrc/include/catalog/pg_proc.h
- src/include/utils/geo_decls.h 12 additions, 4 deletionssrc/include/utils/geo_decls.h
- src/test/regress/expected/opr_sanity.out 5 additions, 1 deletionsrc/test/regress/expected/opr_sanity.out
- src/test/regress/expected/polygon.out 5 additions, 6 deletionssrc/test/regress/expected/polygon.out
- src/test/regress/sql/polygon.sql 1 addition, 1 deletionsrc/test/regress/sql/polygon.sql
Loading
Please register or sign in to comment