<br><font size=2 face="sans-serif">Hi</font>
<br>
<br><font size=2 face="sans-serif">Maybe you could use an PL/SQL-Function,
which converts the lines into multipoints. </font>
<br>
<br><font size=1 face="Courier New"><b>create</b> <b>or</b> <b>replace</b>
<b>function</b> Line2Point(aLine mdsys.sdo_geometry) <b>return</b> mdsys.sdo_geometry
<b>is</b><br>
 &nbsp;dims <b>integer</b>;<br>
<b>begin</b><br>
 &nbsp;<b>if</b> (aLine <b>is</b> <b>null</b>) <b>then</b> <br>
 &nbsp; &nbsp; <b>return</b> <b>null</b>;<br>
 &nbsp;<b>end</b> <b>if</b>;<br>
 &nbsp;<b>if</b> (aLine.SDO_ELEM_INFO <b>is</b> <b>null</b> <b>or</b> aLine.SDO_ORDINATES
<b>is</b> <b>null</b>) <b>then</b><br>
 &nbsp; &nbsp; <b>return</b> <b>null</b>;<br>
 &nbsp;<b>end</b> <b>if</b>; <br>
 &nbsp;dims := aLine.SDO_GTYPE / </font><font size=1 color=blue face="Courier New">1000</font><font size=1 face="Courier New">;<br>
<br>
 &nbsp;<b>return</b> MDSYS.SDO_GEOMETRY(<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;dims*</font><font size=1 color=blue face="Courier New">1000</font><font size=1 face="Courier New">+</font><font size=1 color=blue face="Courier New">5</font><font size=1 face="Courier New">,
</font><font size=1 color=red face="Courier New"><i>-- SDO_GTYPE: MULTIPOINT,</i></font><font size=1 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;aLine.SDO_SRID,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;<b>NULL</b>, &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 color=red face="Courier New"><i>--
No Singe-Point </i></font><font size=1 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 color=red face="Courier New"><i>--
SDO_STARTING_OFFSET,SDO_ETYPE: Point type ,SDO_INTERPRETATION: Point cluster
with n points. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;</i></font><font size=1 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;MDSYS.SDO_ELEM_INFO_ARRAY(</font><font size=1 color=blue face="Courier New">1</font><font size=1 face="Courier New">,</font><font size=1 color=blue face="Courier New">2</font><font size=1 face="Courier New">,aLine.SDO_ORDINATES.<b>Count</b>
/ dims), &nbsp;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;aLine.SDO_ORDINATES); &nbsp;</font><font size=1 color=red face="Courier New"><i>--
Ticks don't change</i></font><font size=1 face="Courier New"><br>
<b>end</b> Line2Point;<br>
</font><font size=2 face="sans-serif">/</font>
<br>
<br><font size=2 face="sans-serif">create or replace view XStream as Select
Line2Point(shape) shape, name,nummer from Streams;</font>
<br>
<br><font size=2 face="sans-serif">Than use XStream in the Layer of the
Mapserver-Map-File.</font>
<br>
<br><font size=2 face="sans-serif">Maybe you must dig a little bit in the
SDO-Documentation to find correct settings for ELEM_INFO_ARRAY. </font>
<br><font size=2 face="sans-serif">Should be something like this.</font>
<br>
<br><font size=2 face="sans-serif">Benedikt Rothe</font>
<br>
<br>
<br>
<br><tt><font size=2>UMN MapServer Users List &lt;MAPSERVER-USERS@LISTS.UMN.EDU&gt;
schrieb am 14.03.2007 16:17:48:<br>
<br>
&gt; Hi Folks!<br>
&gt; <br>
&gt; We have a rather tricky problem and maybe someone out there knows
a<br>
&gt; solution.<br>
&gt; We have a layer of &nbsp;rivers, divided in 500m Segments, stored
in an<br>
&gt; Oracle Spatial DB.<br>
&gt; Each segment is a simple line with a starting point and an end point,<br>
&gt; but they shall not be displayed a slines, but rather as points.<br>
&gt; What we want is simnply to represent every segment by its starting
point<br>
&gt; only.<br>
&gt; Is that possible?<br>
&gt; <br>
&gt; Walter<br>
&gt; <br>
&gt; LFRZ<br>
&gt; A-1200 Wien, Dresdner Strasse 89<br>
&gt; Tel: &nbsp; ++43(1)33 176/421<br>
&gt; Fax: &nbsp; ++43(1)33 176/999<br>
&gt; Email: walter.pleyer@lfrz.at<br>
&gt; WWW: &nbsp; http://www.lfrz.at <br>
</font></tt>