[Mapserver-users] Unable to display points from Oracle Spatial

Jiri Potocny potocny at espace.cz
Mon Mar 22 07:07:21 EST 2004


This is a multi-part message in MIME format.

------=_NextPart_000_0097_01C4100E.9C412C80
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Dear All,

I'm trying to display polygons and points stored in Oracle Spatial. I =
succeeded to display polygons, but failed to display points. Could =
anybody help me to sort this problem out?

Sample data from the table containing point geometries:
       GR_ID     SYMBOL
  ---------- ----------
  NODE(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, =
SDO_ORDINATES)
  =
-------------------------------------------------------------------------=
-------------------------------------------------------------------------=
----
           1 1501000040
  SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, =
1), SDO_ORDINATE_ARRAY(1, 0, 0, -550006, -1280004))

           2 1501000432
  SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, =
1), SDO_ORDINATE_ARRAY(1, 0, 0, -550016, -1280004))

           3 1201000023
  SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, =
1), SDO_ORDINATE_ARRAY(,157142295, ,987575971, 0, -550004, -1280009))

Used map file:

  # First test of UMN Map Server on Oracle Spatial
  MAP
    NAME        "UMNORA1"
    STATUS      ON
    SIZE        800 600
    EXTENT      -550022 -1280012 -549998 -1279998
    UNITS       METERS
    IMAGECOLOR  255 255 255
    FONTSET     "fonts/fonts.list"

    IMAGETYPE   PNG

    # Projection definition
    PROJECTION
      "init=3Depsg:4818" =20
    END

    # Symbol definitions
    SYMBOL
      NAME "circle"
      TYPE ELLIPSE
      POINTS 1 1 END
      FILLED TRUE
    END

    # Web interface definition
    WEB
      LOG "/inetpub/wwwroot/tmp/_OraTest.log"
    END

    # Start of layer definitions
    LAYER
      NAME "parcels"
      TYPE POLYGON
      STATUS DEFAULT
      CONNECTIONTYPE oraclespatial
      CONNECTION "umn/umn at kataster"
      DUMP TRUE
      DATA "BOUNDARY from GRPARCELS"

      PROJECTION
        "init=3Depsg:4818" =20
      END

      CLASS
        OUTLINECOLOR 0 0 0
      END
    END

    LAYER
      NAME "symboly"
      TYPE POINT
      STATUS DEFAULT
      CONNECTIONTYPE oraclespatial
      CONNECTION "umn/umn at kataster"
      DUMP TRUE
      DATA "NODE from GRSYMBOLS"

      PROJECTION
        "init=3Depsg:4818" =20
      END

      CLASS
        NAME "Symboly"
        STYLE
          COLOR  255 0 0
          SYMBOL "circle"
          SIZE 10
        END
      END
    END

  END

Much appreciated,
Jirka
------=_NextPart_000_0097_01C4100E.9C412C80
Content-Type: text/html;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#d7d7d7>
<DIV><FONT face=3DArial size=3D2>Dear All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to display polygons and =
points stored in=20
Oracle Spatial. I succeeded to display polygons, but failed to display =
points.=20
Could anybody help me&nbsp;to sort this problem out?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Sample data from&nbsp;the table =
containing point=20
geometries:</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp;&nbsp;&nbsp;&nbsp;=20
  GR_ID&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL<BR>----------=20
  ----------<BR>NODE(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), =
SDO_ELEM_INFO,=20
  =
SDO_ORDINATES)<BR>-------------------------------------------------------=
-------------------------------------------------------------------------=
----------------------<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
  1 1501000040<BR>SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, =
0, 6000,=20
  4, 1, 1), SDO_ORDINATE_ARRAY(1, 0, 0, -550006, -1280004))</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New"=20
  size=3D1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2=20
  1501000432<BR>SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, =
6000,=20
  4, 1, 1), SDO_ORDINATE_ARRAY(1, 0, 0, -550016, -1280004))</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New"=20
  size=3D1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3=20
  1201000023<BR>SDO_GEOMETRY(2001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, =
6000,=20
  4, 1, 1), SDO_ORDINATE_ARRAY(,157142295, ,987575971, 0, -550004,=20
  -1280009))<BR></FONT></DIV></BLOCKQUOTE>
<DIV><FONT face=3DArial size=3D2>Used&nbsp;map file:</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><FONT face=3D"Courier New" size=3D1><BR># First test of UMN Map =
Server on=20
  Oracle Spatial<BR>MAP<BR>&nbsp; =
NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  "UMNORA1"<BR>&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON<BR>&nbsp;=20
  SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 800 600<BR>&nbsp;=20
  EXTENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -550022 -1280012 -549998=20
  -1279998<BR>&nbsp; UNITS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
METERS<BR>&nbsp;=20
  IMAGECOLOR&nbsp; 255 255 255<BR>&nbsp; FONTSET&nbsp;&nbsp;&nbsp;&nbsp; =

  "fonts/fonts.list"</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp; IMAGETYPE&nbsp;&nbsp;=20
  PNG</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp; # Projection =
definition<BR>&nbsp;=20
  PROJECTION<BR>&nbsp;&nbsp;&nbsp; "init=3Depsg:4818"&nbsp; <BR>&nbsp;=20
  END</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp; # Symbol =
definitions<BR>&nbsp;=20
  SYMBOL<BR>&nbsp;&nbsp;&nbsp; NAME "circle"<BR>&nbsp;&nbsp;&nbsp; TYPE=20
  ELLIPSE<BR>&nbsp;&nbsp;&nbsp; POINTS 1 1 END<BR>&nbsp;&nbsp;&nbsp; =
FILLED=20
  TRUE<BR>&nbsp; END</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp; # Web interface=20
  definition<BR>&nbsp; WEB<BR>&nbsp;&nbsp;&nbsp; LOG=20
  "/inetpub/wwwroot/tmp/_OraTest.log"<BR>&nbsp; END</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp; # Start of layer=20
  definitions<BR>&nbsp; LAYER<BR>&nbsp;&nbsp;&nbsp; NAME=20
  "parcels"<BR>&nbsp;&nbsp;&nbsp; TYPE POLYGON<BR>&nbsp;&nbsp;&nbsp; =
STATUS=20
  DEFAULT<BR>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE=20
  oraclespatial<BR>&nbsp;&nbsp;&nbsp; CONNECTION "</FONT><A=20
  href=3D"mailto:umn/umn at kataster"><FONT face=3D"Courier New"=20
  size=3D1>umn/umn at kataster</FONT></A><FONT face=3D"Courier New"=20
  size=3D1>"<BR>&nbsp;&nbsp;&nbsp; DUMP TRUE<BR>&nbsp;&nbsp;&nbsp; DATA =
"BOUNDARY=20
  from GRPARCELS"</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp;&nbsp;&nbsp;=20
  PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=3Depsg:4818"&nbsp;=20
  <BR>&nbsp;&nbsp;&nbsp; END</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp;&nbsp;&nbsp;=20
  CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0=20
  0<BR>&nbsp;&nbsp;&nbsp; END</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp; END</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp; =
LAYER<BR>&nbsp;&nbsp;&nbsp; NAME=20
  "symboly"<BR>&nbsp;&nbsp;&nbsp; TYPE POINT<BR>&nbsp;&nbsp;&nbsp; =
STATUS=20
  DEFAULT<BR>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE=20
  oraclespatial<BR>&nbsp;&nbsp;&nbsp; CONNECTION "</FONT><A=20
  href=3D"mailto:umn/umn at kataster"><FONT face=3D"Courier New"=20
  size=3D1>umn/umn at kataster</FONT></A><FONT face=3D"Courier New"=20
  size=3D1>"<BR>&nbsp;&nbsp;&nbsp; DUMP TRUE<BR>&nbsp;&nbsp;&nbsp; DATA =
"NODE from=20
  GRSYMBOLS"<BR></FONT><FONT face=3D"Courier New" size=3D1></FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp;&nbsp;&nbsp;=20
  PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=3Depsg:4818"&nbsp;=20
  <BR>&nbsp;&nbsp;&nbsp; END</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp;&nbsp;&nbsp;=20
  CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME=20
  "Symboly"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp; 255 0=20
  0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL=20
  "circle"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE=20
  10<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp;=20
END</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>&nbsp; END</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Courier New" size=3D1>END</FONT></DIV></BLOCKQUOTE>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Much appreciated,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Jirka</DIV></FONT></BODY></HTML>

------=_NextPart_000_0097_01C4100E.9C412C80--




More information about the mapserver-users mailing list