Hi,<div><br></div><div>And how can I modify the PostGIS SQL? I don't know how/where I can do it..</div><div><br></div><div>Thanks!<br><br><div class="gmail_quote">2009/12/10 David Fawcett <span dir="ltr"><<a href="mailto:david.fawcett@gmail.com">david.fawcett@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am sure that in the context of WFS-T it is more complicated, but<br>
would it work if you used a linestring layer and modified your PostGIS<br>
SQL to wrap your points in something like a ST_MakeLine() function?<br>
<div><div></div><div class="h5"><br>
On Thu, Dec 10, 2009 at 9:39 AM, JuKiM <<a href="mailto:rifins@gmail.com">rifins@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
> I don't know if maybe this question is out of interest in this list, or if<br>
> it is an obvious thing that I can't see..<br>
> But, I would like to know if it is possible to draw a line making a WFS<br>
> request, to a data source in which the geometry is POINT.<br>
> If the geometry of the datasource is POINT it draws points, and if the<br>
> geometry is LINESTRING then it draws a line... But, how to draw a line when<br>
> the source is a couple of POINT?<br>
> I'm creating the vector layer like this:<br>
> wfs = new OpenLayers.Layer.Vector("WFST-Vector", {<br>
> strategies: [new OpenLayers.Strategy.BBOX(), oSaveStrategy],<br>
> protocol: new OpenLayers.Protocol.WFS({<br>
> version: "1.0.0",<br>
> url: "<a href="http://localhost:8080/geoserver/wfs" target="_blank">http://localhost:8080/geoserver/wfs</a>",<br>
> featureType: "pointsDS",<br>
> srsName: "EPSG:23031",<br>
> featureNS: "<a href="http://www.mapmap.org/g4wd" target="_blank">http://www.mapmap.org/g4wd</a>",<br>
> geometryName: "the_geom",<br>
> schema:<br>
> "<a href="http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&TypeName=G4WD:pointsDS" target="_blank">http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&TypeName=G4WD:pointsDS</a>"<br>
> })<br>
> });<br>
> And the G4WD:pointsDS' datasource is a postgis table, where the geometry<br>
> field is POINT.<br>
> Thanks..<br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
> <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>