Hot answers tagged

4

You have got four columns in the output point grid because you have got the four corner points of each polygon grid. To see it visually, create a point grid layer, as you have already done, and specify the x and y spacings: you will get the following grid of points: Now, create a polygon grid with the same xy spacing, and the same extent of the point grid ...


4

You can do that using the following steps: Use Sample raster values to extract the raster values to the point locations Add a new field of numeric type (float, for example) name it Subtract or the name you like to store the subtracted values. Finally, use field calculator to subtract the values retrieved in step 1 from z values of point data. Note: Make ...


3

You can use the QGIS DB Manager to create an SQL query using Virtual layers. The following SQL code corresponds to the test layer I created. You need to change the names to match those of your data. select a.rand_point_id, a.id, b.rand_point_id, b.id, distance(a.geometry, b.geometry) dist from r_points as a, r_points as b where a.id = b.id and a....


2

In the most recent version of QGIS, they added a feature called "Add X/Y Field to Layer" which (In this case you're wanting the lats/longs of a point layer) will add the latitude & longitude to your specified projection as x (longitude) & y (latitude) columns


1

A bit of a workaround , but you could do the following: Generate your random points inside polygons tool normally. A unique ID is generated Run a distance matrix, using the unique ID generated as the required unique ID for the too, and specifying the output matrix type as Standard N X T distance matrix Intersect the resulting distance matrix with the ...


1

If I understood your question right, the azimuth you're looking for is the azimuth of the small red lines in the original answer. I created this line using the following expression on the layer with the resulting points (those inside the polygons). It includes the overlay_nearest function, available since QGIS 3.16. The first argument is the reference to a ...


1

You don't need to sort anything. Issue is due to the features have a wrong id. So, you only have to assign them in the correct order. It can be done in QGIS with a little PyQGIS script where I pair ids and point geometries in a list of lists. These lists are used to change ids to correct order and directly to produce a good looking line. It looks as follows: ...


1

If you are looking for a simple line that is going in only one direction, a straightforward way to solve your problem is to use the derivated geometry attributes in order to join the points in the correct order. Using the Points to path algorithm, add the geometry attribute in Order by expression. For example, $X will join the points form the left to the ...


1

I was having the same problem and managed to figure it out using the general_log.csv and observed how MySQL Importer QGIS Plugin wasn't having the same issue. The following query is needed for you to get QGIS working with your table: CREATE TABLE `target_schema`.`geometry_columns` ( `F_TABLE_CATALOG` varchar(256) DEFAULT NULL, `F_TABLE_SCHEMA` varchar(...


1

Some more details about this feature in QGIS, along with PyQGIS code to accomplish the same setting. Global setting As @ndawson explained, this setting can be set for any feature created using QGIS. PyQGIS The same can be set by the following PyQGIS call: QSettings().setValue('/qgis/digitizing/disable_enter_attribute_values_dialog', True) Per layer setting ...


Only top voted, non community-wiki answers of a minimum length are eligible