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

Function msShapeDeleteLine

mapprimitive.c:180–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void msShapeDeleteLine( shapeObj *shape, int line )
181{
182 if( line < 0 || line >= shape->numlines ) {
183 assert( 0 );
184 return;
185 }
186
187 free( shape->line[line].point );
188 if( line < shape->numlines - 1 ) {
189 memmove( shape->line + line,
190 shape->line + line + 1,
191 sizeof(lineObj) * (shape->numlines - line - 1) );
192 }
193 shape->numlines--;
194}
195
196void msComputeBounds(shapeObj *shape)
197{

Callers 1

msProjectShapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected