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

Function msRASTERLayerOpen

maprasterquery.c:1186–1206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1184/************************************************************************/
1185
1186int msRASTERLayerOpen(layerObj *layer)
1187{
1188#ifndef USE_GDAL
1189 msSetError( MS_IMGERR,
1190 "Rasters queries only supported with GDAL support enabled.",
1191 "msRasterQueryByRect()" );
1192 return MS_FAILURE;
1193#else
1194 rasterLayerInfo *rlinfo;
1195
1196 /* If we don't have info, initialize an empty one now */
1197 if( layer->layerinfo == NULL )
1198 msRasterLayerInfoInitialize( layer );
1199
1200 rlinfo = (rasterLayerInfo *) layer->layerinfo;
1201
1202 rlinfo->refcount = rlinfo->refcount + 1;
1203
1204 return MS_SUCCESS;
1205#endif /* def USE_GDAL */
1206}
1207
1208/************************************************************************/
1209/* msRASTERIsLayerOpen() */

Callers

nothing calls this directly

Calls 2

msSetErrorFunction · 0.85

Tested by

no test coverage detected