<br>Hi,<div><br></div><div>I don't know if maybe this question is out of interest in this list, or if it is an obvious thing that I can't see..</div><div>But, I would like to know if it is possible to draw a line making a WFS request, to a data source in which the geometry is POINT.</div>
<div><br></div><div>If the geometry of the datasource is POINT it draws points, and if the geometry is LINESTRING then it draws a line... But, how to draw a line when the source is a couple of POINT?</div><div><br></div>
<div>I'm creating the vector layer like this:</div><div><br></div><div><div>wfs = new OpenLayers.Layer.Vector("WFST-Vector", {</div><div> strategies: [new OpenLayers.Strategy.BBOX(), oSaveStrategy], </div>
<div> protocol: new OpenLayers.Protocol.WFS({ </div><div> version: "1.0.0",</div><div> url: "<a href="http://localhost:8080/geoserver/wfs">http://localhost:8080/geoserver/wfs</a>",</div>
<div> featureType: "pointsDS",</div><div> srsName: "EPSG:23031",</div><div> featureNS: "<a href="http://www.mapmap.org/g4wd">http://www.mapmap.org/g4wd</a>",</div>
<div> geometryName: "the_geom",</div><div> schema: "<a href="http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&TypeName=G4WD:pointsDS">http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&TypeName=G4WD:pointsDS</a>"</div>
<div> })</div><div> });</div><div><br></div><div>And the G4WD:pointsDS' datasource is a postgis table, where the geometry field is POINT.</div><div><br></div><div>Thanks..</div></div>