<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CUsers%5Cmonge%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CUsers%5Cmonge%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CUsers%5Cmonge%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;
        mso-font-charset:2;
        mso-generic-font-family:auto;
        mso-font-pitch:variable;
        mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;
        mso-font-charset:1;
        mso-generic-font-family:roman;
        mso-font-format:other;
        mso-font-pitch:variable;
        mso-font-signature:0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:-1610611985 1073750139 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:10.0pt;
        margin-left:0cm;
        line-height:115%;
        mso-pagination:widow-orphan;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:Calibri;
        mso-fareast-theme-font:minor-latin;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;
        mso-fareast-language:EN-US;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:Calibri;
        mso-fareast-theme-font:minor-latin;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;
        mso-fareast-language:EN-US;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-default-props:yes;
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:Calibri;
        mso-fareast-theme-font:minor-latin;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;
        mso-fareast-language:EN-US;}
.MsoPapDefault
        {mso-style-type:export-only;
        margin-bottom:10.0pt;
        line-height:115%;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;
        mso-header-margin:36.0pt;
        mso-footer-margin:36.0pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<p class="MsoNormal"><span style="" lang="EN-US">So thanks Julien
and Paul. <span style=""> </span>Thanks for help me</span></p>
<p class="MsoNormal"><span style="" lang="EN-US">Well I gonna
try more specific with my doubt. I answered for each one</span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"> </span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"> </span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"><b>Julien:</b></span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"> </span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US">Thanks for
MapScript examples, but it did not help me. You say <span style=""></span>“In short, msLoadMapInternal loads the mapfile
in a Map object and then msDrawMap is called”. I looking for this exactly. But
I don’t find “the intermediate step” <span style=""> </span>between LoadMapInternal and msDrawMap.
The Mapscript examples show general function like </span>$map = ms_newMapObj($map_path."europe.map") and $image=$map->draw();<span style="" lang="EN-US">, but internally others functions are requiered ..Actually I know:</span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"> </span></p><p class="MsoNoSpacing"><span style="" lang="EN-US">1.-LoadMapInternal()</span><span style="font-family: Wingdings;"><span style="">-></span></span><span style="" lang="EN-US">case LAYER: msGrowMapLayers()</span><span style="font-family: Wingdings;"><span style="">-></span></span><span style="" lang="EN-US">initLayer()</span><span style="font-family: Wingdings;"><span style="">-></span></span><span style="" lang="EN-US">LoadLayer()</span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US">2.-LoadLayer()</span><span style="font-family: Wingdings;" lang="EN-US"><span style="">-></span></span><span style="" lang="EN-US">case DATA:getString()</span><span style="font-family: Wingdings;" lang="EN-US"><span style="">-></span></span><span style="" lang="EN-US">msValidateParameter-></span><span style="font-family: Wingdings;" lang="EN-US"><span style=""></span></span><span style="" lang="EN-US">msLookupHashTable() </span><span style="font-family: Wingdings;" lang="EN-US"><span style="">-></span></span><span style="" lang="EN-US">msFree()</span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"></span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"><b>3.- ¿?<span style=""> </span>the intermediate step or function</b></span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US">4- msDrawmap()</span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"> </span></p><p class="MsoNoSpacing"><span style="" lang="EN-US"><u>When or Where DATA (layer->data) provides it’s string to DrawMap()? </u></span><br><span style="" lang="EN-US"></span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"><br></span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"><b>Note: </b>Assuming
that all variables of Map Object, Layer Object,Class Object (CLASS, SYMBOL,
EXTENT, SHAPEPATH, NAME, TYPE,DATA, etc) were loaded successfully.<u> In what
function msDrawMap is loaded or is required?</u></span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"> </span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"> </span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"><b>Paul:</b></span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"> </span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US">Thanks
it is a good help (drawMap->drawLayer->drawLayerShape). But <u>I don’t understand
even When or Where DATA (layer->data) provides it’s string to DrawMap() for drawing DATA of a LAYER? And
When or Where drawMap function is loaded o required?</u></span></p>
<p class="MsoNormal"><span style="" lang="EN-US"> </span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US">1.- LoadMapInternal()</span><span style="font-family: Wingdings;"><span style="">-></span></span><span style="" lang="EN-US">case LAYER: msGrowMapLayers()</span><span style="font-family: Wingdings;"><span style="">-></span></span><span style="" lang="EN-US">initLayer()</span><span style="font-family: Wingdings;"><span style="">-></span></span><span style="" lang="EN-US">LoadLayer()</span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US">2.-LoadLayer()</span><span style="font-family: Wingdings;" lang="EN-US"><span style="">-></span></span><span style="" lang="EN-US">case DATA:getString()</span><span style="font-family: Wingdings;" lang="EN-US"><span style="">-></span></span><span style="" lang="EN-US">msValidateParameter-></span><span style="font-family: Wingdings;" lang="EN-US"><span style=""></span></span><span style="" lang="EN-US">msLookupHashTable() </span><span style="font-family: Wingdings;" lang="EN-US"><span style="">-></span></span><span style="" lang="EN-US">msFree()</span></p>
<p class="MsoNoSpacing"><b><span style="" lang="EN-US">3.-¿? the
intermediate step or function()</span></b></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"><b>4.- ¿? the
intermediate step or function ()</b></span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US">5.- drawMap->drawLayer->drawLayerShape (Paul Ramsey)</span></p>
<p class="MsoNormal"><span style="" lang="EN-US"> </span></p><span style="" lang="EN-US"></span><p class="MsoNormal"><span style="" lang="EN-US"></span></p>
<p class="MsoNoSpacing"><span style="" lang="EN-US"><b>Note</b>: Assuming
that all variables of Map Object, Layer Object,Class Object (CLASS, SYMBOL,
EXTENT, SHAPEPATH, NAME, TYPE,DATA,etc) were loaded successfully. In what
function msDrawMap is loaded or is required or automatically it is activaded when LoadMapInternal is ok? <br></span></p><p class="MsoNoSpacing"><br></p><p class="MsoNoSpacing"> <br><span style="" lang="EN-US"></span></p>
Am I ok?<br><br><br>Thanks<br><br>Mauricio<br><br><br><br><br><br><br><br><div class="gmail_quote">2009/7/21 Paul Ramsey <span dir="ltr"><<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Approximately this:<br>
<br>
drawMap->drawLayer->drawLayerShape<br>
<font color="#888888"><br>
p<br>
</font><div><div></div><div class="h5"><br>
On Sun, Jul 19, 2009 at 11:50 PM, Mauricio Herrera<<a href="mailto:georazor@gmail.com">georazor@gmail.com</a>> wrote:<br>
> 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<br>
> know all internal structure of mapserver. However<br>
> I have a problem with DATA. I don't understand what function links DATA<br>
> value (layer->data) with next functions:<br>
><br>
> imageObj *msDrawMap(mapObj *map, int querymap)<br>
> int msShapefileOpen(shapefileObj *shpfile, char *mode, char *filename, int<br>
> log_failures)<br>
><br>
> (LoadLayer) file mapfile.c <----- What is the link function for DATA value?<br>
> --------->(msDrawMap) file mapdraw.c<br>
> (LoadLayer) file mapfile.c <----- What is the link function for DATA value?<br>
> ---------> (msShapefileOpen) file mapshape.c<br>
><br>
><br>
> For example:<br>
><br>
> 1.-loadLayer()-->getString() ---->linkfunction()?------->msDrawMap()<br>
> |<br>
> filename=layer->data;<br>
><br>
> 2.-loadLayer()-->getString() ---->linkfunction()?------->msShapefileOpen()<br>
> |<br>
> filename=layer->data;<br>
><br>
><br>
> I know that this imageObj *msDrawMap(mapObj *map, int querymap) function is<br>
> used for rendering the map file. Therefore this function<br>
> must know where the data are located ("/usr/local/geo/street") and DATA<br>
> provides this information with (layer-> data) ... but where does it? = S I<br>
> 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<br>
> functions getString(),msValidateParameter(),msLookupHashTable() and<br>
> msFree()..But In what moment DATA sends or provides its value to the<br>
> functions msDrawMap() o msShapefileOpen? where is the link function?<br>
><br>
><br>
> I hope you understand me<br>
><br>
> Thanks<br>
><br>
> Mauricio<br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> mapserver-dev mailing list<br>
> <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
><br>
><br>
</div></div></blockquote></div><br>