PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ ptarray_free()

void ptarray_free ( POINTARRAY pa)

Definition at line 319 of file ptarray.c.

320 {
321  if (pa)
322  {
323  if (pa->serialized_pointlist && (!FLAGS_GET_READONLY(pa->flags)))
325  lwfree(pa);
326  }
327 }
#define FLAGS_GET_READONLY(flags)
Definition: liblwgeom.h:183
void lwfree(void *mem)
Definition: lwutil.c:242
lwflags_t flags
Definition: liblwgeom.h:417
uint8_t * serialized_pointlist
Definition: liblwgeom.h:420

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

Referenced by _lwt_HealEdges(), _lwt_MakeRingShell(), gbox_to_gml2(), gbox_to_gml3(), lwarc_linearize(), lwcircstring_free(), lwcircstring_from_wkb_state(), lwcircstring_linearize(), lwgeom_grid_in_place(), lwgeom_remove_repeated_points_in_place(), lwgeom_simplify_in_place(), lwline_chaikin(), lwline_clip_to_ordinate_range(), 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_clip_to_ordinate_range(), lwpoly_filterm(), lwpoly_free(), lwpoly_make_geos_friendly(), lwpoly_segmentize2d(), lwtriangle_clip_to_ordinate_range(), lwtriangle_free(), lwtriangle_from_wkb_state(), lwtriangle_is_repeated_points(), parse_geojson_multilinestring(), parse_geojson_multipoint(), parse_geojson_poly_rings(), ptarray_clamp_to_ordinate_range(), 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: