Hi Eric

Thanks for replying back.
I am able to fetch information from database. But the problem is that I am 
not able to highlight the polygon on map.
To highlight it on map I need all the points in it. But the database I have 
in postgresql has field goem and I am not getting how to convert the goem 
field into coordinates so that I can get points to highlight the polygon on 
map.

Please suggest any function if there in postgres to convert the goemetry 
field to cordinates or any other method if exists to highlight polygon using 
goemetry.

Regards
Kusum



--------------------------------------------------
From: "Eric Lemoine" <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2008 12:29 PM
To: "kusum" <[EMAIL PROTECTED]>; <[email protected]>
Subject: Re: [OpenLayers-Users] How to get information on clicking on a 
polygon

> Hi. Is your polygon layer a vector (WFS for example) layer? If so you
> don't need GetFeatureInfo or anything like that since the data
> associated with your polygon can be retrieved while getting the
> polygon coords from the server. If your polygon layer is a WMS layer
> you indeed can use GetFeatureInfo. Cheers,
>
> 2008/3/14, kusum <[EMAIL PROTECTED]>:
>> Hii All
>>
>> I am trying to get information about a polygon from postgresql database 
>> when
>> user clicks on it.
>> I have read get Feature info example in openlayers, but was not able to
>> understand how they were fetching the data from database.
>>
>> Can somebody please explain a bit or if there is any other example
>> available.
>>
>> Thanks in advance.
>> Kusum
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/users
>> 

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to