<?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: How to get terrain properties? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353536#M27726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get accurate DEM from LAS cloud points, the first thing is to get GROUND points data. Pls refer to &lt;A href="http://sweb.cityu.edu.hk/hongbofu/doc/Deforestation_crv08.pdf" title="http://sweb.cityu.edu.hk/hongbofu/doc/Deforestation_crv08.pdf"&gt;http://sweb.cityu.edu.hk/hongbofu/doc/Deforestation_crv08.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, with ERDAS Point Cloud Tools,&amp;nbsp; the tool 'Filter' (and 'Classify') offer this type of workflow to extract /filter certain class (like buildings, trees, Ground, water, etc) from LAS 1.2 or higher...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2015 04:13:09 GMT</pubDate>
    <dc:creator>larryzhang</dc:creator>
    <dc:date>2015-05-27T04:13:09Z</dc:date>
    <item>
      <title>How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353533#M27723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question has gotten wildly off topic, so I edited the heading to reflect more clearly what I'm trying to ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping someone can point me in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've written a script (still in development) that creates terrains from LiDAR. They are HUGE terrains, so the process from going from LAS to Multipoint can take up to 30 hours. I've hit a hick-up that I'm trying to pinpoint that occurs sometime after the multipoint creation, but before the building of the terrain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I've written works fine process by process, so I'm not sure what the issue is--it may have been a network thing. I'm trying to troubleshoot it. The problem is the time it takes to run from the beginning until it breaks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added &lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;if not arcpy.Exists&lt;/STRONG&gt;&lt;/SPAN&gt; statements for the elements that I can, but I'm stuck on how to find the properties for the terrain so that I can skip those steps if they've alread been done. For instance, if the terrain already has pyramids defined how do I check for that? Or if / what layers have already been added to the terrain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've spent the last 1.5 hours doing a Google search and I've got nothing except for &lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000008000000"&gt;arcpy.mapping&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;: "There are a few specialized layers and datasets that don't fall into one of these three categories: annotation subclasses, dimension features, network datasets, &lt;STRONG&gt;terrain datasets&lt;/STRONG&gt;, topology datasets, and so on." but no way to handle these specialized layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help you may provide,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: John Lay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 11:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353533#M27723</guid>
      <dc:creator>JohnLay</dc:creator>
      <dc:date>2015-05-26T11:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get terrain properties?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353534#M27724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;J.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, really hard to instruct you for the solid solution to your issue, in particular, without some knowledge about your LiDAR data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, advisable to do the following research before taking too much time on programming:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;take a look at &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Assessing_lidar_coverage_and_sample_density/015w0000003t000000/" title="http://resources.arcgis.com/en/help/main/10.1/index.html#/Assessing_lidar_coverage_and_sample_density/015w0000003t000000/"&gt;ArcGIS Help 10.1&lt;/A&gt;&amp;nbsp;&amp;nbsp; and accept some advices from there;&lt;/LI&gt;&lt;LI&gt;browse your LiDAR data and its metadata, including data vendor, data deliverable standard &amp;amp; format ...&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:35:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353534#M27724</guid>
      <dc:creator>larryzhang</dc:creator>
      <dc:date>2015-05-26T12:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get terrain properties?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353535#M27725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The LiDAR is not the issue. The LiDAR LAS are v1.3. I need to create terrain models for each of 20 counties&amp;nbsp; to match 20 other counties that were created by a contractor. Each terrain model must contain layers that are specific to each county, including hydrology and clipping boundaries. I'm not building rasters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process is:&lt;/P&gt;&lt;P&gt;LAS to Multipoint&lt;/P&gt;&lt;P&gt;Create Terrain&lt;/P&gt;&lt;P&gt;Add pyramids to terrain&lt;/P&gt;&lt;P&gt;add layers to terrain (hydro line, clip bounds, multipoints (embedded))&lt;/P&gt;&lt;P&gt;change terrain resolution (for hydro breaklines)&lt;/P&gt;&lt;P&gt;build terrains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script failed at add layers to terrain for some unknown reason. As i said previously, separating this bit of code and running as a single process worked just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of starting from scratch every time (last time took 18 hours to get to add layers to terrain), I want to start where the script broke: e.g. the add layers to terrain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to do so, however, I need the script to be able to identify that the terrain already has pyramids.&lt;/P&gt;&lt;P&gt;Additionally, since I tested the bit a script that failed previously and the terrain now also has the proper layers added, I need the script to check for that too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been unable to find anywhere on line that addresses how to read the properties of the terrain model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 14:18:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353535#M27725</guid>
      <dc:creator>JohnLay</dc:creator>
      <dc:date>2015-05-26T14:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get terrain properties?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353536#M27726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get accurate DEM from LAS cloud points, the first thing is to get GROUND points data. Pls refer to &lt;A href="http://sweb.cityu.edu.hk/hongbofu/doc/Deforestation_crv08.pdf" title="http://sweb.cityu.edu.hk/hongbofu/doc/Deforestation_crv08.pdf"&gt;http://sweb.cityu.edu.hk/hongbofu/doc/Deforestation_crv08.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, with ERDAS Point Cloud Tools,&amp;nbsp; the tool 'Filter' (and 'Classify') offer this type of workflow to extract /filter certain class (like buildings, trees, Ground, water, etc) from LAS 1.2 or higher...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 04:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353536#M27726</guid>
      <dc:creator>larryzhang</dc:creator>
      <dc:date>2015-05-27T04:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get terrain properties?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353537#M27727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Larry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I do not need help building a terrain model&lt;/STRONG&gt;. I know how to do that. I have no idea where you are coming up with this. I have asked a very specific question and you are providing answers to anything but. Go back and read, carefully, my previous posts. (No fair editing out your responses)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am fully aware of what class our ground is. I know the multipoints should only be ground points for a surface model, not all classes. I know how to change the resolution and tolerances once the terrain is built.&amp;nbsp; I do not need a lesson in LAS properties or LiDAR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are are making assumptions about imaginary problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me repeat, &lt;STRONG&gt;I &lt;SPAN style="text-decoration: underline;"&gt;do not&lt;/SPAN&gt; need to know how to build a terrain.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I need to know is how to check, with python, to see if the terrain model (that, yes, is contained within the feature dataset inside a file geodatabase) has pyramids.&lt;/STRONG&gt; If the terrain has pyramids I need the python script to skip the process of adding pyramids. &lt;STRONG&gt;I then need to check to see if the terrain model has data sources.&lt;/STRONG&gt; If the terrain has data sources, I need the python script to skip that process. And so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am having, and the &lt;STRONG&gt;ONLY&lt;/STRONG&gt; problem I am having, is finding a way to have python check a terrain model for various properties. At this point in the script process, I don't care about the LiDAR or ground points. Their job is done. All I care about is whether or not pyramids or data sources have been added to the terrain model. That's it. Nothing more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 10:34:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353537#M27727</guid>
      <dc:creator>JohnLay</dc:creator>
      <dc:date>2015-05-27T10:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353538#M27728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know nothing about terrain files sorry, but I do know for a jpg, if you add it into ArcMap and build pyramids, it will create a file on the file system disk with a .ovr extension to hold the pyramids. Perhaps you could look and see if this file exists using standard python OS. (It wont show up in any Arcpy listing data as far as I know)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;image.jpg&lt;/P&gt;&lt;P&gt;image.jpg.ovr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 15:45:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353538#M27728</guid>
      <dc:creator>LukeWebb</dc:creator>
      <dc:date>2015-05-27T15:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353539#M27729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, Terrains are stored in geodatabases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 16:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353539#M27729</guid>
      <dc:creator>JohnLay</dc:creator>
      <dc:date>2015-05-27T16:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353540#M27730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The more I scour the web for a solution to this problem, the more I'm beginning to believe that this will not be solved with python alone but with the comtypes module and ArcObjects. I know nothing about either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone knows a good learning source, I'd appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esri's ArcObjects Resource Center is not very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 10:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353540#M27730</guid>
      <dc:creator>JohnLay</dc:creator>
      <dc:date>2015-05-28T10:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353541#M27731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a lot of research on this last night as your question really intrigued me.&amp;nbsp; Something as simple as a click in ArcMap should have a similar option in arcpy to access that information.&amp;nbsp; Like you, I imagine, I found absolutely nothing that led me to believe this is possible in arcpy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm suggesting a long shot here - and have not tested this theory to see if this actually works.&amp;nbsp; It appears that the pyramid info is stored in a separate system table within the geodatabase.&amp;nbsp; This table obviously isn't visible at the GIS level, but if you could send a SQL query through to the database and query whether the table or a specific entity in the table exists (I know, not being very helpful here) then you might be able to use that return as a check prior to running any further in your workflow.&amp;nbsp; You might need to do some digging in your DBMS back-end to figure out what table/object is created with pyramids as I don't have the specific answer for this, just that when I researched it led me to this fact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There should be some python modules out there that allow you to access your geodatabase's system tables and query them.&amp;nbsp; I realize this isn't an answer, but hopefully it leads you to one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Todd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 11:27:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353541#M27731</guid>
      <dc:creator>ToddBlanchette</dc:creator>
      <dc:date>2015-05-28T11:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353542#M27732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Todd. We are on the same page. What little I could find is that the "guts" of the geodatabase are not visible to python but are to ArcObjects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a number of references to a gentleman named &lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;A href="http://pierssen.com/arcgis10/python.htm"&gt;Mark Cederholm&lt;/A&gt; who did some work a couple years back (9.3 &amp;amp; 10.0) with the comtypes module that can access ArcObjects. He was working with comtypes 0.6.2 found at &lt;A href="http://sourceforge.net/projects/comtypes/"&gt;sourceforce&lt;/A&gt;. Others have continued to update his &lt;SPAN style="font-family: 'courier new', courier;"&gt;Snippets&lt;/SPAN&gt; module for successive releases. But Comtypes is now at 1.1.1 if you search &lt;A href="https://pypi.python.org/pypi/comtypes"&gt;Python.org&lt;/A&gt;, and I've found no acknowledgment of this new comtypes version whenever anyone speaks of Mr. Cederholm. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I've looked at Esri's ArcObjects Recource Center and I believe I have found the functions to do what I want to do, but I never learned ArcObjects and code examples to study and learn from are hiding from me if they exist in the recourse center. It appears that &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/PyramidLevel_Property/0028000000t6000000/"&gt;ITerrain Interface&lt;/A&gt; has "Properties Members" for DataSource and PyramidLevel. But like I said, I know nothing about ArcObjects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;You don't know of any tutorials or learning sites that I can get a crash course in &lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;ArcObjects &lt;/SPAN&gt;do you? How 'bout Comtypes?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 12:03:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353542#M27732</guid>
      <dc:creator>JohnLay</dc:creator>
      <dc:date>2015-05-28T12:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353543#M27733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to try storing it inside an SQL Server, according to this help I gather that if so, for any terrain dataset which has pyramids, a table should be made with the name:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, 'Sans Serif'; font-size: 11.5200004577637px;"&gt;&lt;STRONG&gt;DTM_&amp;lt;ID&amp;gt;_MRFC&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ID is specific to each terrain dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you see if you have these tables, then you just need to find the table that has the terrain dataset names and IDs in to associate the two. Try the query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from &lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, 'Sans Serif'; font-size: 11.5200004577637px;"&gt;GDB_EXTENSIONDATASETS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://webhelp.esri.com/arcgisserver/9.3.1/DotNet/index.htm#geodatabases/terrain-501807572.htm" title="http://webhelp.esri.com/arcgisserver/9.3.1/DotNet/index.htm#geodatabases/terrain-501807572.htm"&gt;ArcGIS Server for the Microsoft .NET Framework 9.3 Help&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These tables wont be visible in ArcCatalog, you will have to connect using SQL Server client. You may need to be an admin as they may be owned by SDE not your user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seperately, this link may also be of use: &lt;A href="http://www.gdal.org/drv_filegdb.html" title="http://www.gdal.org/drv_filegdb.html"&gt;ESRI File Geodatabase (FileGDB)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have OGR setup as I do, this command worked to retrieve the features using SQL from my table 'a':&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-color: #eeeeee;"&gt;ogrinfo -dialect FileGDB -sql "select * from a" "pathto\Geodatabase.gdb"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 12:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353543#M27733</guid>
      <dc:creator>LukeWebb</dc:creator>
      <dc:date>2015-05-28T12:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353544#M27734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, unfortunately they are being stored in file geodatabases so that they can be distributed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ESRI File Geodatabase (FileGDB) driver looks interesting, however. I'm off to figure out how it works. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 12:46:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353544#M27734</guid>
      <dc:creator>JohnLay</dc:creator>
      <dc:date>2015-05-28T12:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353545#M27735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When trying to get properties of an object I would normally first try with arcpy.Describe(yourTerrain). Reading up on the Describe function, I cannot find anything that is specific for terrain datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
terrain = r"D:\Xander\GeoNet\Terrain\gdb\test.gdb\TerrainData\testTerrain"
desc = arcpy.Describe(terrain)

# dataset properties
print desc.datasetType
print desc.extent
print desc.spatialReference.name
print desc.ZExtent

# object
print desc.baseName
print desc.catalogPath
print desc.children
print desc.dataElementType
print desc.extension
print desc.file
print desc.name
print desc.path&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to use the arcpy.GetCount_management, but this cannot be used for terrain datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case the Terrain has just been created it will have None as extent and also None spatial reference, but having a spatial reference and an extent does not mean that the terrain dataset has data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you could do is creating the pyramids in a Try Except statement. If a level exists, you will not be able to add it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same with building the terrain, if there is not data in it it will generate the error (which you can catch):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR 999999: Error executing function.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The Terrain definition is incomplete or invalid.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Failed to execute (BuildTerrain).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is something that is lacking in arcpy. There should be some option to handle this when using the Describe function on a terrain dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353545#M27735</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353546#M27736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This made for a pretty interesting project this morning.&amp;nbsp; I think I finally may be on to something lol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The following python code invokes the GDAL/OGR methods (click &lt;A href="http://gis.stackexchange.com/questions/2276/how-to-install-gdal-with-python-on-windows" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt; if you don't have these installed).&lt;/LI&gt;&lt;LI&gt;Researching &lt;A href="http://webhelp.esri.com/arcgisserver/9.3/java/index.htm#geodatabases/terrain1460731680.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;File GDB schema breakdown&lt;/A&gt; and with &lt;A href="https://community.esri.com/migrated-users/19140" target="_blank"&gt;Luke Webb&lt;/A&gt;​'s confirmation above, we know we're looking for the system table called "TerrainDataset_1_MRFC" - or realistically "*MRFC", which tells us that the terrain dataset has pyramids.&lt;/LI&gt;&lt;LI&gt;Using this search parameter, I loop through all the objects in the File GDB and find this table, I then extract its name and append it to a list.&lt;/LI&gt;&lt;LI&gt;You can now use the names in this list to compare to your known dataset names to see if their pyramids have been created or not (ie: if the name shows up in the list, your pyramids "SHOULD" be good, or at the very least created at one time.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;** I'm not sure if this technique will return pyramid tables from other rasters.&amp;nbsp; I would set this up so that it searches specifically for the datasets you are looking for and not a blanket search on all datasets like I did. ***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# standard imports
import sys

# import OGR
from osgeo import ogr

# use OGR specific exceptions
ogr.UseExceptions()

# get the driver
driver = ogr.GetDriverByName("OpenFileGDB")

# opening the FileGDB
gdb_path = r"D:\terrain\terrain.gdb"
try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; gdb = driver.Open(gdb_path, 0)
except Exception, e:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print e
&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.exit()

# list to store layers'names
featsClassList = []

# parsing layers by index
for featsClass_idx in range(gdb.GetLayerCount()):
&amp;nbsp;&amp;nbsp;&amp;nbsp; featsClass = gdb.GetLayerByIndex(featsClass_idx)
&amp;nbsp;&amp;nbsp;&amp;nbsp; terrainFCs = featsClass.GetName()
&amp;nbsp;&amp;nbsp;&amp;nbsp; suffix = "MRFC"
&amp;nbsp;&amp;nbsp;&amp;nbsp; if terrainFCs.endswith(suffix):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featsClassList.append(terrainFCs.split('_', 1)[0])

&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;# sorting&lt;/SPAN&gt;
featsClassList.sort()

&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;# printing&lt;/SPAN&gt;
print "The following Datasets have pyramids. Catch these results and compare to your list:"
for featsClass in featsClassList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print featsClass

# clean close
del gdb&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:35:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353546#M27736</guid>
      <dc:creator>ToddBlanchette</dc:creator>
      <dc:date>2021-12-11T16:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353547#M27737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right now John, the functionality to do that is not available, but should be available in a future release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 12:35:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353547#M27737</guid>
      <dc:creator>JeffreySwain</dc:creator>
      <dc:date>2015-05-29T12:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check, with python, if a Terrain Model has pyramids or data sources?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353548#M27738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Swain,&lt;/P&gt;&lt;P&gt;It is now November of 2019, has the functionality been made available yet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 13:34:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-check-with-python-if-a-terrain-model-has/m-p/353548#M27738</guid>
      <dc:creator>MarcSwartz</dc:creator>
      <dc:date>2019-11-19T13:34:56Z</dc:date>
    </item>
  </channel>
</rss>

