<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=812002821-08102009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=812002821-08102009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=812002821-08102009>this is the way to get the vertexes of a polygon
feature:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>var theVertexes =
thePolygonFeature.geometry.components[0].components;</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>for(var
i=0;i<theVertexes.length;i++)<BR> ...
theVertexes[i];</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=812002821-08102009><FONT face=Arial
color=#0000ff size=2>or use </FONT></SPAN><SPAN class=812002821-08102009><FONT
face=Arial color=#0000ff size=2>vectorLayer.features[0].geometry, that returns
the wkt string for the polygon feature</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=812002821-08102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=812002821-08102009><FONT face=Arial
color=#0000ff size=2>POLYGON((-1487158.8221094 -2661231.5764062,1878516.406875
-2504688.5425,3209132.1950781 -6653078.9410156,-1174072.7542969
-6300857.1147266,-1487158.8221094 -2661231.5764062))</FONT></SPAN><FONT
face=Arial color=#0000ff size=2></FONT></DIV>
<DIV> </DIV>
<DIV><SPAN class=812002821-08102009></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>A<SPAN
class=812002821-08102009>rnd</SPAN></FONT></FONT></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von
</B>fsalas<BR><B>Gesendet:</B> Donnerstag, 8. Oktober 2009 23:07<BR><B>An:</B>
users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users] How obtain the vertex
in openlayer<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2> Hi,
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I need obtain the list of the vertex of my polygon
becouse after that I need to pass this value to POLYGON parameters and obtain
all the objects inside the polygon.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I use this</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>var drawpolygon = new
OpenLayers.Control.DrawFeature(<BR>
polygonLayer,
OpenLayers.Handler.Polygon,<BR>
{displayClass:
'olControlDrawFeaturePolygon'}<BR>
);</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> panel.addControls([new
OpenLayers.Control.Navigation(), drawpolygon]);</FONT></DIV>
<DIV><FONT face=Arial size=2>..</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>************************************************************* This is the
Sql for postgis **************************</FONT></DIV>
<DIV><FONT face=Arial size=2>SELECT cod,tipo,empresa,the_geom<BR>FROM
sennal <BR>WHERE sennal.the_geom && GeomFromText('POLYGON((-85.47677
23.56344,-82.31771 23.51950,-82.33468 21.03659,-85.47677 23.56344))',4267) and
tipo =
'FV';<BR>*********************************************************</DIV></FONT>
<DIV><FONT face=Arial size=2>How implement this ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards , salas</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>var drawpolygon = new
OpenLayers.Control.DrawFeature(<BR>
polygonLayer,
OpenLayers.Handler.Polygon,<BR>
{displayClass:
'olControlDrawFeaturePolygon'}<BR>
);</FONT></DIV></BODY></HTML>