Display Lines as Points

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Wed Mar 14 14:49:04 EDT 2007


Walter,

Setup the layer as a POINT layer and construct a SQL query that extracts 
the first point of the line segment. You might want to create a view to 
simplify the SQL in the mapfile or to create an index on the points.

-Steve

Steve Lime wrote:
> MapServer itself cannot selectively display just one point from a
> feature. Perhaps there is a Oracle function to do the extraction on
> the database side? PostGIS users might have an idea that could be
> translated into Oracle.
> 
> Steve
> 
>>>> On 3/14/2007 at 10:17 AM, in message
> <D12153701D57FF45A1AD64DFB6571D7C0157A5C4 at svie0107.vie01.local>,
> "Pleyer, Walter" <Walter.Pleyer at LFRZ.AT> wrote:
>> Hi Folks!
>> 
>> We have a rather tricky problem and maybe someone out there knows a
>>  solution. We have a layer of  rivers, divided in 500m Segments,
>> stored in an Oracle Spatial DB. Each segment is a simple line with
>> a starting point and an end point, but they shall not be displayed
>> a slines, but rather as points. What we want is simnply to
>> represent every segment by its starting point only. Is that
>> possible?
>> 
>> Walter
>> 
>> LFRZ A-1200 Wien, Dresdner Strasse 89 Tel:   ++43(1)33 176/421 Fax:
>> ++43(1)33 176/999 Email: walter.pleyer at lfrz.at WWW:
>> http://www.lfrz.at



More information about the mapserver-users mailing list