72 votes

Сreating polygons with straight lines and right angles in QGIS

There is a Shape Digitizing toolbar in which has an option to add rectangle using different methods: To show the toolbar, right-click the main menu and select Shape Digitizing toolbar I am using ...
  • 38.1k
36 votes

Creating polygon grid using GeoPandas

Previous answer gives correct result, but I allowed myself to improve the code, to avoid many unnecessary lines, as well as iterating on indexes instead of values on the list. import geopandas as gpd ...
  • 599
28 votes
Accepted

Generating rectangle centered by point in QGIS

Check the "Rectangles, Ovals, Diamonds (Variable)" geoalgorithm in the QGIS's Processing Toolbox (Ctrl+Alt+T)
  • 26.3k
25 votes
Accepted

Creating polygon grid using GeoPandas

There are many solutions. One of them import geopandas as gpd from shapely.geometry import Polygon import numpy as np points = gpd.read_file('points.shp') xmin,ymin,xmax,ymax = points....
  • 52.4k
22 votes

Сreating polygons with straight lines and right angles in QGIS

No plugin needed In addition to the Shape Digitizing Toolbar it's also possible to add right angles through the Advanced Digitizing Tools. Activate the Advanced Digitizing Tools and lock the angles ...
22 votes
Accepted

Buffering only sides of polygons in QGIS

Starting with a polygon (or several polygons): Run the "Polygons to Lines": Then "Explode lines". This won't look any different but if you enable "Show feature count" ...
  • 55.8k
20 votes

Generating rectangle centered by point in QGIS

There is "Geometry by Expression" tool. You should use in a projected coordinate system. Select "Polygon" as "Output geometry type" option. Click "Expression" ...
18 votes
Accepted

Making ellipse based on ellipse-like polygon in QGIS

Apply the "Oriented minimum bounding box" (see documentation) From these, create ellipses with values from the attribute table calculated in the first step: make_ellipse(centroid($geometry),...
  • 48.3k
18 votes

Changing polygon circles to hexagons using QGIS

Yes, try to use the make_regular_polygon() via the "Geometry by expression" from the Processing Toolbox (Ctrl+Alt+T). Let's assume there is a layer 'Polygon' with circles, see image below. ...
  • 26.3k
18 votes
Accepted

Creating equally split buffers between points in QGIS

You can use "Voronoi Polygons", "Buffer" and "Clip" tools, respectively (or "Buffer" > "Voronoi Polygons" > "Clip"). Step 1. "...
16 votes
Accepted

Drawing ellipse with shapely

Answer First, define a circle of radius 1. Then define an ellipse along x and y axis. Rotate the ellipse. Finally, actually draw the ellipse. Code from matplotlib import pyplot from shapely.geometry....
  • 7,927
15 votes

Creating nested grid in QGIS

This answer was given to the original question prior the edit: Here is a graphical model you can use: So basically, you first need to create your parent grid as rectangles and order them with an SQL ...
  • 28.2k
14 votes

Subtracting (erasing) polygons from polygon using ArcGIS for Desktop?

Basic license workaround (Advanced license alternative: Erase) below: Union both layers Edit, select (those where FID_circleLayer <> -1 and FID_parcelLayer = -1, using selection type "are within (...
  • 4,638
14 votes
Accepted

Changing points into hexagon polygons using QGIS

There is an equivalent tool, namely "Rectangles, Ovals, Diamonds", in the QGIS's Toolbox(Ctrl+Alt+T) under Vector geometry. Set Shape as Oval and Segments value as 6 to get a hexagon.
14 votes

Creating square polygons of given length from single corner point in QGIS

There is "Vector geometry > Geometry by Expression" tool in Processing Toolbox. You should use in a projected coordinate system. Select "Polygon" as "Output geometry type&...
14 votes

Best practices to show extent of Print Composer maps in main canvas in QGIS

There is a native feature in QGIS to display print extents in the map canvas. But if you want proper GIS polygons in a layer, you should indeed use some PyQGIS with the script provided in the other ...
  • 6,341
13 votes
Accepted

Creating wedge buffers from many point to one in QGIS

Open "Create Wedge Buffer" tool. Select the layer containing the start points as input layer. Click "Data defined override" option () near the "Azimuth" and select "...
13 votes
Accepted

Creating circle around point with specific radius taken from column in QGIS

Using Vector geometry > Buffer tool in Processing Toolbox, you can specify the field that contains the radius value, as in the image: After selecting a field, Distance parameter will be inactive.
13 votes
Accepted

Rotating polygons to follow the curve (line) in 90 degree in QGIS

Create the line (if not already done) Use the algorithm "Points along geometry" to create your points. This algorithm will automatically add a field called "angle" to the points. ...
  • 28.2k
12 votes

Finding centrelines from polygons in QGIS

I've been working on implementing the model depicted in @RajGovind's answer to Creating Centrelines from Road Polygons/Casings? which is quite close to what @geogeek described in his answer here in ...
  • 82.9k
12 votes

Creating equally split buffers between points in QGIS

Buffer the points Voronoi the points with "buffer region..:" 500 % (whatever percentage large enough to include the buffers) Intersect buffers with voronois Extract by location the ...
  • 57.2k
12 votes
Accepted

Creating square polygons of given length from single corner point in QGIS

Use geometry by expression to create a point at 315 degrees azimuth from your point with a distance of the hypotenuse of the square, then create a box around the two points: bounds(collect_geometries( ...
  • 57.2k
11 votes
Accepted

Generating consistently-dimensioned polygons in mm units?

Your algorithm makes sense, but it seems that your problem is due to a rounding error when you divide by 2000 (divide by integer, which explains why a number smaller than two gives 0, and all ...
  • 49k
11 votes
Accepted

Creating variable distance buffers in QGIS

It's now part of the "Buffer" tool. You can now enter a buffer value in the distance text box or you could click on the button on the right of the distance text box to set a variable ...
  • 12.7k
11 votes

Making ellipse based on ellipse-like polygon in QGIS

You could try something like: make_ellipse( centroid($geometry), bounds_width($geometry)/2, bounds_height($geometry)/2, main_angle($geometry), 45 ) 45 is the number of ...
  • 28.2k
10 votes

Drawing outline of point cloud using QGIS

You want the concave hull or Alpha shape ? You have many solutions (Python only, R, GRASS GIS, OpenJump,...) and in QGIS in the Processing Toolbox : qgis:concavehull (Concave Hull) in the Processing ...
  • 52.4k
10 votes
Accepted

Creating a Radial Sector Overlay in QGIS

(Too long for a comment but thought this might be helpful in some way.) There is a plugin called Proportional circles which allows you create a legend broken into x number of segments (polygons) with ...
  • 73.4k
10 votes

Creating polygon using coordinates

To give an example according to @geom recommendation. You must use the syntax to define polygons in WKT format, here an example in CSV: Finally use add delimited text data source: With the ...
  • 446
10 votes

Creating polygon around set of points without blank polygon spaces in between in PostGIS

I was able to get the desired result using Minimum Spanning Tree as @Bera had suggested. I looked into it and followed the steps mentioned in the already answered question in the link Finding the ...
  • 339
10 votes

Converting lines (edges) to polygons with Python

I will firstly start with your code. There is no need to manipulate the list with lists of coordinates, as you did it with geometry.Polygon([[p[0], p[1]] for p in cxy]). The class Polygon(shell[, ...
  • 26.3k

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