MCPcopy Index your code
hub / github.com/MapServer/MapServer / msAddLine

Function msAddLine

mapprimitive.c:311–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311int msAddLine(shapeObj *p, lineObj *new_line)
312{
313 lineObj lineCopy;
314
315 lineCopy.numpoints = new_line->numpoints;
316 lineCopy.point = (pointObj *) malloc(new_line->numpoints*sizeof(pointObj));
317 MS_CHECK_ALLOC(lineCopy.point, new_line->numpoints*sizeof(pointObj), MS_FAILURE);
318
319 memcpy( lineCopy.point, new_line->point, sizeof(pointObj) * new_line->numpoints );
320
321 return msAddLineDirectly( p, &lineCopy );
322}
323
324/*
325** Same as msAddLine(), except that this version "seizes" the points

Callers 15

FLTGML2Shape_XMLNodeFunction · 0.85
loadQueryParamsFunction · 0.85
ogrGeomPointsFunction · 0.85
loadFormFunction · 0.85
process_shapefilesFunction · 0.85
msRASTERLayerGetShapeFunction · 0.85
msProjectShapeLineFunction · 0.85
loadFeatureFunction · 0.85
get_metricsFunction · 0.85
force_to_pointsFunction · 0.85
force_to_linesFunction · 0.85

Calls 1

msAddLineDirectlyFunction · 0.85

Tested by

no test coverage detected