WayLayerGenerator Class

Summary: Way layers generator

Module: aspose.gis.geotools.wayanalyzer

Full Name: aspose.gis.geotools.wayanalyzer.WayLayerGenerator

Aspose.PSD Version: 25.9.0

Constructors

NameDescription
WayLayerGenerator(options)Create an instance of WayLayerGenerator

Methods

NameDescription
add_block(x, y, size_x, size_y, velocity)Add block to the cell
add_road(start_point, end_point, velocity)Add road to the cell
find_the_way(start_point, goal_point, radius)Find the way from start point to goal

Constructor: WayLayerGenerator(options)

 WayLayerGenerator(options) 

Create an instance of WayLayerGenerator

Parameters:

ParameterTypeDescription
optionsWayOptionsthe options of generator.

Method: add_block(x, y, size_x, size_y, velocity)

 add_block(x, y, size_x, size_y, velocity) 

Add block to the cell

Parameters:

ParameterTypeDescription
xintthe x of block
yintthe y of block
size_xintthe sizeX of block
size_yintthe sizeY of block
velocitydoublethe velocity of block

Method: add_road(start_point, end_point, velocity)

 add_road(start_point, end_point, velocity) 

Add road to the cell

Parameters:

ParameterTypeDescription
start_pointPointthe start point.
end_pointPointthe end point.
velocitydoublethe velocity.

Method: find_the_way(start_point, goal_point, radius)

 find_the_way(start_point, goal_point, radius) 

Find the way from start point to goal

Parameters:

ParameterTypeDescription
start_pointPointthe start Point
goal_pointPointthe goa lPoint
radiusdoublethe radius to look for

Returns

TypeDescription
LineStringThe Found Way.