I need a square polygon to clip layers to, in QGIS, a perfect square perhaps. It needs to be a certain size. Anyone have any experience or any good ideas?
- Create a custom CRS around the center of the desired square:
+proj=tmerc +lon_0=7 +lat_0=51 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +towgs84=0,0,0,0,0,0,0 +no_defs
- Create a textfile with the following content for a 10*10 km square:
Geom, "POLYGON((-5000 -5000, -5000 5000, 5000 5000, 5000 -5000, -5000 -5000))"
Add the file as
Save the layer as a shapefile for further processing and delete the delimited text layer
Densify the geometry with
Vector -> Geometry tools -> Densify Geometries ...
Save the layer to the CRS of the layer you want to clip