getPoint4d_p(tmp->points, j, &p);
ptarray_append_point(ptarray, &p, LW_TRUE);
}
- lwfree(tmp);
+ lwline_free(tmp);
}
else if (geom->type == LINETYPE)
{
elog(ERROR, "2nd argument must be positive.");
PG_RETURN_NULL();
}
-#if POSTGIS_DEBUG_LEVEL > 0
- else
- {
- POSTGIS_DEBUGF(3, "perQuad = %d", perQuad);
- }
-#endif
+
+ POSTGIS_DEBUGF(3, "perQuad = %d", perQuad);
+
igeom = lwgeom_from_gserialized(geom);
- if ( ! lwgeom_has_arc(igeom) )
- {
- PG_RETURN_POINTER(geom);
- }
ogeom = lwgeom_segmentize(igeom, perQuad);
- if (ogeom == NULL) PG_RETURN_NULL();
- ret = geometry_serialize(ogeom);
lwgeom_free(igeom);
+
+ if (ogeom == NULL)
+ PG_RETURN_NULL();
+
+ ret = geometry_serialize(ogeom);
lwgeom_free(ogeom);
PG_FREE_IF_COPY(geom, 0);
PG_RETURN_POINTER(ret);
-- #1996 --
SELECT '#1996', ST_AsGeoJSON(ST_GeomFromText('POINT EMPTY'));
+-- #2001 --
+SELECT '#2001', ST_AsText(ST_CurveToLine(ST_GeomFromText('CURVEPOLYGON((0 0, 0 1, 1 1, 0 0))'), 2));
+
-- #2084 --
SELECT '#2048', num, ST_Within('POINT(-54.394 56.522)', "the_geom"), ST_CoveredBy('POINT(-54.394 56.522)', "the_geom")
FROM ( VALUES
#1957|1
#1978|3.1413
#1996|{"type":"Point","coordinates":[]}
+#2001|POLYGON((0 0,0 1,1 1,0 0))
#2048|1|f|f
#2048|2|t|t
#2048|3|f|f