<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.&quot;europe.map&quot;) and $image=$map-&gt;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="">-&gt;</span></span><span style="" lang="EN-US">case LAYER: msGrowMapLayers()</span><span style="font-family: Wingdings;"><span style="">-&gt;</span></span><span style="" lang="EN-US">initLayer()</span><span style="font-family: Wingdings;"><span style="">-&gt;</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="">-&gt;</span></span><span style="" lang="EN-US">case DATA:getString()</span><span style="font-family: Wingdings;" lang="EN-US"><span style="">-&gt;</span></span><span style="" lang="EN-US">msValidateParameter-&gt;</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="">-&gt;</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-&gt;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-&gt;drawLayer-&gt;drawLayerShape). But <u>I don’t understand
even When or Where  DATA (layer-&gt;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="">-&gt;</span></span><span style="" lang="EN-US">case LAYER: msGrowMapLayers()</span><span style="font-family: Wingdings;"><span style="">-&gt;</span></span><span style="" lang="EN-US">initLayer()</span><span style="font-family: Wingdings;"><span style="">-&gt;</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="">-&gt;</span></span><span style="" lang="EN-US">case DATA:getString()</span><span style="font-family: Wingdings;" lang="EN-US"><span style="">-&gt;</span></span><span style="" lang="EN-US">msValidateParameter-&gt;</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="">-&gt;</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-&gt;drawLayer-&gt;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">&lt;<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>&gt;</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-&gt;drawLayer-&gt;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&lt;<a href="mailto:georazor@gmail.com">georazor@gmail.com</a>&gt; wrote:<br>
&gt; Hello<br>
&gt;<br>
&gt; Really I hope you  can help me with next doubt,I appreciate your help...<br>
&gt;<br>
&gt; Well, I am drawing  a function map of mapserver. Because I would like to<br>
&gt; know all internal structure of mapserver. However<br>
&gt; I have a problem with DATA. I don&#39;t understand what function links  DATA<br>
&gt; value (layer-&gt;data) with next functions:<br>
&gt;<br>
&gt; imageObj *msDrawMap(mapObj *map, int querymap)<br>
&gt; int msShapefileOpen(shapefileObj *shpfile, char *mode, char *filename, int<br>
&gt; log_failures)<br>
&gt;<br>
&gt; (LoadLayer) file mapfile.c  &lt;----- What is the link function for DATA value?<br>
&gt; ---------&gt;(msDrawMap) file mapdraw.c<br>
&gt; (LoadLayer) file mapfile.c  &lt;----- What is the link function for DATA value?<br>
&gt; ---------&gt; (msShapefileOpen) file mapshape.c<br>
&gt;<br>
&gt;<br>
&gt; For example:<br>
&gt;<br>
&gt; 1.-loadLayer()--&gt;getString() ----&gt;linkfunction()?-------&gt;msDrawMap()<br>
&gt;                                                       |<br>
&gt;                                                 filename=layer-&gt;data;<br>
&gt;<br>
&gt; 2.-loadLayer()--&gt;getString() ----&gt;linkfunction()?-------&gt;msShapefileOpen()<br>
&gt;                                                       |<br>
&gt;                                                 filename=layer-&gt;data;<br>
&gt;<br>
&gt;<br>
&gt; I know that this  imageObj *msDrawMap(mapObj *map, int querymap) function is<br>
&gt; used for rendering the map file. Therefore this function<br>
&gt; must know where the data are located (&quot;/usr/local/geo/street&quot;)  and DATA<br>
&gt; provides this information with (layer-&gt; data) ... but where does it? = S I<br>
&gt; can not find the function..<br>
&gt;<br>
&gt;<br>
&gt; And I  know too that:<br>
&gt;<br>
&gt; loadLayer() this function contain  a (case DATA:)  and  this call the<br>
&gt; functions  getString(),msValidateParameter(),msLookupHashTable() and<br>
&gt; msFree()..But In what moment DATA sends or provides its value to the<br>
&gt; functions msDrawMap() o msShapefileOpen? where is the link function?<br>
&gt;<br>
&gt;<br>
&gt; I hope you understand me<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Mauricio<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; mapserver-dev mailing list<br>
&gt; <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>