Skip to content

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Aug 14, 2024
2 parents 1351405 + a01778a commit 1bec1a7
Show file tree
Hide file tree
Showing 46 changed files with 423 additions and 451 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def processAlgorithm(self, parameters, context, feedback: QgsProcessingFeedback)
return {self.OUTPUT_LAYER: dest_id}

def name(self):
return "notargetlos2"
return "notargetlos"

def displayName(self):
return "Create No Target LoS"
Expand Down
14 changes: 7 additions & 7 deletions los_tools/processing/doc/tool_analyse_los.help
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"ALG_DESC": "Analyse line-of-sight layer. Calculate the attributes of LoS according to type of line-of-sight.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to analyse.",
"CurvatureCorrections": "Should the curvature and refraction corrections be used?",
"RefractionCoefficient": "Value of refraction coefficient. Default value: 0.13.",
"OutputLayer": "Output layer containing LoS with new attributes."
}
"ALG_DESC": "Analyze the line-of-sight layer. Calculate the attributes of LoS according to the type of line-of-sight.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to analyze.",
"CurvatureCorrections": "Should curvature and refraction corrections be applied?",
"RefractionCoefficient": "Value of the refraction coefficient. Default value: 0.13.",
"OutputLayer": "Output layer containing LoS with new attributes."
}
8 changes: 4 additions & 4 deletions los_tools/processing/doc/tool_angle_at_distance_for_size.help
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ALG_DESC": "The tool calculates object angle size based on object size and object distance from observer.<br/><br/> I.e. angular size of 10 meter object that is located 1000 meters away is 0.573 degree.",
"ALG_CREATOR": "Jan Caha",
"ALG_DESC": "This tool calculates the angular size of an object based on its physical size and its distance from the observer.<br/><br/> For example, the angular size of a 10-meter object located 1000 meters away is 0.573 degrees.",
"ALG_CREATOR": "Jan Caha",
"Size": "Size of the object in meters.",
"Distance": "Distance of the object from observer in meters.",
"OutputAngle": "Object size in degrees for object of given size at the given distance."
"Distance": "Distance of the object from the observer in meters.",
"OutputAngle": "Angular size of the object in degrees for the given size and distance."
}
16 changes: 8 additions & 8 deletions los_tools/processing/doc/tool_azimuth.help
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"ALG_DESC": "Calculates azimuths between points in one layer and centroids of polygons or lines in second layer.",
"ALG_CREATOR": "Jan Caha",
"PointLayer": "Layer of points to calculate the azimuth from.",
"PointLayerID": "Field containing ID for points.",
"ObjectLayer": "Layer of lines/polygons to calculate the azimuth to.",
"ObjectLayerID": "Field containing ID for object layer.",
"OutputTable": "Table containing the result (without geometry)."
}
"ALG_DESC": "Calculates azimuths between points in one layer and the centroids of polygons or lines in a second layer.",
"ALG_CREATOR": "Jan Caha",
"PointLayer": "Layer of points from which to calculate the azimuth.",
"PointLayerID": "Field containing IDs for the points.",
"ObjectLayer": "Layer of lines/polygons to which to calculate the azimuth.",
"ObjectLayerID": "Field containing IDs for the object layer.",
"OutputTable": "Table containing the results (without geometry)."
}
24 changes: 12 additions & 12 deletions los_tools/processing/doc/tool_create_global_los.help
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"ALG_DESC": "Create line-of-sight from each point from observers layer through each point in targets layer. Each line-of-sight starts at observer and ends at an edge of DEM raster behind target.",
"ALG_CREATOR": "Jan Caha",
"DemRasters": "Raster DEMs on which the LoS is calculated.",
"ObserverPoints": "Point layer representing the observers.",
"ObserverIdField": "Field containing ID for observer points.",
"ObserverOffset": "Field containing offset above DEM for observer points.",
"TargetPoints": "Point layer representing the targets.",
"TargetIdField": "Field containing ID for target points.",
"TargetOffset": "Field containing offset above DEM for target points.",
"LineDensity": "The distance by which the LoS is segmentized.",
"OutputLayer": "Output layer containing LoS."
}
"ALG_DESC": "Creates a line-of-sight from each point in the observers layer through each point in the targets layer. Each line-of-sight starts at the observer and ends at the edge of the DEM raster behind the target.",
"ALG_CREATOR": "Jan Caha",
"DemRasters": "Raster DEMs on which the LoS is calculated.",
"ObserverPoints": "Point layer representing the observers.",
"ObserverIdField": "Field containing IDs for observer points.",
"ObserverOffset": "Field containing the offset above DEM for observer points.",
"TargetPoints": "Point layer representing the targets.",
"TargetIdField": "Field containing IDs for target points.",
"TargetOffset": "Field containing the offset above DEM for target points.",
"LineDensity": "The distance by which the LoS is segmented.",
"OutputLayer": "Output layer containing the LoS."
}
24 changes: 12 additions & 12 deletions los_tools/processing/doc/tool_create_local_los.help
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"ALG_DESC": "Create line-of-sight between each point from observers layer and targets layer. Each line-of-sight starts at observer and ends at target.",
"ALG_CREATOR": "Jan Caha",
"DemRasters": "Raster DEMs on which the LoS is calculated.",
"ObserverPoints": "Point layer representing the observers.",
"ObserverIdField": "Field containing ID for observer points.",
"ObserverOffset": "Field containing offset above DEM for observer points.",
"TargetPoints": "Point layer representing the targets.",
"TargetIdField": "Field containing ID for target points.",
"TargetOffset": "Field containing offset above DEM for target points.",
"LineDensity": "The distance by which the LoS is segmentized.",
"OutputLayer": "Output layer containing LoS."
}
"ALG_DESC": "Creates a line-of-sight between each point in the observers layer and the targets layer. Each line-of-sight starts at the observer and ends at the target.",
"ALG_CREATOR": "Jan Caha",
"DemRasters": "Raster DEMs on which the LoS is calculated.",
"ObserverPoints": "Point layer representing the observers.",
"ObserverIdField": "Field containing IDs for observer points.",
"ObserverOffset": "Field containing the offset above DEM for observer points.",
"TargetPoints": "Point layer representing the targets.",
"TargetIdField": "Field containing IDs for target points.",
"TargetOffset": "Field containing the offset above DEM for target points.",
"LineDensity": "The distance by which the LoS is segmented.",
"OutputLayer": "Output layer containing the LoS."
}
25 changes: 12 additions & 13 deletions los_tools/processing/doc/tool_create_notarget_los.help
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"ALG_DESC": "Create line-of-sight between each point from observers layer and targets layer, where `Observer ID field` value from observer is equal to `Target and Observer agreement ID field` of target. This ensures that each point from targets layer is linked to one point from observers layer. Each line-of-sight starts at observer and ends at an edge of DEM raster behind target.",
"ALG_CREATOR": "Jan Caha",
"DemRasters": "Raster DEMs on which the LoS is calculated.",
"ObserverPoints": "Point layer representing the observers.",
"ObserverIdField": "Field containing ID for observer points.",
"ObserverOffset": "Field containing offset above DEM for observer points.",
"TargetPoints": "Point layer representing the targets.",
"TargetIdField": "Field containing ID for target points.",
"TargetDefinitionIdField": "Field that specifies which target point is linked to which observer point. Values in this field are compared to `ObserverIdField`.",
"LineDensity": "The distance by which the LoS is segmentized.",
"MaxLoSLength": "Maximal length of LoS generated.",
"OutputLayer": "Output layer containing LoS."
}
"ALG_DESC": "Creates a line-of-sight between each point in the observers layer and the targets layer, where the `Observer ID field` value from the observer matches the `Target and Observer agreement ID field` of the target. This ensures that each point in the targets layer is linked to one point in the observers layer. Each line-of-sight starts at the observer and ends at the edge of the DEM raster behind the target.",
"ALG_CREATOR": "Jan Caha",
"DemRasters": "List of DEM rasters on which the LoS is calculated. The rasters are ordered from smallest spatial resolution to highest. Elevation for the LoS is taken from the raster with the smallest spatial resolution that has a value.",
"LineSettingsTable": "Distance table specifying the sampling size on the LoS by distance.",
"ObserverPoints": "Point layer representing the observers.",
"ObserverIdField": "Field containing IDs for observer points.",
"ObserverOffset": "Field containing the offset above DEM for observer points.",
"TargetPoints": "Point layer representing the targets.",
"TargetIdField": "Field containing IDs for target points.",
"TargetDefinitionIdField": "Field that specifies which target point is linked to which observer point. Values in this field are compared to the `ObserverIdField`.",
"OutputLayer": "Output layer containing the LoS."
}
13 changes: 0 additions & 13 deletions los_tools/processing/doc/tool_create_notarget_los_v2.help

This file was deleted.

9 changes: 4 additions & 5 deletions los_tools/processing/doc/tool_distances_for_sizes.help
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"ALG_DESC": "The tool calculates distances at which objects of specified size (specified in the table) have given horizontal angular size.<br/><br/> I.e. at which distances have objects of size 1, 5 and 10 meters angular size of 0.1 degree.",
"ALG_CREATOR": "Jan Caha",
"ALG_DESC": "This tool calculates the distances at which objects of specified sizes (provided in the table) have a given horizontal angular size.<br/><br/> For example, it calculates the distances at which objects of sizes 1, 5, and 10 meters have an angular size of 0.1 degrees.",
"ALG_CREATOR": "Jan Caha",
"Angle": "Horizontal angular size that the objects should have (in degrees).",
"Size": "Sizes of the objects in meters (table).",
"MaximalDistance": "Add special row to the output used in other tools. The row has size of the object equal to maximum size in the input table and distance -1. This is used to indicate maximal possible legth of LoS.",
"Distance": "Distance of the object from observer in meters.",
"OutputTable": "Output table containing information about angle size, size of objects and relevant distances."
"MaximalDistance": "Add a special row to the output used in other tools. The row has the size of the object equal to the maximum size in the input table and a distance of -1. This is used to indicate the maximum possible length of the LoS.",
"OutputTable": "Output table containing information about angular size, object sizes, and relevant distances."
}
10 changes: 5 additions & 5 deletions los_tools/processing/doc/tool_export_horizon_lines.help
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"ALG_DESC": "Export horizon lines layer (or only selected features) to table suitable for export outside of QGIS. In the output table every row is a single point on specific LoS.",
"ALG_CREATOR": "Jan Caha",
"HorizonLinesLayer": "Horizon lines layer to export.",
"OutputFile": "Output containing exported points of horizon lines."
}
"ALG_DESC": "Exports the horizon lines layer (or only selected features) to a table suitable for export outside of QGIS. In the output table, each row represents a single point on a specific LoS.",
"ALG_CREATOR": "Jan Caha",
"HorizonLinesLayer": "Horizon lines layer to export.",
"OutputFile": "Output file containing exported points of horizon lines."
}
14 changes: 7 additions & 7 deletions los_tools/processing/doc/tool_export_los.help
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"ALG_DESC": "Export LoS layer (or only selected features) to table suitable for export outside of QGIS. In the output table every row is a single point on specific LoS.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to export.",
"CurvatureCorrections": "Should the curvature and refraction corrections be used?",
"RefractionCoefficient": "Value of refraction coefficient. Default value: 0.13.",
"OutputFile": "Output containing exported points."
}
"ALG_DESC": "Exports the LoS layer (or only selected features) to a table suitable for export outside of QGIS. In the output table, each row represents a single point on a specific LoS.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to export.",
"CurvatureCorrections": "Should curvature and refraction corrections be applied?",
"RefractionCoefficient": "Value of the refraction coefficient. Default value: 0.13.",
"OutputFile": "Output file containing exported points."
}
16 changes: 8 additions & 8 deletions los_tools/processing/doc/tool_extract_horizon_lines.help
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"ALG_DESC": "Tool that extracts horizon lines from LoS without target. For other types of LoS this operation does not make sense. For global horizon line it is possible to select value that should be used as M dimension for points creating the line.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to analyse.",
"HorizonType": "Type of horizon line to extract. Values: local or global.",
"CurvatureCorrections": "Should the curvature and refraction corrections be used?",
"RefractionCoefficient": "Value of refraction coefficient. Default value: 0.13.",
"OutputLayer": "Output layer containing LoS with new attributes."
}
"ALG_DESC": "This tool extracts horizon lines from LoS without a target. For other types of LoS, this operation is not applicable. For the global horizon line, it is possible to select a value that should be used as the M dimension for points creating the line.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to analyze.",
"HorizonType": "Type of horizon line to extract. Values: local or global.",
"CurvatureCorrections": "Should curvature and refraction corrections be applied?",
"RefractionCoefficient": "Value of the refraction coefficient. Default value: 0.13.",
"OutputLayer": "Output layer containing the extracted horizon lines."
}
16 changes: 8 additions & 8 deletions los_tools/processing/doc/tool_extract_horizons.help
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"ALG_DESC": "Tool that extracts horizons as points from LoS. Some combinations of LoS type and horizon to extract might not make a sense. E.g. extracting global horizon from local LoS raises an error.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to analyse.",
"HorizonType": "Type of horizon line to extract. Values: local or global.",
"CurvatureCorrections": "Should the curvature and refraction corrections be used? Default value: True.",
"RefractionCoefficient": "Value of refraction coefficient. Default value: 0.13.",
"OutputLayer": "Output point layer of horizon points."
}
"ALG_DESC": "This tool extracts horizons as points from LoS. Some combinations of LoS type and horizon to extract might not make sense. For example, extracting a global horizon from a local LoS raises an error.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to analyze.",
"HorizonType": "Type of horizon line to extract. Values: local or global.",
"CurvatureCorrections": "Should curvature and refraction corrections be applied? Default value: True.",
"RefractionCoefficient": "Value of the refraction coefficient. Default value: 0.13.",
"OutputLayer": "Output point layer of horizon points."
}
16 changes: 7 additions & 9 deletions los_tools/processing/doc/tool_extract_los_visibility_parts.help
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"ALG_DESC": "Extract individual parts from lines-of-sight. The line is divided into visible and invisible segments.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to extract lines from.",
"CurvatureCorrections": "Should the curvature and refraction corrections be used? Default value: True.",
"RefractionCoefficient": "Value of refraction coefficient. Default value: 0.13.",
"OnlyVisiblePoints": "Export only visible points on LoS or export all points on LoS.",
"ExtendedAttributes": "Calculate extended attributes for points.",
"OutputLayer": "Output layer containing points."
}
"ALG_DESC": "Extracts individual parts from lines-of-sight. The line is divided into visible and invisible segments.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to extract lines from.",
"CurvatureCorrections": "Should curvature and refraction corrections be applied? Default value: True.",
"RefractionCoefficient": "Value of the refraction coefficient. Default value: 0.13.",
"OutputLayer": "Output layer containing lines."
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"ALG_DESC": "Extract individual parts from lines-of-sight as polygons. Works for LoS without target. The line is divided into visible and invisible segments and extended to polygon by knowing angle step between individual LoS.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to extract polygons from.",
"CurvatureCorrections": "Should the curvature and refraction corrections be used? Default value: True.",
"RefractionCoefficient": "Value of refraction coefficient. Default value: 0.13.",
"OutputLayer": "Output layer containing points."
}
"ALG_DESC": "Extracts individual parts from lines-of-sight as polygons. Works for LoS without a target. The line is divided into visible and invisible segments and extended to polygons by knowing the angle step between individual LoS.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to extract polygons from.",
"CurvatureCorrections": "Should curvature and refraction corrections be applied? Default value: True.",
"RefractionCoefficient": "Value of the refraction coefficient. Default value: 0.13.",
"OutputLayer": "Output layer containing polygons."
}
18 changes: 9 additions & 9 deletions los_tools/processing/doc/tool_extract_points_los.help
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"ALG_DESC": "Extract individual points from lines-of-sight. It is possible to extract only visible points and also to calculate extended attributes for these points.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to extract points from.",
"CurvatureCorrections": "Should the curvature and refraction corrections be used? Default value: True.",
"RefractionCoefficient": "Value of refraction coefficient. Default value: 0.13.",
"OnlyVisiblePoints": "Export only visible points on LoS or export all points on LoS (not checked).",
"ExtendedAttributes": "Calculate extended attributes of visibility for points (not checked).",
"OutputLayer": "Output layer containing points."
}
"ALG_DESC": "Extracts individual points from lines-of-sight. It is possible to extract only visible points and also to calculate extended attributes for these points.",
"ALG_CREATOR": "Jan Caha",
"LoSLayer": "LoS layer to extract points from.",
"CurvatureCorrections": "Should curvature and refraction corrections be applied? Default value: True.",
"RefractionCoefficient": "Value of the refraction coefficient. Default value: 0.13.",
"OnlyVisiblePoints": "Export only visible points on LoS or export all points on LoS.",
"ExtendedAttributes": "Calculate extended attributes for points.",
"OutputLayer": "Output layer containing points."
}
Loading

0 comments on commit 1bec1a7

Please sign in to comment.