[mapserver-users] Finding Lat-Long from geometric data type of postgre
Simon Haddon
simon at sibern.com.au
Wed May 20 15:50:22 PDT 2009
Hi,
I use a combination of server code and Javascript.
I convert the lat long values to a javascript array which is loaded into a
2 dimensional array. This data is then loaded with the map which is quick
if your polygons are not too complicated.
I then have a mouse over ont he map which checks as the mouse moves to see
if is within the polygon. Since I am already creating lat/long values from
the mouse over I just need to do a simple point in polygon check and I am
there.
The other way I have thought is to create a html map using the polygon
values that come back but I haven't done that.
To display the tooltip I use js_graphics (http://www.walterzorn.com/)
library of tools which I find fantastic.
Cheers,
Simon
On Wed, 20 May 2009 01:54:23 -0700, Mukul Gupta wrote:
Hi,
I want to display a tool tip for the polygons in my application for which
I need lat-long values of polygon. Please tell me how to retrieve the
values from geometry type field of postgre or If
there is any other way of
doing this.
Regards
Mukul
Cheers,
SIMON
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090521/bcf30ad1/attachment.htm>
More information about the MapServer-users
mailing list