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

Function msLayerOpen

maplayer.c:74–95  ·  view source on GitHub ↗

** Does exactly what it implies, readies a layer for processing. */

Source from the content-addressed store, hash-verified

72** Does exactly what it implies, readies a layer for processing.
73*/
74int msLayerOpen(layerObj *layer)
75{
76 /* RFC-69 clustering support */
77 if (layer->cluster.region)
78 return msClusterLayerOpen(layer);
79
80 if(layer->features && layer->connectiontype != MS_GRATICULE )
81 layer->connectiontype = MS_INLINE;
82
83 if(layer->tileindex && layer->connectiontype == MS_SHAPEFILE)
84 layer->connectiontype = MS_TILED_SHAPEFILE;
85
86 if(layer->type == MS_LAYER_RASTER && layer->connectiontype != MS_WMS)
87 layer->connectiontype = MS_RASTER;
88
89 if ( ! layer->vtable) {
90 int rv = msInitializeVirtualTable(layer);
91 if (rv != MS_SUCCESS)
92 return rv;
93 }
94 return layer->vtable->LayerOpen(layer);
95}
96
97/*
98** Returns MS_TRUE if layer has been opened using msLayerOpen(), MS_FALSE otherwise

Callers 15

msSLDApplySLDFunction · 0.85
msQueryByIndexFunction · 0.85
msQueryByAttributesFunction · 0.85
msQueryByFilterFunction · 0.85
msQueryByRectFunction · 0.85
msQueryByFeaturesFunction · 0.85
msQueryByPointFunction · 0.85
msQueryByShapeFunction · 0.85
msDrawVectorLayerFunction · 0.85
msTiledSHPOpenFileFunction · 0.85

Calls 2

msClusterLayerOpenFunction · 0.85
msInitializeVirtualTableFunction · 0.85

Tested by

no test coverage detected