extern int lwcircstring_compute_box2d_p(const LWCIRCSTRING *curve, BOX2DFLOAT4 *box);
extern BOX2DFLOAT4* lwgeom_compute_box2d(const LWGEOM *lwgeom);
extern char* lwpoint_to_latlon(const LWPOINT *p, const char *format);
-extern int lwline_is_closed(LWLINE *line);
-extern int lwcircstring_is_closed(LWCIRCSTRING *curve);
-extern int lwcompound_is_closed(LWCOMPOUND *curve);
-extern int lwpsurface_is_closed(LWPSURFACE *psurface);
-extern int lwtin_is_closed(LWTIN *tin);
+extern int lwline_is_closed(const LWLINE *line);
+extern int lwcircstring_is_closed(const LWCIRCSTRING *curve);
+extern int lwcompound_is_closed(const LWCOMPOUND *curve);
+extern int lwpsurface_is_closed(const LWPSURFACE *psurface);
+extern int lwtin_is_closed(const LWTIN *tin);
/**
* Ensure the outer ring is clockwise oriented and all inner rings
}
int
-lwcircstring_is_closed(LWCIRCSTRING *curve)
+lwcircstring_is_closed(const LWCIRCSTRING *curve)
{
if (FLAGS_GET_Z(curve->flags))
return ptarray_isclosed3d(curve->points);
}
int
-lwcompound_is_closed(LWCOMPOUND *compound)
+lwcompound_is_closed(const LWCOMPOUND *compound)
{
size_t size;
int npoints=0;
col = lwcollection_add_lwgeom(col, geom);
return LW_SUCCESS;
-}
\ No newline at end of file
+}
}
int
-lwline_is_closed(LWLINE *line)
+lwline_is_closed(const LWLINE *line)
{
if (FLAGS_GET_Z(line->type))
return ptarray_isclosed3d(line->points);
/* We supposed that the geometry is valid
we could have wrong result if not */
-int lwpsurface_is_closed(LWPSURFACE *psurface)
+int lwpsurface_is_closed(const LWPSURFACE *psurface)
{
int i, j, k;
int narcs, carc;
/* We supposed that the geometry is valid
we could have wrong result if not */
-int lwtin_is_closed(LWTIN *tin)
+int lwtin_is_closed(const LWTIN *tin)
{
int i, j, k;
int narcs, carc;