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'}
            );
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to