<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>
dims <b>integer</b>;<br>
<b>begin</b><br>
<b>if</b> (aLine <b>is</b> <b>null</b>) <b>then</b> <br>
<b>return</b> <b>null</b>;<br>
<b>end</b> <b>if</b>;<br>
<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>
<b>return</b> <b>null</b>;<br>
<b>end</b> <b>if</b>; <br>
dims := aLine.SDO_GTYPE / </font><font size=1 color=blue face="Courier New">1000</font><font size=1 face="Courier New">;<br>
<br>
<b>return</b> MDSYS.SDO_GEOMETRY(<br>
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>
aLine.SDO_SRID,<br>
<b>NULL</b>, </font><font size=1 color=red face="Courier New"><i>--
No Singe-Point </i></font><font size=1 face="Courier New"><br>
</font><font size=1 color=red face="Courier New"><i>--
SDO_STARTING_OFFSET,SDO_ETYPE: Point type ,SDO_INTERPRETATION: Point cluster
with n points.
</i></font><font size=1 face="Courier New"><br>
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), <br>
aLine.SDO_ORDINATES); </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 <MAPSERVER-USERS@LISTS.UMN.EDU>
schrieb am 14.03.2007 16:17:48:<br>
<br>
> Hi Folks!<br>
> <br>
> We have a rather tricky problem and maybe someone out there knows
a<br>
> solution.<br>
> We have a layer of rivers, divided in 500m Segments, stored
in an<br>
> Oracle Spatial DB.<br>
> Each segment is a simple line with a starting point and an end point,<br>
> but they shall not be displayed a slines, but rather as points.<br>
> What we want is simnply to represent every segment by its starting
point<br>
> only.<br>
> Is that possible?<br>
> <br>
> Walter<br>
> <br>
> LFRZ<br>
> A-1200 Wien, Dresdner Strasse 89<br>
> Tel: ++43(1)33 176/421<br>
> Fax: ++43(1)33 176/999<br>
> Email: walter.pleyer@lfrz.at<br>
> WWW: http://www.lfrz.at <br>
</font></tt>