Groonga
Loading...
Searching...
No Matches
geo.h
Go to the documentation of this file.
1/*
2 Copyright(C) 2015-2016 Brazil
3 Copyright(C) 2022 Sutou Kouhei <kou@clear-code.com>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18*/
19
20#pragma once
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26typedef struct {
27 int32_t latitude;
28 int32_t longitude;
30
63 grn_obj *index,
64 grn_obj *top_left_point,
65 grn_obj *bottom_right_point,
66 grn_obj *res,
67 grn_operator op);
95GRN_API unsigned int
97 grn_obj *index,
98 grn_obj *top_left_point,
99 grn_obj *bottom_right_point);
103GRN_API int
105 grn_obj *index,
106 grn_obj *top_left_point,
107 grn_obj *bottom_right_point);
138 grn_obj *index,
139 grn_obj *top_left_point,
140 grn_obj *bottom_right_point,
141 int offset,
142 int limit);
154
155GRN_API int
157 grn_obj *table,
158 int offset,
159 int limit,
160 grn_obj *result,
161 grn_obj *column,
162 grn_obj *geo_point);
163
164#ifdef __cplusplus
165}
166#endif
GRN_API int grn_geo_estimate_in_rectangle(grn_ctx *ctx, grn_obj *index, grn_obj *top_left_point, grn_obj *bottom_right_point)
GRN_API grn_posting * grn_geo_cursor_next(grn_ctx *ctx, grn_obj *cursor)
Retrieve the next posting from the cursor and advance to the next.
GRN_API int grn_geo_table_sort(grn_ctx *ctx, grn_obj *table, int offset, int limit, grn_obj *result, grn_obj *column, grn_obj *geo_point)
GRN_API grn_rc grn_geo_select_in_rectangle(grn_ctx *ctx, grn_obj *index, grn_obj *top_left_point, grn_obj *bottom_right_point, grn_obj *res, grn_operator op)
Select records within a specified rectangular area defined by the top_left_point and bottom_right_poi...
GRN_API grn_obj * grn_geo_cursor_open_in_rectangle(grn_ctx *ctx, grn_obj *index, grn_obj *top_left_point, grn_obj *bottom_right_point, int offset, int limit)
Create and return a cursor to retrieve records within a specified rectangular area defined by the top...
GRN_API unsigned int grn_geo_estimate_size_in_rectangle(grn_ctx *ctx, grn_obj *index, grn_obj *top_left_point, grn_obj *bottom_right_point)
Estimate the number of records within a specified rectangular area defined by the top_left_point and ...
grn_rc
Definition groonga.h:61
#define GRN_API
Definition groonga.h:39
grn_operator
Definition groonga.h:1149
Definition groonga.h:351
Definition groonga.h:919
Definition geo.h:26
int32_t longitude
Definition geo.h:28
int32_t latitude
Definition geo.h:27
Definition posting.h:26