[mapserver-users] symbol at start and end of polyline ?
thomas bonfort
thomas.bonfort at gmail.com
Tue Jan 19 05:10:38 PST 2010
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.christen at 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.bonfort at gmail.com>
> *To:* Oliver Christen <oliver.christen at camptocamp.com>
> *Cc:* mapserver-users at 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.christen at 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.bonfort at gmail.com>
>> *To:* Oliver Christen <oliver.christen at camptocamp.com>
>> *Cc:* mapserver-users at 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.christen at 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 at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100119/90b0d767/attachment.htm>
More information about the MapServer-users
mailing list