2016-12-05 23:18:27 +00:00
|
|
|
#define GEOM_POINT 0 /* array of positions */
|
|
|
|
#define GEOM_MULTIPOINT 1 /* array of arrays of positions */
|
|
|
|
#define GEOM_LINESTRING 2 /* array of arrays of positions */
|
|
|
|
#define GEOM_MULTILINESTRING 3 /* array of arrays of arrays of positions */
|
|
|
|
#define GEOM_POLYGON 4 /* array of arrays of arrays of positions */
|
|
|
|
#define GEOM_MULTIPOLYGON 5 /* array of arrays of arrays of arrays of positions */
|
|
|
|
#define GEOM_TYPES 6
|
|
|
|
|
|
|
|
extern const char *geometry_names[GEOM_TYPES];
|
|
|
|
extern int geometry_within[GEOM_TYPES];
|
|
|
|
extern int mb_geometry[GEOM_TYPES];
|
|
|
|
|
|
|
|
void json_context(json_object *j);
|
2016-12-06 00:22:44 +00:00
|
|
|
void parse_geometry(int t, json_object *j, drawvec &out, int op, const char *fname, int line, json_object *feature);
|
2016-12-07 23:54:58 +00:00
|
|
|
|
2017-11-07 19:06:30 +00:00
|
|
|
void stringify_value(json_object *value, int &type, std::string &stringified, const char *reading, int line, json_object *feature);
|