Hi,
This is another issue very similar to this post for which I have no reply.
I am running the following code on the attached kml file.
KmlFeatureLayer kml = new KmlFeatureLayer(filename);
kml.RequireIndex = false;
kml.Open();
InMemoryFeatureLayer imfl = new InMemoryFeatureLayer();
imfl.Name = name;
foreach (Feature f in kml.FeatureSource.GetAllFeatures(ReturningColumnsType.AllColumns))
{
imfl.InternalFeatures.Add(new Feature(f.GetShape(), f.ColumnValues));
}
kml.Close();
I get the following error at the GetAllFeatures call
System.NullReferenceException: ‘Object reference not set to an instance of an object.’
I am using the kml library 10.6.1.
doc.zip (1.1 KB)
Regards,
Damian