Hello <br><br>Really I hope you can help me with next doubt,I appreciate your help...<br><br>Well, I am drawing a function map of mapserver. Because I would like to know all internal structure of mapserver. However<br>I have a problem with DATA. I don't understand what function links DATA value (layer->data) with next functions:<br>
<br><ul><li>imageObj *msDrawMap(mapObj *map, int querymap)</li><li>int msShapefileOpen(shapefileObj *shpfile, char *mode, char *filename, int log_failures)</li></ul><br>(LoadLayer) file mapfile.c <----- What is the link function for DATA value? --------->(msDrawMap) file mapdraw.c <br>
(LoadLayer) file mapfile.c <----- What is the link function for DATA value? ---------> (msShapefileOpen) file mapshape.c <br><br><br>For example:<br><br>1.-loadLayer()-->getString() ----><b>linkfunction()</b>?------->msDrawMap()<br>
|<br> filename=layer->data; <br> <br>2.-loadLayer()-->getString() ----><b>linkfunction()</b>?------->msShapefileOpen()<br>
|<br> filename=layer->data; <br><br><br>I know that this imageObj *msDrawMap(mapObj *map, int querymap) function is used for rendering the map file. Therefore this function<br>
must know where the data are located ("/usr/local/geo/street") and DATA provides this information with (layer-> data) ... but where does it? = S I can not find the function..<br><br><br>And I know too that:<br>
<br>loadLayer() this function contain a (case DATA:) and this call the functions getString(),msValidateParameter(),msLookupHashTable() and msFree()..But In what moment DATA sends or provides its value to the functions msDrawMap() o msShapefileOpen? where is the link function?<br>
<br><br>I hope you understand me<br><br>Thanks<br><br>Mauricio<br>