<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Mapping a Geodatabase? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608596#M34273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks  useful, however I am not up on XML parsing at this point in my career. I now have a script that will list all of the feature classes as well as their fields and the types.&lt;/P&gt;&lt;P&gt;I can export the domains separately but the last piece would be to list or tie the domains to the correct fields in the output.&lt;/P&gt;&lt;P&gt;I will be looking at that this afternoon and will post any results that I come up with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 19:06:07 GMT</pubDate>
    <dc:creator>jameshickey</dc:creator>
    <dc:date>2014-10-30T19:06:07Z</dc:date>
    <item>
      <title>Mapping a Geodatabase?</title>
      <link>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608593#M34270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS 10.2.1 - Windows 7 pro - python 2.7 or 3.x&lt;/P&gt;&lt;P&gt;So someone gives you a .gdb with about 45 feature classes, each of which have anywhere from 10 to 25 Fields including sub types and domains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you go about exporting that Database design to something you can look at as a whole...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;If sub types are too much to ask for then they can be left out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;featureClass1&lt;/P&gt;&lt;P&gt;Fieldname1&lt;/P&gt;&lt;P&gt;Fieldname2&lt;/P&gt;&lt;P&gt;Fieldname3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domain choice 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domain choice 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domain choice 3&lt;/P&gt;&lt;P&gt;Fieldname4&lt;/P&gt;&lt;P&gt;Fieldname5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domain choice 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domain choice 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domain choice 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domain choice 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;featureClass2&lt;/P&gt;&lt;P&gt;etc. etc. etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have exported domain lists but i am not quite sure how to get all of the fields and table names: &lt;/P&gt;&lt;P&gt;Here is a domain export script: But it isn't quite what i'm looking for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14146856979381403" jivemacro_uid="_14146856979381403"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;import sys, os&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;domains = arcpy.da.ListDomains("C:\Users\******\Desktop\AP_SCHEMA_WATER_V1.4.gdb")&lt;/P&gt;
&lt;P&gt;listName = "domainNamesGDB.csv"&lt;/P&gt;
&lt;P&gt;handle = open(listName, 'w')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for domain in domains:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; handle.write("{0} \n".format(domain.name))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if domain.domainType == 'CodedValue':&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coded_values = domain.codedValues&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for val, desc in coded_values.iteritems():&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; handle.write('{0} , {1}\n'.format(val, desc))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif domain.domainType == 'Range':&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print('Min: {0}'.format(domain.range[0]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print('Max: {1}'.format(domain.range[1]))&lt;/P&gt;
&lt;P&gt;handle.close()&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance for any help you might be able to provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 16:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608593#M34270</guid>
      <dc:creator>jameshickey</dc:creator>
      <dc:date>2014-10-30T16:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a Geodatabase?</title>
      <link>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608594#M34271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;I've moved your post into the &lt;A href="https://community.esri.com/space/2050"&gt;Managing Data&lt;/A&gt; space. You will get a much better answer here as the &lt;A href="https://community.esri.com/space/2004"&gt;GeoNet Help&lt;/A&gt; is intended for community help and feedback. You can see more on the community structure, and what topics are under each space from the following documents:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-1544"&gt;GeoNet Community Structure&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-1545"&gt;ArcGIS Discussion Forums Migration Strategy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;Thanks!&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;Timothy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 16:35:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608594#M34271</guid>
      <dc:creator>TimothyHales</dc:creator>
      <dc:date>2014-10-30T16:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a Geodatabase?</title>
      <link>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608595#M34272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried x-ray for arcCatalog?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=9ea218ff575f4a5195e01a2cae03a0ae" title="http://www.arcgis.com/home/item.html?id=9ea218ff575f4a5195e01a2cae03a0ae"&gt;http://www.arcgis.com/home/item.html?id=9ea218ff575f4a5195e01a2cae03a0ae&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 18:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608595#M34272</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2014-10-30T18:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a Geodatabase?</title>
      <link>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608596#M34273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks  useful, however I am not up on XML parsing at this point in my career. I now have a script that will list all of the feature classes as well as their fields and the types.&lt;/P&gt;&lt;P&gt;I can export the domains separately but the last piece would be to list or tie the domains to the correct fields in the output.&lt;/P&gt;&lt;P&gt;I will be looking at that this afternoon and will post any results that I come up with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 19:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608596#M34273</guid>
      <dc:creator>jameshickey</dc:creator>
      <dc:date>2014-10-30T19:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a Geodatabase?</title>
      <link>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608597#M34274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;x-ray exports the database structure out to an excel file with easy to view&lt;/P&gt;&lt;P&gt;tabs for each table/feature class.&amp;nbsp; The module itself does use XML but is&lt;/P&gt;&lt;P&gt;transparent to the user if you do not want to dig in to deep. It has proven&lt;/P&gt;&lt;P&gt;to invaluable when handed an unfamiliar database and asked to work with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. you do need excel installed on the system to run the module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 19:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608597#M34274</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2014-10-30T19:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a Geodatabase?</title>
      <link>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608598#M34275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it. Super easy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;That is an amazing tool!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 20:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/mapping-a-geodatabase/m-p/608598#M34275</guid>
      <dc:creator>jameshickey</dc:creator>
      <dc:date>2014-10-30T20:18:00Z</dc:date>
    </item>
  </channel>
</rss>

