2.2.54. Statistics of points and tracks in polygons from NGW
Calculating the number of points per kilometer of tracks inside polygons, all data from NextGIS Web
Inputs:
Web GIS address. Example: https://sandbox.nextgis.com
Login. Web GIS user login;
Password. Web GIS user password;
Polygons resource ID. Resource ID of the vector layer that contains polygons;
Polygons layer name field. Name of the field with the name in the polygon layer. The names of the polygons (for example, area names or grid cell numbers) will be used in the report;
Points resource ID. Resource ID of the vector layer that contains points;
Fields with point categories. You can specify multiple attributes separated by commas, for example: author,species. Leave the input blank if you do not need to use point categories for calculations;
Field with point date. The name of the field that stores the date the point was registered. Leave blank if you do not need to filter points by date;
Start date. Start date for filtering tracks and points. Recorded in the format yyyy-mm-dd, for example 2024-02-01. Leave input empty to use tracks from first day of database;
End date. End date for filtering tracks and points. Recorded in the format yyyy-mm-dd, for example 2024-02-01. Leave input empty to use all tracks up to today;
Trackers list. List of trackers whose data needs to be processed. Tracker IDs are written in comma-separated format, for example 314,318,340. Leave blank to use all available trackers;
Split statistics by trackers. Use tracker ID as another category for calculating statistics;
Ignore polygons without tracks. Do not include statistics when there are points in polygon, but no tracks.
Output:
CSV file with report.
The ID of resources and trackers can be obtained through the web interface of the Web GIS used. Open the resource of the vector layer or tracker, its address in the browser will look like https://demo.nextgis.com/resource/6895. ID is the number on the right side of the address, in this case 6895.
Tool workflow:
Load vector layers with polygons and points from Web GIS;
Load data from all (or specified) trackers from Web GIS;
Calculate track lengths in each polygon, with or without division by individual trackers, depending on the launch parameters;
Calculate the number of points in each polygon, with or without division by categories from attributes, depending on the launch parameters;
Calculate statistics on the number of points per 1 km of tracks in each polygon, taking into account all previous divisions - by individual trackers or by all, by all points or with division by categories;
Generate a report.
Launch tool: https://toolbox.nextgis.com/t/points_on_tracks_stats
Try it out using our sample:
Download input dataset to test the instrument. Step-by-step instructions included.
Get the output to additionally check the results.