<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
So my first problem is to create the Geometry.<br>
Is there a function such as GeometryFromText() wich accept the coordinates of the corners of the polygon?<br>
<br>
Thank to all.<br>
<br>
P.S. If someone know a simple tutorial to get started, please send me a link.<br></blockquote></div><div><br></div><div>Hi,</div><div>I think you can use the WKTReader class; instantiate the object, and then use the method read(), passing a stl string with the Well Known Geometry</div>
<span class="Apple-style-span" style="font-family: Geneva; font-size: 14px; "><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="memItemLeft" nowrap align="right" valign="top" style="font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 13px; padding-top: 1px; padding-right: 0px; padding-bottom: 0px; padding-left: 8px; margin-top: 4px; margin-right: 4px; margin-bottom: 4px; margin-left: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(224, 224, 224); border-right-color: rgb(224, 224, 224); border-bottom-color: rgb(224, 224, 224); border-left-color: rgb(224, 224, 224); border-top-style: solid; border-right-style: none; border-bottom-style: none; border-left-style: none; background-color: rgb(250, 250, 250); ">
 </td><td class="memItemRight" valign="bottom" style="font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 13px; padding-top: 1px; padding-right: 8px; padding-bottom: 0px; padding-left: 8px; margin-top: 4px; margin-right: 4px; margin-bottom: 4px; margin-left: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(224, 224, 224); border-right-color: rgb(224, 224, 224); border-bottom-color: rgb(224, 224, 224); border-left-color: rgb(224, 224, 224); border-top-style: solid; border-right-style: none; border-bottom-style: none; border-left-style: none; background-color: rgb(250, 250, 250); ">
<font class="Apple-style-span" face="arial"><font class="Apple-style-span" face="Geneva"><br></font></font></td></tr></tbody></table></span><div><a href="http://geos.refractions.net/ro/doxygen_docs/html/classgeos_1_1io_1_1WKTReader.html">http://geos.refractions.net/ro/doxygen_docs/html/classgeos_1_1io_1_1WKTReader.html</a></div>
<div><br></div><div>              cheers,</div><div>                         Jo</div><br>-- <br>&quot;#define QUESTION ((bb) || !(bb))&quot;  (Shakespeare)<br><br>