Why not use straight MapServer queries? Set a reasonable tolerance and that should work ok too.
Steve >>> On 1/6/2009 at 12:04 AM, in message <[email protected]>, Subha Ramakrishnan <[email protected]> wrote: > Hi, > > I am using Mapserver 5.0.2 with Openlayers. > I've a line layer (from mapserver) shown on my base map(google physical). > Now, when i click on a line, i want to show a pop using openlayers. > I am able to do this for a polygon layer. I send the lat,lon of the > point that is clicked and use the postgis query > "ST_Contains(topology,geomFromText('POINT(77.87117958068927 > 13.491965860913544)',-1))" to find the polygon (and fetch the polygon > specific data to show on pop up) and attach the Openlayers popup to the > point clicked. > > I am not able to do this for a line layer as the postgis query doesn't > return anything. > I tried this query also, > "ST_Contains(topology,geomFromText('POINT(77.87117958068927 > 13.491965860913544)',-1)) AND > distance(topology,geomFromText('POINT(77.87117958068927 > 13.491965860913544)',-1)) <= 1" but it doesn't work. > > Does any one know how to check if a point is a part of a line or if > there is any other way to show the pop up? > > Thanks a lot for the help. > > Regards, > Subha > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
