VDS Technologies


load layer from table sqlserver2008

2/6/2016 11:07:36 PM
Total Posts 6

load layer from table sqlserver2008

Can I get a sample to show
layer map taken from the table sql sever 2008 ... ???

perhaps also for database postgrees




2/7/2016 1:09:41 AM
Total Posts 2

Re: load layer from table sqlserver2008

first you have to store layer name and path of shape files on your db and retriv

from IT

2/8/2016 12:28:38 AM
Total Posts 6

Re: load layer from table sqlserver2008

I've got on the table, with the field type shape(geom) polyline, polygon and
point to the field of X and Y.

and I have an example in aspmap :

oconn="Data Source=myServer;Persist Security Info=True;Password=12345;User ID=sa;Initial Catalog=my_DATABASE"

sqlSelect = "SELECT *, geom.STAsBinary() as WkbGeometry FROM [TL_AREA]"
Dim adapter As SqlClient.SqlDataAdapter = New SqlClient.SqlDataAdapter(sqlSelect, oconn)

Dim dataTable As DataTable = New DataTable()


Dim LayerProp As Layer = map.AddSpatialDataLayer(dataTable, "WkbGeometry")


how in actualmap....???!!





2/8/2016 4:12:19 AM
Total Posts 323

Re: load layer from table sqlserver2008

Seems as you are using an old version of AspMap.

See the Using ActualMap/Mapping Basics/Spatial Databases/SQL Server topic on how to add/edit data from SQL Server, Postgre etc.