[mapserver-users] displaying line starting and ending points
thomas bonfort
thomas.bonfort at gmail.com
Wed Dec 10 07:02:53 PST 2008
rfc48 has just entered the mapserver trunk, and will be present in 5.4
to apply a style block to just the start point, you'd use something like
STYLE
GEOMTRANSFORM "start"
SYMBOL "mysymbol"
SIZE ....
ANGLE AUTO #to orient the symbol along the first segment
END
you also get the "end" and "vertices" geomtransform to apply the style
to last or intermediate points of the line.
cheers,
thomas
On Wed, Dec 10, 2008 at 15:44, José María Michia
<jose.maria.michia at gmail.com> wrote:
> Hello,
>
> 2008/12/10 Raivo Alla <snaperski at gmail.com>:
>> Hello,
>>
>> I have a question concerning how to draw starting and ending points of
>> line features.
>> One option is to create a separate points layer in ArcGIS, where all
>> the starting and ending points of lines are in.
>> But is' t there some better solution or workaround how to get things done ?
>
> Using "Postgis" as data store, let you get the start and end points
> from line geometry with something like:
>
> DATA "geom from (SELECT oid,StartPoint(the_geom) FROM line_layer) as
> foo using unique oid using SRID=-1"
>
> And for end points:
>
> DATA "geom from (SELECT oid,EndPoint(the_geom) FROM line_layer) as foo
> using unique oid using SRID=-1"
>
> See:
>
> http://postgis.refractions.net/documentation/manual-1.3/ch06.html#id2572496
>
> I do not know ArcGIS. Maybe there is something similar to this.
>
> Saludos
> José María
>
>>
>>
>> Humbly yours,
>> Raivo
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list