Hi,<div><br></div><div>And how can I modify the PostGIS SQL? I don&#39;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">&lt;<a href="mailto:david.fawcett@gmail.com">david.fawcett@gmail.com</a>&gt;</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 &lt;<a href="mailto:rifins@gmail.com">rifins@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt; I don&#39;t know if maybe this question is out of interest in this list, or if<br>
&gt; it is an obvious thing that I can&#39;t see..<br>
&gt; But, I would like to know if it is possible to draw a line making a WFS<br>
&gt; request, to a data source in which the geometry is POINT.<br>
&gt; If the geometry of the datasource is POINT it draws points, and if the<br>
&gt; geometry is LINESTRING then it draws a line...  But, how to draw a line when<br>
&gt; the source is a couple of POINT?<br>
&gt; I&#39;m creating the vector layer like this:<br>
&gt; wfs = new OpenLayers.Layer.Vector(&quot;WFST-Vector&quot;, {<br>
&gt;         strategies: [new OpenLayers.Strategy.BBOX(), oSaveStrategy],<br>
&gt;         protocol: new OpenLayers.Protocol.WFS({<br>
&gt;             version: &quot;1.0.0&quot;,<br>
&gt;             url: &quot;<a href="http://localhost:8080/geoserver/wfs" target="_blank">http://localhost:8080/geoserver/wfs</a>&quot;,<br>
&gt;             featureType: &quot;pointsDS&quot;,<br>
&gt;             srsName: &quot;EPSG:23031&quot;,<br>
&gt;             featureNS: &quot;<a href="http://www.mapmap.org/g4wd" target="_blank">http://www.mapmap.org/g4wd</a>&quot;,<br>
&gt;             geometryName: &quot;the_geom&quot;,<br>
&gt;             schema:<br>
&gt; &quot;<a href="http://localhost:8080/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;TypeName=G4WD:pointsDS" target="_blank">http://localhost:8080/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;TypeName=G4WD:pointsDS</a>&quot;<br>

&gt;         })<br>
&gt;     });<br>
&gt; And the G4WD:pointsDS&#39; datasource is a postgis table, where the geometry<br>
&gt; field is POINT.<br>
&gt; Thanks..<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>