Hello Atma,
My name is Stephen. For some time...since Portal for ArcGIS was available, I have been told that LiDAR could be published to the web. Until ArcGIS Pro ver 1.4, I have been unable to accomplish it. At that point (ver 10.5 of Portal did not have the Java 4.2 runtime but I was able to publish to ArcGIS Online. That is now all changed and I am able to publish Lidar to Portal and consume it in ArcGIS Pro and a Web Browser. The issue that I seem unable to over come is that I need to make a Model Using Model Builder that will iterate through a series of .lyrx files to create a corresponding .slpk for each. My workflow using Model Builder is as follows: .las files to .lasd to .lyrx (I have also been able to create tin files from each .lasd which is part of my goal) the problem that I am having is that I am unable to iterate through the .lyrx files that are written to disk to create a .slpk for each. My skills with Python at this point are far from adequate to be able to accomplish this. I thought that I would be able to export my Model to a Python script and adapt it but have found that is not possible yet to do so. Finally, the focused point that I am trying to find an answer to is: Is there a way to iterate through las files (.las) or las datasets (.lasd) or layer files (.lyrx) all of which I have been able to create and save on disk and finally create as Scene Layer Package File (.slpk) on disk for any of the previously mentioned file types? Preferably .lyrx because it provides for better control of the point cloud data. Also this is the only file type that i have been able to navigate to using the Create Scene Layer Package Tool from Model Builder and successfully create a .slpk file.
I working with ESRI analysts we have discovered a "bug" (BUG-000108966 ) with the tool. Still, I am having trouble understanding why that If I can iterate through the .lyrx files that I can not provide them as input the the Create Scene Layer Package Tool in Model Builder. At this point, I am trying to adapt your code from this article to accomplish this task. Any suggestions would be most helpful.
Thank you sincerely,
Stephen