Spatialite layer

Apr 23, 2013 at 6:09 PM
I am running "dotspatial-67177" version. Here is the code for adding the layer from SQL Spatialite database:
          SpatiaLiteHelper slh = new SpatiaLiteHelper();
          GeometryColumnInfo item = r.DataBoundItem as GeometryColumnInfo;                   
          IFeatureSet fs = slh.ReadFeatureSet(connString, item);
          IMapFeatureLayer lay = mainMap.Layers.Add(fs);

When I try "Label Setup" from legend and open "Feature Labeler" window and try "Apply" button receive bellow message error.

Please need help or any advise on this problem.
Regards, vzavec



System.NullReferenceException: Object reference not set to an instance of an object.
at DotSpatial.Controls.MapLabelLayer.GetLabelText(IFeature feature, ILabelCategory category) in C:\dotspatial-67177_SPATIAL_x64\DotSpatial.Controls\MapLabelLayer.cs:line 783
at DotSpatial.Controls.MapLabelLayer.DrawLineFeature(MapArgs e, Graphics g, IFeature f, ILabelCategory category, Boolean selected, List1 existingLabels) in C:\dotspatial-67177_SPATIAL_x64\DotSpatial.Controls\MapLabelLayer.cs:line 565
at DotSpatial.Controls.MapLabelLayer.DrawFeatures(MapArgs e, IEnumerable
1 features) in C:\dotspatial-67177_SPATIAL_x64\DotSpatial.Controls\MapLabelLayer.cs:line 307
at DotSpatial.Controls.MapLabelLayer.DrawFeatures(MapArgs args, List1 features, List1 clipRectangles, Boolean useChunks) in C:\dotspatial-67177_SPATIAL_x64\DotSpatial.Controls\MapLabelLayer.cs:line 235
at DotSpatial.Controls.MapLabelLayer.DrawRegions(MapArgs args, List1 regions) in C:\dotspatial-67177_SPATIAL_x64\DotSpatial.Controls\MapLabelLayer.cs:line 135
at DotSpatial.Controls.MapFrame.InitializeLabels(List
1 regions, MapArgs args, IRenderable layer) in C:\dotspatial-67177_SPATIAL_x64\DotSpatial.Controls\MapFrame.cs:line 489
at DotSpatial.Controls.MapFrame.Initialize(List`1 regions) in C:\dotspatial-67177_SPATIAL_x64\DotSpatial.Controls\MapFrame.cs:line 300
May 2, 2013 at 9:46 AM
I also noticed when try to Export Data All features from this "Spatialite" layer from legend item Data that this new shape file is corrupted.
Can someone help me with this?

Thanks for help and regards, vzavec