I have some geoserver layers created from PostGIS tables. I load them on map using OpenLayers and use WMS GetFeatureInfo to get features on mouse click.
I have observed that GetFeatureInfo request optimizes the returned Geometries by merging vertices which are very close. However, for editing, I need to get all the vertices.
Is there a way to tell WMS GetFeatureInfo to retrieve all vertices?
Here is a sample request I am sending:
http://localhost:8080/geoserver/MyWorkSpace/wms
?LAYERS=MyLayer
&QUERY_LAYERS=MyLayer
&STYLES=MyLayer_Style
&SERVICE=WMS
&VERSION=1.1.1
&REQUEST=GetFeatureInfo
&BBOX=10064619.024143,2730298.878509,10064682.024975,2730340.381427
&FEATURE_COUNT=10
&HEIGHT=556&WIDTH=844
&INFO_FORMAT=application/vnd.ogc.gml
&SRS=EPSG:900913
&X=302
&Y=265
As commented by user30184, I could use WFS. But it appears that WFS does not take pixel coordinates as input. So I will have to translate the pixel to coordinates, which can be done.
However, in that case how can I consider style of the layer. For example, for a point layer with large radius, user might not be able to select the points even if clicking inside the point. Am I missing something?