if you're using postgis, you can use a unique key from your table (i.e. gid) if you have a shapefile, you'll have to find an or a combination of attributes in the dbf that's unique to identify that particular feature.
-- thomas On Tue, Jan 19, 2010 at 11:59, Oliver Christen < oliver.chris...@camptocamp.com> wrote: > it makes sens, but how do I do that ? > do line segment get automaticaly an id ? > or how to get (or set) the id of the line segment? > > ----- Original Message ----- > *From:* thomas bonfort <thomas.bonf...@gmail.com> > *To:* Oliver Christen <oliver.chris...@camptocamp.com> > *Cc:* mapserver-users@lists.osgeo.org > *Sent:* Tuesday, January 19, 2010 10:50 AM > *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? > > well, if you want only one line segment to have start markers, you must > tell mapserver which segment that is. > > On Tue, Jan 19, 2010 at 10:48, Oliver Christen < > oliver.chris...@camptocamp.com> wrote: > >> thx Thomas, but im not sure I understand what you are telling me here. >> do line segments have id ? >> >> ----- Original Message ----- >> *From:* thomas bonfort <thomas.bonf...@gmail.com> >> *To:* Oliver Christen <oliver.chris...@camptocamp.com> >> *Cc:* mapserver-users@lists.osgeo.org >> *Sent:* Tuesday, January 19, 2010 10:30 AM >> *Subject:* Re: [mapserver-users] symbol at start and end of polyline ? >> >> hi, >> >> class >> expression ([id]=321) >> style >> geomtransform end >> ... >> end >> end >> class >> style >> ... #all the others >> end >> end >> >> On Tue, Jan 19, 2010 at 10:14, Oliver Christen < >> oliver.chris...@camptocamp.com> wrote: >> >>> hello >>> >>> I would like to add a symbol at the start and end of a polyline. >>> >>> I tried using GEOMTRANSFORM with "start" and "end" in a style block in >>> the layer but sadely this will add a symbol to all start and end of every >>> vertex of the polyline, which is not the result wanted :/ >>> >>> is there any way to do that, beside creating a new point layer ? >>> >>> thanks in advance >>> Oliver >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> >
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users