Generate reports from view analysis layers

299
4
07-17-2018 04:52 PM
KerryKang1
New Contributor II

Hello, 

I am trying to generate a report from a viewdome analysis result (values in Visibility by Layer). Is it currently possible to extract this information in report? 

I tried to apply report rule in cga, but was not able to apply it in this analysis layer. 

0 Kudos
4 Replies
CherylLau
Esri Regular Contributor

No, sorry, it is not possible to report viewdome information.

0 Kudos
KerryKang1
New Contributor II

Hello Cheryl, 

Thank you for your response. so I assume that it is the same for other analysis layers -  no report available for view corridor and veiwshed. However, is there anyway to export that result into external files directly such as csv? 

Thank you.

0 Kudos
ThomasFuchs
Esri Regular Contributor

Hi Kerry

There is 2 ways to do this:

  1. In the Inspector highlight the table with the visibility information, then copy paste into a spreadsheet
  2. Use Python to query the information and write it out to a .csv file, see: Python Scripting Command Reference 
    getVisibleSolidAngle(self, viewshed, requestedLayers)
    
        Get the layers' visible solid angle from the viewshed.
         
        @param viewshed: The Viewshed . [Analysis]
        @param requestedLayers: An array of layers . [sequence of ]
        @return: result. [sequence of float]
         
        @example:
        # get the Solid Angles of the Viewshed per Object Layer
        viewshed = ce.getObjectsFrom(ce.scene, ce.isViewshed)[0]
        panoramaLayer = ce.getObjectsFrom(ce.scene, ce.withName("'Panorama'"))[0]
        newShapesLayer = ce.getObjectsFrom(ce.scene, ce.isLayer, ce.withName("'New Shapes'"))[0]
        layers = [panoramaLayer,newShapesLayer]
        solidAngles = ce.getVisibleSolidAngle(viewshed, layers)
        print "Panorama  : ", solidAngles [0], " steradians"
        print "New Shapes: ", solidAngles [1], " steradians"
KerryKang1
New Contributor II

Hello Thomas, 

Thank you for your response. getVisibleSolidAngle function worked perfectly. 

Regards, 

0 Kudos