POST
|
To update a GPLinearUnit parameter (units) based on an input parameter (input) use parameterDependencies in getParameterInfo: units.parameterDependencies = [input.name]
... View more
04-02-2015
10:09 AM
|
0
|
0
|
490
|
POST
|
I've been trying to figure this out as well. I've somewhat been able to get it working using updateParameters, the trick is matching its required format and units. #For a default meters (where param[1] is your parameter with datatype GPLinearUnit) def updateParameters(self, params): if not params[1].altered: params[1].values = "0 Meters" #Updating based on an input layer (params[0]) is trickier because spatialReference.linerarUnitName doesn't match up with the GPLinearUnit types def updateParameters(self, params): if not params[1].altered and params[0].altered: spRef=arcpy.Describe(params[0].valueAsText).spatialReference params[2].values = spRef.linearUnitName if spRef.linearUnitName == "Foot_US": params[1].values = "0 Feet" I'll let you know if I come across a better solution
... View more
04-01-2015
01:39 PM
|
0
|
0
|
490
|
POST
|
If I understand your question correctly, the short answer is yes, viewshed rasters can be added (SA-Math-Plus) to get an aggregated visibility for the multiple observers. This effectively just gives you an intensity of visibility like you already have in Figure 4. Combing output1 and output2 gives you what can be viewed from your project points and points of interest. An example of a case where you would want to combine the viewsheds would be if the project points were trying to optimize the total area that can be viewed along with the existing points of interest; like if the points were towers to see fires. The question of if that is correct for your particular application is harder. If you just want to know if the project site is visible from a particular set of observation points (equivalent to if those sites are visible from the project sites). I would do this with a viewshed for the project points (this allows you to distance the observation points above the DEM as well) and then extracting the values (1=visible/ 0=not visible) by the points of interest. Alternatively, you can do this with a viewshed for the points of interest, where you are able to see how many points total can see each project point by extracting the values from the viewshed (value = number of points that can see the point you extract by). Adding the viewsheds will not tell you anything additional about the visibility of the project points.
... View more
09-18-2014
01:47 PM
|
0
|
0
|
475
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|