Select to view content in your preferred language

Create mobile geodatabase (.geodatabase) with python and ArcGIS Pro document, maintaining layers symbology

130
4
a week ago
PaulCone2
Frequent Contributor

Hi ArcGIS Pro team, cross-posting this from Python Questions.  ApplySymbologyFromLayer with mobile geodatabase is not working for me.  Have to fall back to ArcMap to do this properly.

Re: Create mobile geodatabase (.geodatabase) with ... - Esri Community

 

Tags (2)
0 Kudos
4 Replies
sjones_esriau
Esri Contributor

Unless you need a mobile geodatabase for compatibility with another product, mobile map packages (.mmpk) are the way to go these days.

Created via Pro or Python, the single file retains data, symbology, book marks etc and can be read directly by any ArcGIS client.

0 Kudos
PaulCone2
Frequent Contributor

@sjones_esriau I'm familiar with pretty much all the various formats that end clients that use for GIS.  Our 911 dispatch system vendor is still using .geodatabase files for pop-ups in Esri ArcGIS Runtime 200.x.  So yes, I need a mobile geodatabase for compatibility with another product.  If you are saying that ApplySymbologyFromLayer is not working properly here, then I'll be opening a support ticket with ESRI, unless you can tell me here what else I should try.

0 Kudos
HaydenWelch
MVP Regular Contributor

Do mobile databases store layer symbology? I thought they only stored feature data and symbology exists in the map that's sourcing that dataset. If you need to use a .geodatabase, you can export a .mapx alongside it that has all layers pointed to that database as a relative path.

0 Kudos
PaulCone2
Frequent Contributor

A layer in a .geodatabase exported from ArcMap shows symbology in ArcGIS Runtime without a .mapx file.  

0 Kudos