//lwgeom.h
-
// basic API for handling the LWGEOM, BOX2DFLOAT4, LWPOINT, LWLINE, and LWPOLY.
// See below for other support types like POINTARRAY and LWGEOM_INSPECTED
// already defined in postgis.h
-
- #define POINTTYPE 1
- #define LINETYPE 2
- #define POLYGONTYPE 3
- #define MULTIPOINTTYPE 4
- #define MULTILINETYPE 5
- #define MULTIPOLYGONTYPE 6
- #define COLLECTIONTYPE 7
+#define POINTTYPE 1
+#define LINETYPE 2
+#define POLYGONTYPE 3
+#define MULTIPOINTTYPE 4
+#define MULTILINETYPE 5
+#define MULTIPOLYGONTYPE 6
+#define COLLECTIONTYPE 7
/*
* This is the binary representation of lwgeom compatible
// find bounding box (standard one) zmin=zmax=0 if 2d (might change to NaN)
extern BOX3D *lwline_findbbox(LWLINE *line);
-
-//find length of this serialized line
-extern uint32 lwline_findlength(char *serialized_line);
-
//--------------------------------------------------------
typedef struct
extern POINT2D lwpoint_getPoint2d(LWPOINT *point);
extern POINT3D lwpoint_getPoint3d(LWPOINT *point);
-//find length of this serialized point
-extern uint32 lwpoint_findlength(char *serialized_point);
-
//--------------------------------------------------------
//DONT MIX 2D and 3D POINTS! *EVERYTHING* is either one or the other
// find bounding box (standard one) zmin=zmax=0 if 2d (might change to NaN)
extern BOX3D *lwpoly_findbbox(LWPOLY *poly);
-
-//find length of this serialized polygon
-extern uint32 lwpoly_findlength(char *serialized_line);
-
-
//------------------------------------------------------
// Multi-geometries
#include "lwgeom.h"
+// this will change to NaN when I figure out how to
+// get NaN in a platform-independent way
+#define NO_Z_VALUE 0.0
//#define DEBUG 1
//#define DEBUG_EXPLODED 1
#ifdef DEBUG_EXPLODED
void checkexplodedsize(char *srl, LWGEOM_EXPLODED *exploded, int alloced, char wantbbox);
#endif
-
-
-// this will change to NaN when I figure out how to
-// get NaN in a platform-independent way
-
-#define NO_Z_VALUE 0.0
+static uint32 lwline_findlength(char *serialized_line);
+static uint32 lwpoint_findlength(char *serialized_point);
+static uint32 lwpoly_findlength(char *serialized_line);
//*********************************************************************