[OpenLayers-Users] How obtain the vertex in openlayer
fsalas
fsalas at geocuba.cu
Thu Oct 8 17:06:48 EDT 2009
Hi,
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.
I use this
.
.
.
.
var drawpolygon = new OpenLayers.Control.DrawFeature(
polygonLayer, OpenLayers.Handler.Polygon,
{displayClass: 'olControlDrawFeaturePolygon'}
);
panel.addControls([new OpenLayers.Control.Navigation(), drawpolygon]);
..
.
.
.
************************************************************* This is the Sql for postgis **************************
SELECT cod,tipo,empresa,the_geom
FROM sennal
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';
*********************************************************
How implement this ?
Regards , salas
var drawpolygon = new OpenLayers.Control.DrawFeature(
polygonLayer, OpenLayers.Handler.Polygon,
{displayClass: 'olControlDrawFeaturePolygon'}
);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091008/4dbe804b/attachment.html
More information about the Users
mailing list