Select to view content in your preferred language

C# ArcGis Pro add field greyed out with layer from .GPKG

400
3
Jump to solution
06-05-2024 01:51 PM
TommyBouchard
Emerging Contributor

Hi,

I add a layer to ArcGis pro from a .GPKG using c#.

The option for that layer to add a field  is greyed out in the interface.

I use this code to add it.

Ex: LayerFactory.Instance.CreateLayer(new Uri("Path.gpkg\main.layer"), map, map.Layers.Count, "Layer Name");

 

Question:

Can I do something else to make it that I have the "add field" tool active?

or is it just because that .gpkg is not supported? If so...do you think that it will.

 

Thanks,Tommy!

0 Kudos
1 Solution

Accepted Solutions
CharlesMacleod
Esri Regular Contributor

the sdk will follow the behavior of the UI. Add field on a geopackage must not be supported.

View solution in original post

0 Kudos
3 Replies
CharlesMacleod
Esri Regular Contributor

if u add a layer using a geopackage via the UI do u get the same behavior?

0 Kudos
TommyBouchard
Emerging Contributor

Good question.

Yes, I have the same behavior.

TommyBouchard_0-1718021721071.png

 

0 Kudos
CharlesMacleod
Esri Regular Contributor

the sdk will follow the behavior of the UI. Add field on a geopackage must not be supported.

0 Kudos