hello, i'm having another problem.
i've the following code:
Private Sub btnOracle_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOracle.Click
OSpatialLayer(txttable.Text, txtInstanciaOracle.Text, txtUsername.Text, txtPassword.Text)
End Sub
Private Sub OSpatialLayer(ByVal tablename As String, ByVal ServerName As String, ByVal ServerUsername As String, ByVal serverPassword As String)
Dim connectString As String = "User ID=" & ServerUsername & ";Password=" & serverPassword & ";Data Source=" & ServerName & ";"
Dim oracleLayer As New OracleFeatureLayer(connectString, tablename, "id1")
oracleLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.GetRandomGeoColor(RandomColorType.All), GeoColor.GetRandomGeoColor(RandomColorType.All), 1000, LineDashStyle.Solid)
Dim proj4Projection As New Proj4Projection()
proj4Projection.InternalProjectionParametersString = proj4Projection.GetEpsgParametersString(20791) ' "+proj=utm +zone=26 +ellps=intl +units=m +no_defs"
proj4Projection.ExternalProjectionParametersString = proj4Projection.GetGoogleMapParametersString()
oracleLayer.FeatureSource.Projection = proj4Projection
Dim qry = From ols In Me.Map1.CustomOverlays Where ols.Id = "oracleoverlay"
Dim lineOverlay As LayerOverlay
If qry.Count > 0 Then
lineOverlay = Me.Map1.CustomOverlays("oracleoverlay")
Else
lineOverlay = New LayerOverlay("oracleoverlay", False, TileType.SingleTile)
lineOverlay.TransitionEffect = TransitionEffect.None
Me.Map1.CustomOverlays.Add(lineOverlay)
End If
lineOverlay.Layers.Add("oracleoverlaylayer", oracleLayer)
oracleLayer.Open()
Me.Map1.CurrentExtent = oracleLayer.GetBoundingBox()
End Sub
After oracleLayer.Open() is called i can do oracleLayer.QueryTools.GetCount() and oracleLayer.QueryTools.GetColumns() and both retrieves good results. But the data doesn't appear on map.
and the oracleLayer.GetBoundingBox() is giving some strange bounding like in 0.01 values :(
I can see the data with uDig and was able to create a WMS using MapServer, but not with MapSuite Webedition.