-
-
Notifications
You must be signed in to change notification settings - Fork 477
Expand file tree
/
Copy pathflex-lua-geom.hpp
More file actions
42 lines (34 loc) · 1 KB
/
flex-lua-geom.hpp
File metadata and controls
42 lines (34 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef OSM2PGSQL_FLEX_LUA_GEOM_HPP
#define OSM2PGSQL_FLEX_LUA_GEOM_HPP
/**
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This file is part of osm2pgsql (https://osm2pgsql.org/).
*
* Copyright (C) 2006-2026 by the osm2pgsql developer community.
* For a full list of authors see the git log.
*/
/**
* \file
*
* Functions implementing the Lua interface for the geometry functions.
*/
#include "geom.hpp"
struct lua_State;
/**
* Create a null geometry object on the Lua stack and return a pointer to it.
*/
geom::geometry_t *create_lua_geometry_object(lua_State *lua_state);
/**
* Get a geometry object from the Lua stack and return a pointer to it.
*
* \param lua_state The lua state.
* \param n The position in the stack, usually 1 for the first function
* parameter.
*/
geom::geometry_t *unpack_geometry(lua_State *lua_state, int n = 1) noexcept;
/**
* Define the osm2pgsql.Geometry class/metatable.
*/
void init_geometry_class(lua_State *lua_state);
#endif // OSM2PGSQL_FLEX_LUA_GEOM_HPP