<?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: Batch convert .las files to .slpk in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049697#M39975</link>
    <description>&lt;P&gt;Ran it through manually and it worked. Attached is my script file.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 17:27:50 GMT</pubDate>
    <dc:creator>ValerieMFoley</dc:creator>
    <dc:date>2021-04-21T17:27:50Z</dc:date>
    <item>
      <title>Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049472#M39932</link>
      <description>&lt;P&gt;I cannot seem to figure out a way to batch convert several LAS files to the SLPK file type. I have tried both creating a model using model builder but the 'Create Point Cloud Scene Layer Package' tool and the 'Iterate Files' iterator, but the tool will not accept the input of the files from the iterator (reference 'Model' images below). I have also tried to create a python script and run it using the notebooks option in ArcGIS Pro and am able to have multiple .las files convert into a single .slpk file but I cannot get the script to output a single .slpk for each .las (reference 'Script_error' image below). Any help would be great, I have exhausted my online resources.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script of multiple .las to a single .slpk:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;import os&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;wksp = env.workspace = "C:\LiDARTest"&lt;/P&gt;&lt;P&gt;inpath = "C:\LiDARTest\InFile"&lt;BR /&gt;outpath = "C:\LiDARTest\OutFile"&lt;/P&gt;&lt;P&gt;Output_Coordinate_System="PROJCS['NAD_1983_2011_StatePlane_Illinois_East_FIPS_1201_Ft_US',GEOGCS['GCS_NAD_1983_2011',DATUM['D_NAD_1983_2011',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',984250.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-88.33333333333333],PARAMETER['Scale_Factor',0.999975],PARAMETER['Latitude_Of_Origin',36.66666666666666],UNIT['Foot_US',0.3048006096012192]];-17463800 -46132600 3048.00609601219;-100000 3048.00609601219;-100000 10000;3.28083333333333E-03;3.28083333333333E-03;0.001;IsHighPrecision"&lt;/P&gt;&lt;P&gt;arcpy.management.CreatePointCloudSceneLayerPackage(in_dataset=inpath, out_slpk=outpath, out_coor_system=Output_Coordinate_System, transform_method=[], attributes=["INTENSITY", "RGB", "CLASS_CODE", "FLAGS", "RETURNS"], xy_max_error_m=0.01, z_max_error_m=0.01, in_coor_system="", scene_layer_version="2.x")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script of multiple .las to multiple .slpk:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;import os&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;wksp = env.workspace = "C:\LiDARTest"&lt;/P&gt;&lt;P&gt;rootdir = "C:\LiDARTest\InFile"&lt;/P&gt;&lt;P&gt;name = 0&lt;BR /&gt;Output_Coordinate_System="PROJCS['NAD_1983_2011_StatePlane_Illinois_East_FIPS_1201_Ft_US',GEOGCS['GCS_NAD_1983_2011',DATUM['D_NAD_1983_2011',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',984250.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-88.33333333333333],PARAMETER['Scale_Factor',0.999975],PARAMETER['Latitude_Of_Origin',36.66666666666666],UNIT['Foot_US',0.3048006096012192]];-17463800 -46132600 3048.00609601219;-100000 3048.00609601219;-100000 10000;3.28083333333333E-03;3.28083333333333E-03;0.001;IsHighPrecision"&lt;/P&gt;&lt;P&gt;for subdirs, dirs, files in os.walk(rootdir):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for file in files:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output_layer = "C:\\LiDARTest\\OutFile\\" + str(name)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arcpy.management.CreatePointCloudSceneLayerPackage(in_dataset=file, out_slpk=output_layer, out_coor_system=Output_Coordinate_System, transform_method=[], attributes=["INTENSITY", "RGB", "CLASS_CODE", "FLAGS", "RETURNS"], xy_max_error_m=0.01, z_max_error_m=0.01, in_coor_system="", scene_layer_version="2.x")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name = name+1&lt;/P&gt;&lt;P&gt;*ignore my naming convention have not taken the time to work on that part of the script&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 06:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049472#M39932</guid>
      <dc:creator>ValerieMFoley</dc:creator>
      <dc:date>2021-04-21T06:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049588#M39956</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try if this snippet works for you? Make sure to switch out the coordinate system/transformation etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
import os

path = r"C:\test\lidar"
arcpy.env.workspace = path
arcpy.env.overwriteOutput = True


for root, dirs, files in os.walk(path):
    for name in files:
        if name.endswith(".las"):
            fullpath = os.path.join(root,name)
            print(fullpath)
            slpkName = os.path.splitext(name)[0]
            arcpy.management.CreatePointCloudSceneLayerPackage(fullpath, out_slpk=slpkName, out_coor_system=arcpy.SpatialReference(26913), transform_method="", attributes=["INTENSITY", "RGB", "CLASS_CODE", "FLAGS", "RETURNS"], point_size_m=0, xy_max_error_m=0.01, z_max_error_m=0.01, in_coor_system="", scene_layer_version="2.x")            &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 14:56:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049588#M39956</guid>
      <dc:creator>Andrew--Johnson</dc:creator>
      <dc:date>2021-04-21T14:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049691#M39971</link>
      <description>&lt;P&gt;It still isn't running successfully, I get the attached error message&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 17:15:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049691#M39971</guid>
      <dc:creator>ValerieMFoley</dc:creator>
      <dc:date>2021-04-21T17:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049694#M39973</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It looks like there's a syntax error somewhere in the script. Can you do a couple things&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. If you haven't already manually ran this through the tool please do that just to ensure the slpk is successfully created from the las file.&lt;/P&gt;&lt;P&gt;2. Paste your full script again with the updates I sent so I can see where this syntax error might be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 17:20:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049694#M39973</guid>
      <dc:creator>Andrew--Johnson</dc:creator>
      <dc:date>2021-04-21T17:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049697#M39975</link>
      <description>&lt;P&gt;Ran it through manually and it worked. Attached is my script file.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 17:27:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049697#M39975</guid>
      <dc:creator>ValerieMFoley</dc:creator>
      <dc:date>2021-04-21T17:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049720#M39982</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for sending that and I was able to successfully run that on my end with my own set of LAS files. Based on the error "Syntax error invalid JSON geometry representation" there seems to be something specific with python being able to read this specific LAS file. Are you able to share that LAS file with me too?&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 18:05:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049720#M39982</guid>
      <dc:creator>Andrew--Johnson</dc:creator>
      <dc:date>2021-04-21T18:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049807#M39996</link>
      <description>&lt;P&gt;I cannot share the LAS file, but when I run it using a single file in the geoprocessing tool is works fine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 20:17:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049807#M39996</guid>
      <dc:creator>ValerieMFoley</dc:creator>
      <dc:date>2021-04-21T20:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049818#M39998</link>
      <description>&lt;P&gt;I have been able to get it to work with another subset of .las files but cannot get it to work with the subset I need. I continue to get the error "&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="ansi-red-fg"&gt;ExecuteError&lt;/SPAN&gt;: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.
Syntax error in JSON geometry representation
Failed to execute (CreatePointCloudSceneLayerPackage)."&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Apr 2021 20:36:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049818#M39998</guid>
      <dc:creator>ValerieMFoley</dc:creator>
      <dc:date>2021-04-21T20:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049822#M39999</link>
      <description>&lt;P&gt;Thanks for testing on another subset. I think that narrows it down more to an issue with the LAS file JSON geometry. Without being able to review the LAS file myself unfortunately I'm not sure what else I can recommend. You may want to try and run the Convert LAS tool with all the LAS options enabled to see if that resolves the issue. Another option is you can right click on the GP tool and select Batch and then batch input to the tool and run it that way.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Andrew--Johnson_0-1619037913016.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11471iECEB068C61B41FF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Andrew--Johnson_0-1619037913016.png" alt="Andrew--Johnson_0-1619037913016.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Andrew--Johnson_1-1619038123068.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11472i6ABBF84799B01ABC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Andrew--Johnson_1-1619038123068.png" alt="Andrew--Johnson_1-1619038123068.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 20:49:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049822#M39999</guid>
      <dc:creator>Andrew--Johnson</dc:creator>
      <dc:date>2021-04-21T20:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049843#M40004</link>
      <description>&lt;P&gt;Would it be possible to schedule a screen share technical appointment? The batch convert option is also not reading the files correctly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 21:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049843#M40004</guid>
      <dc:creator>ValerieMFoley</dc:creator>
      <dc:date>2021-04-21T21:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049851#M40006</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Yes, that's probably best at this point &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I'm not sure what time zone you are in but i'm in the pacific time zone. My morning tomorrow is full of meetings but after 12pm i'm free and I can send you a zoom link. Let me know what works for you.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 21:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1049851#M40006</guid>
      <dc:creator>Andrew--Johnson</dc:creator>
      <dc:date>2021-04-21T21:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1099714#M45729</link>
      <description>&lt;P&gt;Hi Andrew,&amp;nbsp; As an alternate approach - did I see something during the User Conference 2021 on being able to use pdal to convert from las to i3s/pcsl?&amp;nbsp; Is that right or am I making things up?&amp;nbsp; If I did would you please direct me to those materials.&amp;nbsp; Thanks Tim&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 00:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1099714#M45729</guid>
      <dc:creator>TimFarrier</dc:creator>
      <dc:date>2021-09-20T00:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1099911#M45763</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;Sorry i'm not familiar with that. I see pdal has a i3s reader&amp;nbsp;&lt;A href="https://pdal.io/stages/readers.i3s.html" target="_blank"&gt;https://pdal.io/stages/readers.i3s.html&lt;/A&gt;&amp;nbsp;but that's all the information I have.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 14:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1099911#M45763</guid>
      <dc:creator>Andrew--Johnson</dc:creator>
      <dc:date>2021-09-20T14:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Batch convert .las files to .slpk</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1100087#M45785</link>
      <description>&lt;P&gt;Thanks Andrew,&amp;nbsp; I could be that I wasn't paying full attention and that the conversation was about i3s to las and not the other way around&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 20:21:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-convert-las-files-to-slpk/m-p/1100087#M45785</guid>
      <dc:creator>TimFarrier</dc:creator>
      <dc:date>2021-09-20T20:21:00Z</dc:date>
    </item>
  </channel>
</rss>

