-------------------------------------------------------------------- */ msSDELayerGetSpatialColumn */ -------------------------------------------------------------------- */ A helper function to return the spatial column for */ an opened SDE layer */ / The caller owns the string after it is returne
| 1830 | /* The caller owns the string after it is returned. */ |
| 1831 | /* -------------------------------------------------------------------- */ |
| 1832 | char *msSDELayerGetSpatialColumn(layerObj *layer) |
| 1833 | { |
| 1834 | #ifdef USE_SDE |
| 1835 | |
| 1836 | msSDELayerInfo *sde=NULL; |
| 1837 | |
| 1838 | if(!msSDELayerIsOpen(layer)) { |
| 1839 | msSetError( MS_SDEERR, |
| 1840 | "SDE layer has not been opened.", |
| 1841 | "msSDELayerGetSpatialColumn()"); |
| 1842 | return NULL; |
| 1843 | } |
| 1844 | |
| 1845 | sde = layer->layerinfo; |
| 1846 | |
| 1847 | return(msStrdup(sde->column)); |
| 1848 | #else |
| 1849 | msSetError( MS_MISCERR, |
| 1850 | "SDE support is not available.", |
| 1851 | "msSDELayerGetSpatialColumn()"); |
| 1852 | return(NULL); |
| 1853 | #endif |
| 1854 | } |
| 1855 | /* -------------------------------------------------------------------- */ |
| 1856 | /* msSDELayerInitItemInfo */ |
| 1857 | /* -------------------------------------------------------------------- */ |
nothing calls this directly
no test coverage detected