ThinkGeo.com    |     Documentation    |     Premium Support

Error by loading a Oracle Spatial Layer

 





I have a problem when opening an Oracle Spatial layer. I use Oracle Spatial 10g, and get the following error:



ORA-13199: 3D geometries are not supported by geometry WKB / WKT generation.

ORA-06512: at "MDSYS.MD", line 1723

ORA-06512: at "MDSYS.MDERR", line 17

ORA-06512: at "MDSYS.SDO_UTIL", line 2415

ORA-06512: at "MDSYS.SDO_GEOMETRY", line 30



Now it may be me; but I'm sure that the data is not 3D. TatukGIS (we use it now) works fine.


The code below is what I've tried (the geometry is of type point):





    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

        WinformsMap1.MapUnit = GeographyUnit.Meter
        WinformsMap1.BackgroundOverlay.BackgroundBrush = New GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)

        Dim connectString As String = "User ID=testgv1;Password=test123;Data Source=DQ-OR:1521/LDORP;"
        Dim oracleLayer As New OracleFeatureLayer(connectString, "GBI_BOOM", "BOOM_ID")

        Dim proj4Projection As New Proj4Projection()
        proj4Projection.InternalProjectionParametersString = proj4Projection.GetEpsgParametersString(28992)
        proj4Projection.ExternalProjectionParametersString = proj4Projection.GetEpsgParametersString(28992)
        oracleLayer.FeatureSource.Projection = proj4Projection

        oracleLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.Capital1
        oracleLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20

        oracleLayer.Open()

        Dim staticOverlay As New LayerOverlay()
        staticOverlay.Layers.Add("BOMEN", oracleLayer)
        WinformsMap1.Overlays.Add(staticOverlay)

        WinformsMap1.CurrentExtent = oracleLayer.GetBoundingBox
        WinformsMap1.Refresh()

    End Sub



Is my problem too difficult?

Hi Hans, 
  
 Sorry we cannot reproduce that. 
  
 This exception should thrown by Oracle or NTS, we don’t have this exception related code.  
  
 I google and found someone get same exception: kr.forums.oracle.com/forums/thread.jspa?messageID=3708662 
  
 Here we have another topic related with this: gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/12/afv/topic/aft/6836/Default.aspx 
  
 I am not sure whether that’s helpful, but I think maybe you can try to build some very simple data and try again for make sure whether that’s thrown by database and we can make sure the research direction. 
  
 Regards, 
  
 Don