Gdb read error

error1

  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)) 
                    {
                        Console.WriteLine("Layer has {0} features", layer.Count);
                        foreach (var feature in layer)
                        {//can not read  OBJECTID?  I am sure this field exits
                            Console.WriteLine($"{feature.GetValue<int>("OBJECTID")}   " + feature.Geometry);
                        }
                    }
                    Console.WriteLine("");
                   
                }
            }

error2

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)) 
                    {
                        Console.WriteLine("Layer has {0} features", layer.Count);
                        foreach (var feature in layer)
                        {
                            Console.WriteLine( feature.Geometry);//got error
                        }
                    }
                    Console.WriteLine("");
                   
                }
            }
        Aspose.Gis.GisException:“Shape type 'GeneralPolygon' is not supported.”

test.gdb.zip (175.0 KB)
I use 18.9 aspose gis

@lsl,

We were able to reproduce the issue reported by you. We have logged a ticket in our issue tracking system as GISNET-219. We will update you here as soon as we have additional information.

@lsl,

The OBJECTID field is not supported at the moment. This issue will be fixed in the next release of Aspose.GIS for .NET.

GeneralPolygon is used to represent polygons that contain non-linear geometries, like arcs or Bezier curves. The API only supports linear geometries for now. The support for reading shapes with curves is under development and will be released in a future release.

Please do let us know if there is any other feature missing in FileGDB handling. We can log those as new feature requests. Additionally, if you have additional files that are not readable by our API, please share those as well.

Please feel free to reach out to us if additional information is required. We will be more than happy to assist you further.