WayLayerGenerator Class
Contents
[
Hide
]Summary: Way layers generator
Module: aspose.gis.geotools.wayanalyzer
Full Name: aspose.gis.geotools.wayanalyzer.WayLayerGenerator
Aspose.PSD Version: 25.9.0
Constructors
| Name | Description |
|---|---|
| WayLayerGenerator(options) | Create an instance of WayLayerGenerator |
Methods
| Name | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| options | WayOptions | the 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:
| Parameter | Type | Description |
|---|---|---|
| x | int | the x of block |
| y | int | the y of block |
| size_x | int | the sizeX of block |
| size_y | int | the sizeY of block |
| velocity | double | the velocity of block |
Method: add_road(start_point, end_point, velocity)
add_road(start_point, end_point, velocity)
Add road to the cell
Parameters:
| Parameter | Type | Description |
|---|---|---|
| start_point | Point | the start point. |
| end_point | Point | the end point. |
| velocity | double | the 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:
| Parameter | Type | Description |
|---|---|---|
| start_point | Point | the start Point |
| goal_point | Point | the goa lPoint |
| radius | double | the radius to look for |
Returns
| Type | Description |
|---|---|
| LineString | The Found Way. |