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

Function msMSSQL2008LayerNextShape

mapmssql2008.c:1445–1464  ·  view source on GitHub ↗

find the next shape with the appropriate shape type (convert it if necessary) */ also, load in the attribute data */ MS_DONE => no more data */

Source from the content-addressed store, hash-verified

1443/* also, load in the attribute data */
1444/* MS_DONE => no more data */
1445int msMSSQL2008LayerNextShape(layerObj *layer, shapeObj *shape)
1446{
1447 int result;
1448
1449 msMSSQL2008LayerInfo *layerinfo;
1450
1451 layerinfo = getMSSQL2008LayerInfo(layer);
1452
1453 if(!layerinfo)
1454 {
1455 msSetError(MS_QUERYERR, "NextShape called with layerinfo = NULL", "msMSSQL2008LayerNextShape()");
1456 return MS_FAILURE;
1457 }
1458
1459 result = msMSSQL2008LayerGetShapeRandom(layer, shape, &(layerinfo->row_num));
1460 /* getshaperandom will increment the row_num */
1461 /* layerinfo->row_num ++; */
1462
1463 return result;
1464}
1465
1466/* Execute a query on the DB based on the query result. */
1467int msMSSQL2008LayerGetShape(layerObj *layer, shapeObj *shape, resultObj *record)

Callers

nothing calls this directly

Calls 3

getMSSQL2008LayerInfoFunction · 0.85
msSetErrorFunction · 0.85

Tested by

no test coverage detected