AnalyzeGraphSettings

Fit street heights to graph.

@example:
# the settings which determine how the street integration analysis is performed
graph = ce.getObjectsFrom(ce.scene, ce.isGraphLayer)
analyzeSettings = AnalyzeGraphSettings()
analyzeSettings.setStreetLanesMin(1)
analyzeSettings.setStreetLanesMax(6)
# Analyze using "Set street width (based on integration)" option
analyzeSettings.setMode("C")
# Set the number of 90 degree turns to be taken into account to compute the local integration value.
analyzeSettings.setDepthOfLocalIntegration(3)
ce.analyzeGraph(graph, analyzeSettings)

 

此处定义的方法如下:

getDepthOfLocalIntegration

getDepthOfLocalIntegration(self):

Gets DepthOfLocalIntegration field. Number of 90 degree turns to be taken into account to compute the local integration value.

@return: Value of DepthOfLocalIntegration field.  [int]

getMode

getMode(self):

Gets Mode field. Analysis only, visualization using a rule file or auto-mapping to street width.

@return: Value of Mode field.  ["A", "B", "C"] [str]

getSidewalkWidthMax

getSidewalkWidthMax(self):

Gets SidewalkWidthMax field. Maximum number of lanes.

@return: Value of SidewalkWidthMax field.  [float]

getSidewalkWidthMin

getSidewalkWidthMin(self):

Gets SidewalkWidthMin field. Minimum number of lanes.

@return: Value of SidewalkWidthMin field.  [float]

getStreetLanesMax

getStreetLanesMax(self):

Gets StreetLanesMax field. Maximum number of lanes.

@return: Value of StreetLanesMax field.  [int]

getStreetLanesMin

getStreetLanesMin(self):

Gets StreetLanesMin field. Minimum number of lanes.

@return: Value of StreetLanesMin field.  [int]

setDepthOfLocalIntegration

setDepthOfLocalIntegration(self, intValue):

Sets DepthOfLocalIntegration field. Number of 90 degree turns to be taken into account to compute the local integration value.

@param intValue: the new value. [int]

setMode

setMode(self, enumValue):

Sets Mode field. Analysis only, visualization using a rule file or auto-mapping to street width.

@param enumValue: the new value ["A", "B", "C"]. [str]

setSidewalkWidthMax

setSidewalkWidthMax(self, floatValue):

Sets SidewalkWidthMax field. Maximum number of lanes.

@param floatValue: the new value. [float]

setSidewalkWidthMin

setSidewalkWidthMin(self, floatValue):

Sets SidewalkWidthMin field. Minimum number of lanes.

@param floatValue: the new value. [float]

setStreetLanesMax

setStreetLanesMax(self, intValue):

Sets StreetLanesMax field. Maximum number of lanes.

@param intValue: the new value. [int]

setStreetLanesMin

setStreetLanesMin(self, intValue):

Sets StreetLanesMin field. Minimum number of lanes.

@param intValue: the new value. [int]