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

Function msSDELayerGetSpatialColumn

mapsde.c:1832–1854  ·  view source on GitHub ↗

-------------------------------------------------------------------- */ msSDELayerGetSpatialColumn */ -------------------------------------------------------------------- */ A helper function to return the spatial column for */ an opened SDE layer */ / The caller owns the string after it is returne

Source from the content-addressed store, hash-verified

1830/* The caller owns the string after it is returned. */
1831/* -------------------------------------------------------------------- */
1832char *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/* -------------------------------------------------------------------- */

Callers

nothing calls this directly

Calls 3

msSDELayerIsOpenFunction · 0.85
msSetErrorFunction · 0.85
msStrdupFunction · 0.85

Tested by

no test coverage detected