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. The maximum width of the sidewalks.

@return: Value of SidewalkWidthMax field.  [float]

getSidewalkWidthMin

getSidewalkWidthMin(self):

Gets SidewalkWidthMin field. The minimum width of the sidewalks.

@return: Value of SidewalkWidthMin field.  [float]

getStreetLanesMax

getStreetLanesMax(self):

Gets StreetLanesMax field.

@return: Value of StreetLanesMax field.  [int]

getStreetLanesMin

getStreetLanesMin(self):

Gets StreetLanesMin field.

@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. The maximum width of the sidewalks.

@param floatValue: the new value. [float]

setSidewalkWidthMin

setSidewalkWidthMin(self, floatValue):

Sets SidewalkWidthMin field. The minimum width of the sidewalks.

@param floatValue: the new value. [float]

setStreetLanesMax

setStreetLanesMax(self, intValue):

Sets StreetLanesMax field.

@param intValue: the new value. [int]

setStreetLanesMin

setStreetLanesMin(self, intValue):

Sets StreetLanesMin field.

@param intValue: the new value. [int]

常量

此类用于定义以下常量:

A = 'A'
B = 'B'
C = 'C'