PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ ptarray_free()

void ptarray_free ( POINTARRAY pa)

Definition at line 328 of file ptarray.c.

329 {
330  if(pa)
331  {
332  if(pa->serialized_pointlist && ( ! FLAGS_GET_READONLY(pa->flags) ) )
334  lwfree(pa);
335  LWDEBUG(5,"Freeing a PointArray");
336  }
337 }
#define FLAGS_GET_READONLY(flags)
Definition: liblwgeom.h:144
void lwfree(void *mem)
Definition: lwutil.c:244
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
uint8_t * serialized_pointlist
Definition: liblwgeom.h:369
uint8_t flags
Definition: liblwgeom.h:372

References POINTARRAY::flags, FLAGS_GET_READONLY, LWDEBUG, lwfree(), and POINTARRAY::serialized_pointlist.

Referenced by _lwt_HealEdges(), _lwt_MakeRingShell(), gbox_to_gml2(), gbox_to_gml3(), lwarc_linearize(), lwcircstring_free(), lwcircstring_linearize(), lwcompound_linearize(), lwgeom_grid_in_place(), lwgeom_remove_repeated_points_in_place(), lwgeom_simplify_in_place(), lwline_chaikin(), lwline_filterm(), lwline_free(), lwline_from_lwgeom_array(), lwline_from_wkb_state(), lwline_locate_along(), lwline_split_by_point_to(), lwpoint_filterm(), lwpoint_free(), lwpoint_from_wkb_state(), lwpoly_chaikin(), lwpoly_filterm(), lwpoly_free(), lwpoly_make_geos_friendly(), lwpoly_segmentize2d(), lwtriangle_free(), lwtriangle_from_wkb_state(), lwtriangle_is_repeated_points(), parse_geojson_polygon(), ptarray_merge(), ptarray_segmentize2d(), ring_make_geos_friendly(), test_lwline_interpolate_points(), wkt_parser_circularstring_new(), wkt_parser_linestring_new(), wkt_parser_point_new(), wkt_parser_polygon_add_ring(), wkt_parser_ptarray_add_coord(), wkt_parser_triangle_new(), and yydestruct().

Here is the call graph for this function:
Here is the caller graph for this function: