find the next shape with the appropriate shape type (convert it if necessary) */ also, load in the attribute data */ MS_DONE => no more data */
| 1443 | /* also, load in the attribute data */ |
| 1444 | /* MS_DONE => no more data */ |
| 1445 | int 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. */ |
| 1467 | int msMSSQL2008LayerGetShape(layerObj *layer, shapeObj *shape, resultObj *record) |
nothing calls this directly
no test coverage detected