This project is read-only.

Additional problem with point pictures

Apr 25, 2014 at 2:28 AM
Using VB.NET 2010, ocx version 4.8.8.

The expression defined for the category below correctly executes, but the only thing that shows up are the provinces with IDs other than 18. If I uncomment the DefaultDrawingOptions.Visible, I get a blank screen. Thus, the only thing not displaying are the points I'm attempting to draw as a picture. Any ideas on why the pictures aren't showing up?
    Dim sf1 As New MapWinGIS.Shapefile
    Dim unitImage1 As New MapWinGIS.Image
    Dim sfCategory As MapWinGIS.ShapefileCategory

    AxMap1.AddLayer(sf1, True)

    sfCategory = sf1.Categories.Add("Province 18")
    sfCategory.Expression = "[PROV_ID] = 18"
    sfCategory.DrawingOptions.PointType = MapWinGIS.tkPointSymbolType.ptSymbolPicture
    sfCategory.DrawingOptions.Picture = unitImage1

    'sf1.DefaultDrawingOptions.Visible = False

Dec 5, 2014 at 2:03 PM
Do you still have this problems or did you by now find a solution?


Dec 5, 2014 at 5:26 PM
I think the likely cause is that there is something wrong with icon, incorrect path or something. There is no check of Image.Open result here and there is no check that icon is actually opened in our source, only not NULL check. I'll make a fix.
Dec 5, 2014 at 5:47 PM
Marked as answer by pmeems on 12/7/2014 at 11:21 PM