hi koveras
to create multiple feature from wkt, we can iterate the following function
function createFeature(geometries) {
// variable geometries is in wkt format. this is a single feature WKT
var wkt = new OpenLayers.Format.WKT();
var polygonFeature = wkt.read(geometries);
// vectors is the vector layer
vectors.addFeatures([polygonFeature]);
}
there are definitely other and better ways to accomplish the same thing.
hope that helps
remi
On Thu, Sep 2, 2010 at 7:56 AM, koveras vehcna
<[email protected]>wrote:
>
> Hello everyone, I was wondering whether there is a way to display multiple
> WKT's on a map. I have written some PostgreSQL codes that collect the WKT
> data of certain coordinates. I also wrote a PHP code that pushes these WKT
> values into an array but I got stuck when I tried to implement a way to
> display all these WKT's at once. Is there a way to do this ? Thanks in
> advance.
>
>
> Koveras
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Is-there-a-way-to-display-multiple-WKT-data-tp5489277p5489277.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users