Open gdb error


#1

System.InvalidOperationException:“Name must be not empty and not null”


            using (var dataset = Dataset.Open(@"C:\Users\Administrator\Desktop\test.gdb", Drivers.FileGdb))
            {
                Console.WriteLine("FileGDB has {0} layers", dataset.LayersCount);
                for (int i = 0; i < dataset.LayersCount; ++i)
                {
                    Console.WriteLine("Layer {0} name: {1}", i, dataset.GetLayerName(i)); //this line is right
                  
                    using (var layer = dataset.OpenLayerAt(i)) //get error
                    {
                        Console.WriteLine("Layer has {0} features", layer.Count);
                        foreach (var feature in layer)
                        {
                            Console.WriteLine(feature.Geometry);
                        }
                    }
                    Console.WriteLine("");
                }
            }

just like demo code but get error
test.gdb.zip (18.2 KB)


#2

@lsl,

We are able to reproduce the issue at our end and have logged it as GISNET-211 for further investigation at our end. We’ll update you here once there is some information or a fix version available in this reagrd.


#3

The issues you have found earlier (filed as GISNET-211) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by muhammadahmad