PostGIS  2.2.7dev-r@@SVN_REVISION@@
LWLINE* lwline_construct ( int  srid,
GBOX bbox,
POINTARRAY points 
)

Definition at line 29 of file lwline.c.

References LWLINE::bbox, POINTARRAY::flags, LWLINE::flags, FLAGS_SET_BBOX, LINETYPE, lwalloc(), LWDEBUG, LWDEBUGF, LWLINE::points, LWLINE::srid, and LWLINE::type.

Referenced by _lwt_HealEdges(), BOX2D_to_LWGEOM(), BOX3D_to_LWGEOM(), GenerateLineStringGeometry(), GEOS2LWGEOM(), init_cg_suite(), linestring_from_pa(), lwcircstring_stroke(), lwcompound_stroke(), lwcurvepoly_construct_from_lwpoly(), LWGEOM_envelope(), LWGEOM_exteriorring_polygon(), lwgeom_from_encoded_polyline(), LWGEOM_interiorringn_polygon(), LWGEOM_line_substring(), lwgeom_segmentize_sphere(), lwline_clip_to_ordinate_range(), lwline_force_dims(), lwline_from_lwgeom_array(), lwline_from_lwmpoint(), lwline_from_ptarray(), lwline_from_twkb_state(), lwline_from_wkb_state(), lwline_grid(), lwline_locate_between_m(), lwline_measured_from_lwline(), lwline_remove_repeated_points(), lwline_removepoint(), lwline_segmentize2d(), lwline_set_effective_area(), lwline_simplify(), lwline_split_by_point_to(), lwmcurve_stroke(), lwt_AddPolygon(), parse_geojson_linestring(), parse_geojson_multilinestring(), parse_gml_curve(), parse_gml_line(), parse_kml_line(), path_to_geometry(), rt_raster_get_convex_hull(), rt_raster_get_envelope_geom(), RTreeCreateLeafNode(), SFCGAL2LWGEOM(), ST_BoundingDiagonal(), test_gbox_from_spherical_coordinates(), test_lwline_clip_big(), and wkt_parser_linestring_new().

30 {
31  LWLINE *result;
32  result = (LWLINE*) lwalloc(sizeof(LWLINE));
33 
34  LWDEBUG(2, "lwline_construct called.");
35 
36  result->type = LINETYPE;
37 
38  result->flags = points->flags;
39  FLAGS_SET_BBOX(result->flags, bbox?1:0);
40 
41  LWDEBUGF(3, "lwline_construct type=%d", result->type);
42 
43  result->srid = srid;
44  result->points = points;
45  result->bbox = bbox;
46 
47  return result;
48 }
#define LINETYPE
Definition: liblwgeom.h:71
uint8_t type
Definition: liblwgeom.h:402
GBOX * bbox
Definition: liblwgeom.h:404
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
int32_t srid
Definition: liblwgeom.h:405
uint8_t flags
Definition: liblwgeom.h:353
#define FLAGS_SET_BBOX(flags, value)
Definition: liblwgeom.h:132
void * lwalloc(size_t size)
Definition: lwutil.c:199
uint8_t flags
Definition: liblwgeom.h:403
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55
POINTARRAY * points
Definition: liblwgeom.h:406

Here is the call graph for this function:

Here is the caller graph for this function: