[mapserver-users] polygon select

Brent Fraser bfraser at geoanalytic.com
Wed Dec 16 22:38:36 EST 2009


Geomoose 2 shows how to use OpenLayers to draw the geometry (see main.js's
sketch tools).  You could use Javascript to take OL's wkt of the polygon
and translate to Mapserver's MAPSHAPE cgi parameter for a query.

Best Regards,
Brent Fraser

> I need to create a tool that will allow the user to draw an arbitrary
> polygon, and the select objects intersecting that polygon. I'm using
> OpenLayers, MapServer and PostGIS. Right now I'm trying to figure out
> what protocol will support this operation. I don't think this can be
> done with "classic" MapServer, nor with WMS. Am I correct? So do I
> need to use WFS-T to get the polygon from the browser and pass it to
> PostGIS to do the query? Are there any other routes that I should be
> exploring?
>
> Thanks,
> Rich
>
> --
> Richard Greenwood
> richard.greenwood at gmail.com
> www.greenwoodmap.com
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>




More information about the mapserver-users mailing list