# US 2017/0293662 A1 · Querying spatial data in column stores using grid-order scans

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0293662 A1
- Document ID: US20170293662A1
- Status: Published application
- Kind: A1
- Application number: 15/635,004
- Filed: 2017-06-27
- Published: 2017-10-12
- Earliest claimed: 2014-05-09
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Edward-Robert Tyercha; Gerrit Simon Kazmaier; Hinnerk Gildhoff; Isil Pekel; Lars Volker; Tim Grouisborm
- Web page: https://patentgrep.com/patent/US20170293662A1

## CPC

- G06F 16/2458: Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 16/2237: {Vectors, bitmaps or matrices}
- G06F 16/29: Geographical information databases
- G06F 16/86: {Mapping to a database}
- G06F 16/9537: Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A query of spatial data is received by a database comprising a columnar data store storing data in a column-oriented structure. Thereafter, a minimal bounding rectangle associated with the query is identified using a grid order scanning technique. The spatial data set corresponding to the received query is then mapped to physical storage in the database using the identified minimal bounding rectangle so that the spatial data set can be retrieved. Related apparatus, systems, techniques and articles are also described.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A method implemented on one or more systems comprising one or more programmable processors, the method comprising:
mapping spatial data stored in a database comprising a columnar data store storing the spatial data in a column-oriented structure, the mapping comprising preserving spatial proximity of a plurality of spatial point objects when the spatial data are physically stored using a grid ordering comprising:
dividing a bounded space containing the plurality of spatial point objects into a grid having fixed boundaries and comprising rectangular cells, and
indexing the cells of the grid, wherein the indexing comprises assigning each spatial point object of the plurality of spatial point objects to a particular cell of the grid, assigning one or more bounding boxes to one or more of the cells, maintaining a record of the one or more bounding boxes in intersecting cells in which the one or more bounding boxes intersect, and creating index vectors to represent the cells of the grid, wherein the index vectors comprise replicated entries,
identifying a target bounding box based on a received query of the spatial data, the identifying comprising scanning the cells of the grid using the index vectors;
determining, based on the mapping and the identified target bounding box, a spatial data set corresponding to the received query and a physical storage location in the database from which to retrieve the spatial data set; and
retrieving the spatial data set from the physical storage location based on the determining.

### Claim 22 (depends on 21)

The method of claim 21, wherein the grid ordering comprises the grid of cells being of uniform length along each axis of a plurality of axes.

### Claim 23 (depends on 21)

The method of claim 21, wherein indexing the cells further comprises adding a separate vector that stores, for each replicated entry, an object identifier.

### Claim 24 (depends on 23)

The method of claim 23, wherein the one or more bounding boxes have a sequentially increasing integer object identifier.

### Claim 25 (depends on 24)

The method of claim 24, further comprising, upon retrieving the spatial data set for the received query, applying the mapping to identify the plurality of spatial point objects.

### Claim 26 (depends on 21)

The method of claim 21, wherein the grid ordering comprises the grid of cells having non-uniform dimensions.

### Claim 27

A non-transitory computer program product storing instructions which, when executed by at least one data processor forming part of at least one computing system, result in operations comprising:
mapping spatial data stored in a database comprising a columnar data store storing the spatial data in a column-oriented structure, the mapping comprising preserving spatial proximity of a plurality of spatial point objects when the spatial data are physically stored using a grid ordering comprising:
dividing a bounded space containing the plurality of spatial point objects into a grid having fixed boundaries and comprising rectangular cells, and
indexing the cells of the grid, wherein the indexing comprises assigning each spatial point object of the plurality of spatial point objects to a particular cell of the grid, assigning one or more bounding boxes to one or more of the cells, maintaining a record of the one or more bounding boxes in intersecting cells in which the one or more bounding boxes intersect, and creating index vectors to represent the cells of the grid, wherein the index vectors comprise replicated entries,
identifying a target bounding box based on a received query of the spatial data, the identifying comprising scanning the cells of the grid using the index vectors;
determining, based on the mapping and the identified target bounding box, a spatial data set corresponding to the received query and a physical storage location in the database from which to retrieve the spatial data set; and
retrieving the spatial data set from the physical storage location based on the determining.

### Claim 28 (depends on 27)

The computer program product of claim 27, wherein the grid ordering comprises the grid of cells being of uniform length along each axis of a plurality of axes.

### Claim 29 (depends on 27)

The computer program product of claim 27, wherein indexing the cells further comprises adding a separate vector that stores, for each replicated entry, an object identifier.

### Claim 30 (depends on 29)

The computer program product of claim 29, wherein the one or more bounding boxes have a sequentially increasing integer object identifier.

### Claim 31 (depends on 30)

The computer program product of claim 30, wherein the operations further comprise, upon retrieving the spatial data set for the received query, applying the mapping to identify the plurality of spatial point objects.

### Claim 32 (depends on 27)

The computer program product of claim 27, wherein the grid ordering comprises the grid of cells having non-uniform dimensions.

### Claim 33

A system comprising:
a database comprising a columnar data store storing data in a column-oriented structure;
at least one data processor; and
memory storing instructions which, when executed by the at least one data processor, result in operations comprising:
mapping spatial data stored in a database comprising a columnar data store storing the spatial data in a column-oriented structure, the mapping comprising preserving spatial proximity of a plurality of spatial point objects when the spatial data are physically stored using a grid ordering comprising:
dividing a bounded space containing the plurality of spatial point objects into a grid having fixed boundaries and comprising rectangular cells, and
indexing the cells of the grid, wherein the indexing comprises assigning each spatial point object of the plurality of spatial point objects to a particular cell of the grid, assigning one or more bounding boxes to one or more of the cells, maintaining a record of the one or more bounding boxes in intersecting cells in which the one or more bounding boxes intersect, and creating index vectors to represent the cells of the grid, wherein the index vectors comprise replicated entries,
identifying a target bounding box based on a received query of the spatial data, the identifying comprising scanning the cells of the grid using the index vectors;
determining, based on the mapping and the identified target bounding box, a spatial data set corresponding to the received query and a physical storage location in the database from which to retrieve the spatial data set; and
retrieving the spatial data set from the physical storage location based on the determining.

### Claim 34 (depends on 33)

The system of claim 33, wherein the grid ordering comprises the grid of cells being of uniform length along each axis of a plurality of axes.

### Claim 35 (depends on 33)

The system of claim 33, wherein indexing the cells further comprises adding a separate vector that stores, for each replicated entry, an object identifier.

### Claim 36 (depends on 35)

The system of claim 35, wherein the one or more bounding boxes have a sequentially increasing integer object identifier.

### Claim 37 (depends on 36)

The system of claim 36, wherein the operations further comprise, upon retrieving the spatial data set for the received query, applying the mapping to identify the plurality of spatial point objects.

### Claim 38 (depends on 33)

The system of claim 33, wherein the grid ordering comprises the grid of cells having non-uniform dimensions.
