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

Function layerObj_addFeature

mapscript/php/mapscript_i.c:640–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638 }
639
640int layerObj_addFeature(layerObj *self, shapeObj *shape) {
641 if(self->features != NULL && self->features->tailifhead != NULL)
642 shape->index = self->features->tailifhead->shape.index + 1;
643 else
644 shape->index = 0;
645 if(insertFeatureList(&(self->features), shape) == NULL)
646 return MS_FAILURE;
647 else
648 return MS_SUCCESS;
649 }
650
651char *layerObj_getMetaData(layerObj *self, char *name) {
652 return(msLookupHashTable(&(self->metadata), name));

Callers 1

layer.cFile · 0.85

Calls 1

insertFeatureListFunction · 0.85

Tested by

no test coverage detected