POST
|
Thank you! This solved my problem!In Arcmap i created a new layergroup add my rasters and save as layer file. For code i simply used: Me.axmapcontrol1.addlayerfromfile(" ") No more black background!
... View more
04-20-2011
10:48 AM
|
0
|
0
|
209
|
POST
|
Hi! I'm looking for a code in .net that take a rasterlayer (.tiff) and display it in my mapcontrol with transparency where is no data value. I know i can add it to my mapcontrol with this code Dim pRasterly1 As IRasterLayer pRasterly1 = New RasterLayer pRasterly1.CreateFromFilePath() But how can i change the black background of raster (no data value) to transparency? Thanks
... View more
04-15-2011
12:13 PM
|
0
|
2
|
409
|
POST
|
I would like to make SQL queries from a table in a shapefile store in a personal geodatabase. For a simple shapefile i use this VB code: Public Sub DisplayNamesFromShapefile() ' Build the connection string. Dim shapefileStringTemplate As String = "Provider=ESRI.GeoDB.OleDB.1;Data Source={0};" & "Extended Properties=workspacetype=esriDataSourcesFile.ShapefileWorkspaceFactory.1;Geometry={1}" Dim connectionString As String = String.Format(shapefileStringTemplate, "C:\temp\", "WKB") ' Create the connection. Dim oleDbConnection As OleDbConnection = New OleDbConnection() oleDbConnection.ConnectionString = connectionString ' Open the connection and create a reader. oleDbConnection.Open() ' Create the command. Dim sqlQuery As String = "SELECT * FROM Province" Dim oleDbCommand As OleDbCommand = New OleDbCommand(sqlQuery, OleDbConnection) Dim oleDbDataReader As OleDbDataReader = OleDbCommand.ExecuteReader() ' Display the values from the NAME field. Do While oleDbDataReader.Read() Console.WriteLine(oleDbDataReader("Name").ToString()) Console.WriteLine(oleDbDataReader("Code").ToString()) Console.WriteLine(oleDbDataReader("Area").ToString()) Console.WriteLine(oleDbDataReader("Pop1991").ToString()) Loop End Sub But if my shapefile is store in a personal geodatabes how to proceed? thanks,
... View more
03-10-2011
03:36 AM
|
0
|
1
|
664
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|