AnsweredAssumed Answered

Geometry type does not match the geometry field.

Question asked by saurabhPGE on May 31, 2016
Latest reply on Jun 1, 2016 by YLiu-esristaff

I have created .geodatbase using the ArcGIS Runtime content ( Ver 10.2.1) but when I am trying to add this for offline method this is giving me "Geometry type does not match the geometry field." error.

 

var gdb3 = await Esri.ArcGISRuntime.Data.Geodatabase.OpenAsync(@".geodatabase");

                foreach (var table in gdb3.FeatureTables.ToList())

                {

                    // create a new feature layer to display each table

                    var lyr = new FeatureLayer

                    {

                        ID = table.Name + "Offline3",

                        DisplayName = table.Name,

                        FeatureTable = table

                    };

 

 

                    // add each layer to the map

                    MyMapView.Map.Layers.Add(lyr);

                }

Outcomes