-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathGeometryUtils.h
More file actions
31 lines (21 loc) · 795 Bytes
/
Copy pathGeometryUtils.h
File metadata and controls
31 lines (21 loc) · 795 Bytes
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
#ifndef _GeometryUtils_
#define _GeometryUtils_
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <errno.h>
#include <proj_api.h>
#include <geos_c.h>
#ifndef PI
#define PI 3.14159265358979323846
#endif
void gu_debug(const char *fmt, ...);
GEOSCoordSeq gu_reverseCoordSeq(const GEOSCoordSequence *seq);
GEOSCoordSeq gu_transformCoordSeq(const GEOSCoordSequence *seq,projPJ pj_src,projPJ pj_dst);
GEOSCoordSeq gu_substringCoordSeq(const GEOSCoordSequence *seq, double dstart, double dend);
GEOSGeom gu_reverseGeom(const GEOSGeom geom);
GEOSGeom gu_transformGeom(const GEOSGeom geom,projPJ pj_src,projPJ pj_dst);
GEOSGeom gu_substringLineGeom(const GEOSGeom geom,double start,double end);
#endif