}
LWTIN;
-/**
-* Snap-to-grid Support
-*/
-typedef struct gridspec_t
-{
- double ipx;
- double ipy;
- double ipz;
- double ipm;
- double xsize;
- double ysize;
- double zsize;
- double msize;
-}
-gridspec;
-
/* Casts LWGEOM->LW* (return NULL if cast is illegal) */
extern LWMPOLY *lwgeom_as_lwmpoly(const LWGEOM *lwgeom);
extern LWMLINE *lwgeom_as_lwmline(const LWGEOM *lwgeom);
/**
* Snap to grid
*/
+
+/**
+* Snap-to-grid Support
+*/
+typedef struct gridspec_t
+{
+ double ipx;
+ double ipy;
+ double ipz;
+ double ipm;
+ double xsize;
+ double ysize;
+ double zsize;
+ double msize;
+}
+gridspec;
+
LWGEOM* lwgeom_grid(const LWGEOM *lwgeom, const gridspec *grid);
LWCOLLECTION* lwcollection_grid(const LWCOLLECTION *coll, const gridspec *grid);
LWPOINT* lwpoint_grid(const LWPOINT *point, const gridspec *grid);