Hello,
I have a similar problem related with this post gis.thinkgeo.com/Support/Dis...fault.aspx
first I followed your suggestion to grant permission to USER_SDO_GEOM_METADATA view, but I still have the problem that map suite don’t show anything, I used a snnifer to look what can be the problem and I can see the next SQL query to oracle
SELECT allColumns.COLUMN_NAME, geomMetaData.SRID
FROM ALL_TAB_COLUMNS allColumns, USER_SDO_GEOM_METADATA geomMetaData
WHERE allColumns.TABLE_NAME='AH' AND allColumns.DATA_TYPE='SDO_GEOMETRY'
AND allColumns.TABLE_NAME= geomMetaData.TABLE_NAME
AND allColumns.owner=''
If I change the empty string of owner on this SQL statement to
‘oUser’
I have the correct result. ‘oUser’ is my user to the service on Oracle. Do I miss something in the configuration of the database or in the connection string?
The next code is how do I’m testing this (I’m testing on Oracle 11g)
Dim strConnection As String
Dim omsflFeatureLayer As ThinkGeo.MapSuite.Core.OracleFeatureLayer
Dim staticoverlay = New LayerOverlay()
WinformsMap1.MapUnit = GeographyUnit.Meter
strConnection = "Data Source=192.168.16.10:1521/MyOracleService;User ID=oUser;Password=MyPass;"
omsflFeatureLayer = New OracleFeatureLayer(strConnection, "AH", "IDAH")
omsflFeatureLayer.Name = "AH"
omsflFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.LightYellow, GeoColor.SimpleColors.Green)
omsflFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
omsflFeatureLayer.Open()
WinformsMap1.CurrentExtent = omsflFeatureLayer.GetBoundingBox()
omsflFeatureLayer.Close()
staticoverlay.Layers.Add("AH", omsflFeatureLayer)
WinformsMap1.Overlays.Add("OracleLayers", staticoverlay)
WinformsMap1.Refresh()