[OpenLayers-Users] Draw line vector, with points..

JuKiM rifins at gmail.com
Wed Dec 16 03:28:35 EST 2009


Hi,

And how can I modify the PostGIS SQL? I don't know how/where I can do it..

Thanks!

2009/12/10 David Fawcett <david.fawcett at gmail.com>

> I am sure that in the context of WFS-T it is more complicated, but
> would it work if you used a linestring layer and modified your PostGIS
> SQL to wrap your points in something like a ST_MakeLine() function?
>
> On Thu, Dec 10, 2009 at 9:39 AM, JuKiM <rifins at gmail.com> wrote:
> >
> > Hi,
> > 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..
> > 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.
> > 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?
> > I'm creating the vector layer like this:
> > wfs = new OpenLayers.Layer.Vector("WFST-Vector", {
> >         strategies: [new OpenLayers.Strategy.BBOX(), oSaveStrategy],
> >         protocol: new OpenLayers.Protocol.WFS({
> >             version: "1.0.0",
> >             url: "http://localhost:8080/geoserver/wfs",
> >             featureType: "pointsDS",
> >             srsName: "EPSG:23031",
> >             featureNS: "http://www.mapmap.org/g4wd",
> >             geometryName: "the_geom",
> >             schema:
> > "
> http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&TypeName=G4WD:pointsDS
> "
> >         })
> >     });
> > And the G4WD:pointsDS' datasource is a postgis table, where the geometry
> > field is POINT.
> > Thanks..
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091216/74f43d72/attachment.html


More information about the Users mailing list