Hello,
I am trying to connect to an oracle spatial data source and display the data as a map. The map is blank. Here is the sample VB code.
Dim layerOverlay As New LayerOverlay()Dim connectString As String = "User ID=DEMO;Password=DEMO;Data Source=192.168.1.10/oracle10;"
oracleLayer.Open()
oracleLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.Capital3
oracleLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.Capital3(
oracleLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.MajorRoad1
oracleLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1
oracleLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
layerOverlay.Layers.Add(
WinformsMap1.Overlays.Add(layerOverlay)
WinformsMap1.MapUnit = ThinkGeo.MapSuite.Core.GeographyUnit.DecimalDegree
WinformsMap1.Refresh()
The database is an oracle 10g spatial database. The table has 10 points to plot on the map
Here is a sample SDO_Geometry data element
(2001, 81996, (184469.817011812, 186028.226210964, ), , )
Any help in determining why the points dont draw on the map is greatly appreciated.
Dim oracleLayer As New OracleFeatureLayer(connectString, "DEL_ROUTE", "ID")"NAME")"OracleLayer", oracleLayer)