Bob,<br><br>I used Data because in Map Guide Studio the Geometry field said ĻDataĻ.<br>What else can it be?<br><br>Amit<br><br><br><br><div><span class="gmail_quote">On 6/13/06, <b class="gmail_sendername">Robert Bray</b> <
<a href="mailto:robert.bray@autodesk.com">robert.bray@autodesk.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Amit,</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">In the sample code "Data" is
the name of the geometry column in the SDF file. Your SDF file may use a
different name to refer to the geometry property. One way to determine the name
is to create a layer based on that SDF in Studio and see what Studio puts in
the "Geometry:" field.</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Bob</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div>
<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" size="2" width="100%">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> Amit Stein [mailto:
<a href="mailto:amitstein@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">amitstein@gmail.com</a>]
<br>
<b><span style="font-weight: bold;">Sent:</span></b> Monday, June 12, 2006 10:31
PM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:users@mapguide.osgeo.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users@mapguide.osgeo.org</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [mapguide-users] Create
Layer</span></font></p>
</div></div><div><span class="e" id="q_10bcc168d4d61d8f_1">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi everybody,<br>
<br>
I used the functions from layerdefinitionfactory.php to create a layer and the
functions from the Developer's Guide (page 59) to add a layer. I had trouble
creating and adding a layer to a map. None of the stuff I've been trying
worked. <br>
<br>
The Feauture Source I am using is a SDF file and the type of geometry is Data.
I used the Data type because in Map Guide Studio worked. However, I am not sure
if this is what I am supposed to use when programmatically creating layers. <br>
<br>
I suppose that what I am doing is correct, but I canīt see the results. When I
run the script the layer does not show up in the map. Maybe the layer was
created but it wasn't added. Does anybody know how I can fix this???<br>
<br>
I attached here the code. If somebody needs the SDF, ask me (I donīt send it
because it weights 3MB).<br>
Thank you<br>
Amit</span></font></p>
</span></div><div></div>
</div>
</div></blockquote></div><br>