<?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: Defining Vertical Datum using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/defining-vertical-datum-using-python/m-p/227248#M17629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;As a first thought, why not dump the shapefile output and instead create the output of the LAS conversion in a goedatabase inside a feature dataset where the vertical datum has been defined.&lt;BR /&gt;Cheers,&lt;BR /&gt;N&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply and sorry for the long delay in responding. That did the trick I was wanting!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 19:07:51 GMT</pubDate>
    <dc:creator>JohnWall</dc:creator>
    <dc:date>2012-11-08T19:07:51Z</dc:date>
    <item>
      <title>Defining Vertical Datum using Python</title>
      <link>https://community.esri.com/t5/python-questions/defining-vertical-datum-using-python/m-p/227246#M17627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to define the vertical datum for over 1,000 shapefiles using Python batch geoprocessing. However, I am strugling with figuring out the code to add in the vertical datum. This is what I have so far:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;#Start Space import sys import os import arcpy from arcpy import env from arcpy.sa import *&amp;nbsp; arcpy.env.workspace = "C:/gis/indian" LASdata = "C:/gis/indian"&amp;nbsp; #Check out extensions arcpy.CheckOutExtension("3D") arcpy.CheckOutExtension("Spatial") arcpy.CheckOutExtension("GeoStats")&amp;nbsp; #Begin processing files = os.listdir(LASdata) for file in files: &amp;nbsp;&amp;nbsp;&amp;nbsp; if file.endswith(".las"): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseNom = "C:/gis/indian/" + file[:-4]&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #LAS to Multipoint &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outname = baseNom+".shp" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.LASToMultipoint_3d(file, outname, 1, "5", "ANY_RETURNS") &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "I've finished Shapefile with " + file&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "I had LAS to Multipoint issues with file: " + file&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coor = arcpy.SpatialReference('WGS 1984 UTM Zone 16N', 'North American Vertical Datum 1988') &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.DefineProjection_management(outname, coor) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "I had issues projecting the data" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages()&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please help me with defining the vertical datum for this data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 20:45:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/defining-vertical-datum-using-python/m-p/227246#M17627</guid>
      <dc:creator>JohnWall</dc:creator>
      <dc:date>2012-10-25T20:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Defining Vertical Datum using Python</title>
      <link>https://community.esri.com/t5/python-questions/defining-vertical-datum-using-python/m-p/227247#M17628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As a first thought, why not dump the shapefile output and instead create the output of the LAS conversion in a goedatabase inside a feature dataset where the vertical datum has been defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;N&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 06:11:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/defining-vertical-datum-using-python/m-p/227247#M17628</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2012-10-26T06:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Defining Vertical Datum using Python</title>
      <link>https://community.esri.com/t5/python-questions/defining-vertical-datum-using-python/m-p/227248#M17629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;As a first thought, why not dump the shapefile output and instead create the output of the LAS conversion in a goedatabase inside a feature dataset where the vertical datum has been defined.&lt;BR /&gt;Cheers,&lt;BR /&gt;N&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply and sorry for the long delay in responding. That did the trick I was wanting!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 19:07:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/defining-vertical-datum-using-python/m-p/227248#M17629</guid>
      <dc:creator>JohnWall</dc:creator>
      <dc:date>2012-11-08T19:07:51Z</dc:date>
    </item>
  </channel>
</rss>

