<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>No drawing of certain polygon rings stroed in Oracle Spatial</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Another tip: what does it happen if you use 
"CIRCLE" instead of "POLYGON" in the layer definition in map 
file?...</FONT></DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Francesco</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=Schoenhammer.Herbert@REGENSBURG.DE 
  href="mailto:Schoenhammer.Herbert@REGENSBURG.DE">"Schönhammer, Herbert"</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=MAPSERVER-USERS@LISTS.UMN.EDU 
  href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 15, 2007 1:54 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [UMN_MAPSERVER-USERS] No drawing 
  of certain polygon rings stroed in Oracle Spatial</DIV>
  <DIV><BR></DIV><!-- Converted from text/rtf format -->
  <P><FONT face=Courier size=2>Hi,</FONT> </P>
  <P><FONT face=Courier size=2>I have some troubles drawing of certain 
  geometries, stored in Oracle Spatial 9i. </FONT></P>
  <P><FONT face=Courier size=2>In general, I'm able to say, that polygon rings 
  are drawn without problems (Connected by line strings or compound line strings 
  connected by circular arcs AND line strings). But there are some types, which 
  are not drawn by mapserver. There is no warning or error reported by mapserver 
  ! These certain geometries only are not present in the drawn png-file (or what 
  ever). The geometries in the neighbourhood are drawn !</FONT></P>
  <P><FONT face=Courier size=2>My Environment</FONT> <BR><FONT face=Courier 
  size=2>==============</FONT> </P>
  <P><FONT face=Courier size=2>- Oracle 9i with Spatial Option on a Windows 2003 
  Server</FONT> <BR><FONT face=Courier size=2>- MapServer 4.8.4 (Mapserver 
  4.10.1 does the same !) on a SuSE SLES 9 compiled with an Oracle 10g - Client 
  </FONT><BR><FONT face=Courier size=2>- MapServer used as WMS-Server</FONT> 
  </P><BR><BR><BR>
  <P><FONT face=Courier size=2>In detail the geometry, whis is NOT drawn by 
  mapserver</FONT> <BR><FONT face=Courier 
  size=2>======================================================</FONT> <BR><FONT 
  face=Courier size=2>Our application (Autodesk Topoase 3) is not storing a 
  circle as a circle in Oracle Spatial. The circle is splitted into two arcs, 
  connected to each other at the end-/start-points of the arcs. The drawn 
  picture should be the picture of a circle.</FONT></P>
  <P><FONT face=Courier size=2>The stored geometry has the properties:</FONT> 
  <BR><FONT face=Courier size=2>GTYPE 2003 (= 2-dim POLYGON)</FONT> </P>
  <P><FONT face=Courier size=2>In Detail:</FONT> <BR><FONT face=Courier 
  size=2>(2003; 82032; ; (1; 1003; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ); 
  (4505542,97176542; 5430753,10554764; 4505541,58808944; 5430750,58265205; 
  4505544,16794032; 5430749,30831663; 4505545,28931113; 5430751,74858283; 
  4505542,97176542; 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ))</FONT></P>
  <P><FONT face=Courier size=2>The geometry validates 
  (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), the result is TRUE.</FONT> 
  </P><BR><BR><BR>
  <P><FONT face=Courier size=2>The same geometry stored as LINE or CURVE IS 
  drawn !!</FONT> <BR><FONT face=Courier 
  size=2>=====================================================</FONT> </P>
  <P><FONT face=Courier size=2>GTYPE 2002&nbsp; (= 2-dim LINE or CURVE)</FONT> 
  </P><BR>
  <P><FONT face=Courier size=2>(2002; 82032; ; (1; 2; 2; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ); (4505542,97176542; 5430753,10554764; 4505541,58808944; 
  5430750,58265206; 4505544,16794032; 5430749,30831663; 4505545,28931113; 
  5430751,74858283; 4505542,97176542; 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ))</FONT></P><BR>
  <P><FONT face=Courier size=2>Note</FONT> <BR><FONT face=Courier 
  size=2>====</FONT> </P>
  <P><FONT face=Courier size=2>Changing the mapserver Layer TYPE from POLYGON to 
  LINE (or vice versa) does not have any effect !!!</FONT> </P><BR><BR>
  <P><FONT face=Courier size=2>In detail a "circle", which IS drawn by 
  mapserver</FONT> <BR><FONT face=Courier 
  size=2>=================================================</FONT> </P>
  <P><FONT face=Courier size=2>GTYPE 2002 (= 2-dim LINE or CURVE)</FONT> </P>
  <P><FONT face=Courier size=2>(2002; 82032; ; (1; 4; 1; 1; 2; 2; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ); (4506079,8746; 5430398,0938; 4506070,0144; 5430388,2336; 
  4506079,8746; 5430378,3734; 4506089,7348; 5430388,2336; 4506079,8746; 
  5430398,0938; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 
  ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ))</FONT></P>
  <P><FONT face=Courier size=2>The geometry also validates 
  (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), the result is TRUE.</FONT> </P>
  <P><FONT face=Courier size=2>BUT:</FONT> <BR><FONT face=Courier 
  size=2>----</FONT> <BR><FONT face=Courier size=2>Please look at the first 
  triplet of SDO_ELEM_INFO.</FONT> <BR><FONT face=Courier size=2>Looking in 
  Oracle Documentation, the combination of SDO_ETYPE=4 with a 
  SDO_INTERPRETATION=1 is NOT allowed. SDO_INTERPRETATION MUST be bigger than 
  1.</FONT></P>
  <P><FONT face=Courier size=2>(Is there a bug in the doc ??????)</FONT> 
</P><BR>
  <P><FONT face=Courier size=2>My problem</FONT> <BR><FONT face=Courier 
  size=2>==========</FONT> <BR><FONT face=Courier size=2>Creating new circles, 
  the application stores them as GTYPE 2003, which is not drawn !</FONT> 
</P><BR>
  <P><FONT face=Courier size=2>Does anybody know, what's the matter?</FONT> 
  <BR><FONT face=Courier size=2>=====================================</FONT> 
</P>
  <P><FONT face=Courier size=2>Is there anybody, who has some tipps for me 
  ?</FONT> </P><BR>
  <P><FONT face=Courier size=2>With kind regards</FONT> </P>
  <P><B><FONT face=Courier>Schönhammer Herbert</FONT></B> 
</P><BR></BLOCKQUOTE></BODY></HTML>