MCPcopy Create free account
hub / github.com/MapServer/MapServer / imageVectorSymbolAGG

Function imageVectorSymbolAGG

mapagg.cpp:407–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407static mapserver::path_storage imageVectorSymbolAGG(symbolObj *symbol) {
408 mapserver::path_storage path;
409 bool is_new=true;
410 for(int i=0;i < symbol->numpoints;i++) {
411 if((symbol->points[i].x == -99) && (symbol->points[i].y == -99)) { // (PENUP)
412 is_new=true;
413 } else {
414 if(is_new) {
415 path.move_to(symbol->points[i].x,symbol->points[i].y);
416 is_new=false;
417 }
418 else {
419 path.line_to(symbol->points[i].x,symbol->points[i].y);
420 }
421 }
422 }
423 return path;
424}
425
426
427int agg2RenderVectorSymbol(imageObj *img, double x, double y,

Callers 1

agg2RenderVectorSymbolFunction · 0.85

Calls 2

move_toMethod · 0.45
line_toMethod · 0.45

Tested by

no test coverage detected