VDS Technologies

 

How To Use AddSpatialDataLayer on ASPMAP 4.8.2

10/10/2014 12:23:08 AM
Total Posts 6

How To Use AddSpatialDataLayer on ASPMAP 4.8.2

Hello,

I have no idea why AddSpatialDataLayer not working as I expected since I using on old version and work like charm.It's still run on my previous project until today.

Actually I just need to display a shape (geometry field type) on map only.

This below my code I use:-

Setup statement and table and layer

  • sqlSelect = "SELECT [field name],asbinary(geogis) AS wkbgeometry FROM [table name] where [conditions] "
  • Dim adapter As Npgsql.NpgsqlDataAdapter = New Npgsql.NpgsqlDataAdapter(sqlSelect, dbcon)
  • adapter.Fill(shapesTable)
  • dbLayer = map.AddSpatialDataLayer(shapesTable, "wkbgeometry")
  • dblayer.name="DRAWING"

Lastly display layer on map

  • map.Layer("DRAWING").Visible = True

 

This routine no error and working but no shape has been display. I really headache on this matter. One more for information AddPointDataLayer are still working for current version without any changing coding.

What I should I do to make sure it's still work on my current version? Any idea?

Please. I need a help. Please.

Yours Sincerely

Zack

10/10/2014 5:38:55 AM
Total Posts 6

Solved: How To Use AddSpatialDataLayer on ASPMAP 4.8.2

Hello,

After try and try and try many time I discover some interesting part where everything came back to normal and run perfectly.

I believe version 8.4.2 and above need be careful while declare any AspMap Object and must be clean.

AspMap still a great product for me and hope they can produce a good and quality functionality, object and extend a what every tools to next level stage.

I close this subject since I solved it my self.

 

Yours Sincerely

Zack