Questions tagged [vector-grid]

Use for questions about vector grids which are also known as fishnets

32
votes
4answers
23k views

Overlay a spatial polygon with a grid and check in which grid element specific coordinates are located

How can one use R to split a shapefile in 200 meter squares/sub-polygons, plot this grid (incl. ID numbers for each square) over the original map below, and evaluate in which square specific ...
20
votes
4answers
31k views

Creating fishnet grid Shapefile in QGIS?

How do I create a fishnet shapefile using QGIS? The equivalent task of "Create Fishnet" in ArcGIS.
12
votes
2answers
20k views

How to make RASTER from irregular point data without interpolation

I was trying to make a raster image from an irregularly spaced point database. The data looks like- > head(s100_ras) x y z 1 267573.9 2633781 213.29545 2 262224.4 2633781 ...
11
votes
3answers
7k views

Divide a complex shapefile into a grid

I have a decently detailed shapefile with polygon/multipolygon features (the file is about 500mb). It's actually a shapefile of the entire world, with the features representing coastlines. I need to ...
11
votes
3answers
525 views

A global, grid-like projection for creating heatmaps

I'm putting together an application where I need to create a vector grid which will be used to store and display a heatmap. It has the following requirements: Can cover the entire planet. The vast ...
11
votes
4answers
10k views

Creating regularly spaced, defined # of points within polygon in QGIS

I used the research tool "Regular Points" to produce a certain number of points within a polygon, but it forms a rectangular grid of points rather than only within the shape of the polygon. Since I ...
10
votes
2answers
18k views

Creating lat/lon grid in QGIS?

I'm using QGIS. How can I create a shapefile consisting of a grid 0.5° latitude and 1° longitude in size?
10
votes
1answer
201 views

Create points at specified distance from each other in random fishnet's cells while being on linestrings

We have a land protocol where we receive a fishnet of 1x1 km cells. Some cells are randomly choosed. We need to put 4 points in each cell and these points have to be on a road too. The minimum ...
9
votes
4answers
12k views

Creating square grid polygon shapefile with Python?

I have the following coordinates minx, maxx, miny ,maxy = 448262.080078, 450360.750122, 6262492.020081, 6262938.950073 I wish to create a square grid of size 1 m using python. import math minx,...
8
votes
1answer
7k views

Creating fishnet grid with specified rotation angle in ArcGIS Desktop?

I'm working on this project and I need a grid with a certain rotation, at about 60 degrees, for example. Starting from that I need to make a block of 20mx50m, and the last thing is that inside each ...
8
votes
7answers
7k views

How to split a polygon into quadrants?

I have a Alberta province (Canada) section polygon shapefile in GCS_NAD83 with 255,000 polygons. I like to split each section into 4 equal quadrants (NW, NE, SW, SE) The Alberta province has several ...
8
votes
1answer
266 views

How can I export a list of points as a matrix in ArcGIS 10.0?

I have a grid made of points (see attachment) with values for altitude extracted from a DEM. I need to export these values not as list, but as a matrix of size 50x50 to be read in SciLab. The grid is ...
8
votes
1answer
3k views

Generating grid shapefile in R?

I have the following shapefile of a 10x10 degree latitude/longitude grid that I created in QGIS. I can read it into R using the rgdal package. Grid<-readOGR(".","GridShapeFile") It has the ...
8
votes
1answer
514 views

Calculating colors of the squares in a vector grid in QGIS 2.18.5

I have a layer with many buildings as points on a map. One of the attributes of each building is "download_speed". I want to put a square grid (100 x 100 meters) on top of the map. The squares should ...
7
votes
2answers
2k views

Creating fishnet from template feature class using ArcPy?

I can’t use the tool arcpy.CreateFishnet_management because define the parameter “templateExtent” with a shapefile it is not filling automatically the parameters “originCoordinate” and “...
7
votes
4answers
2k views

How to count points within adjoining hex grid cells?

I am currently using QGIS, and have developed a vector grid (hexagonal). I have a separate layer with point data. For each grid cell I need to count the number of points in that cell (but also all ...
7
votes
1answer
2k views

Creating vector grid using QGIS?

I have 235 raster tile 20km x 20km. I need to create a grid to overlay across them...ie the grid itself will be 20km x 20km, with the lines of the grid on the boundaries of the tiles. I am assuming ...
7
votes
1answer
13k views

Parameter values to create a vector grid with 1km x 1km cells?

I created a shapefile from WKT in QGIS using the values from this link. I want to create a vector grid with 1kmx1km cells but I can't figure out what values need to be set for the X and Y parameters. ...
7
votes
1answer
3k views

Generate rectangular fishnet or vector (grid cells) shapefile in R?

I would like to create a polygon of 20 x 10 degree graticules from 180, -180 to 90, -90 degrees. To do this in QGIS, I followed: Vector creation tools > Create grid [Grid extent: -180, 180, -90, 90]...
7
votes
1answer
440 views

Problem executing Processing Vector Grid algorithm in a standalone script

I have the following piece of code which I execute within QGIS 2.8.6 import processing import ogr restrLayer = QgsVectorLayer("/home/usr/Desktop/trial/EligibleAreas_polygons_filtered.shp", "...
6
votes
3answers
997 views

How to select specific rows of polygons from a grid in QGIS?

I have a polygon layer. I would like to select every second row of the polygons but not manually. Is there an expression to select every second row as seen on the picture with Select by expression in ...
6
votes
2answers
13k views

Createing polygon layer from point data using QGIS?

I'm currently using QGIS 1.8.0 I would like to create a polygon layer from a point dataset, where the size of the polygons relates to the resolution of the grid reference. The ultimate aim would be ...
6
votes
1answer
1k views

Dividing a geographic region

I have a certain geographic region defined by the bottom left and top right coordinates. How can I divide this region into areas of 20x20km. I mean in practial the shape of the earth is not flat it's ...
6
votes
1answer
1k views

How to emulate a specific vector grid in QGIS?

I would like to analyze data included in a pdf file. The file contains information on characteristics of 16km grid cells for a specific study area. The file also includes a map displaying the grid. I ...
5
votes
4answers
6k views

How to create a grid whose vertex coordinates are shown on an attribute table in Arcmap?

I have a specific area to study. Before starting on my field work, I have to create a 310m X 310m grid of the area. Later on I have to get the coordinates of each point of the grid in an attribute ...
5
votes
3answers
1k views

Align raster to fishnet using ArcGIS 10.3

I am having some trouble aligning a raster (elevation) to a fishnet I created. The cell sizes for both the raster and the fishnet are 30x30 meters. I have tried using the clip and extract by mask ...
5
votes
3answers
737 views

Finding the average value from polygon areas in a fishnet cell

I am looking to assign depth values to each fishnet grid cell that I have by taking the area-weighted average of values from a contour/isopach map. The map was interpolating using the depths of ...
5
votes
2answers
5k views

Making Fishnet that is specific size in square meters on ground?

I have a raster image in GCS WGS 1984. For sampling I want to take a grid of 500 m^2 in my area of interest and pick the centroid of this square. How do I make sure that the grid created with Fishnet ...
5
votes
2answers
204 views

Set seed value for random points in vector grid

I am using QGIS 2.18.11 and I have overlaid a 50m x 50m grid on a map (through Vector Grid) and have 98 grid cells in total. What I need to do is to generate 12 points randomly per grid cell that is “...
5
votes
2answers
1k views

Adding attribute features from the intersection of a grid with a point shapefile?

I want to calculate the frequency of observation of an animal in a forest habitat within the different zones of my study area. To do this I will use the simple equation (number of individuals)/(survey ...
5
votes
1answer
213 views

Expanding a grid/fishnet in QGIS

I have two vector layers as seen below, one is a landcover map showing the different habitats in a region and one is a grid of 4 x 4 km squares that covers the region. I have to extend this grid to ...
5
votes
1answer
205 views

Convert polygon to grid lines

I have a QGIS project with several shapefiles like the one in following image. I want to know how many times the shapefiles overlap and where is produced a gradient. I think the best option is to ...
5
votes
1answer
287 views

Determining size of grid cells created by vector grid tool of QGIS?

I am working with QGIS 1.8.0 and Im making a vector grid on a map. Does someone know how big are the squares if the grid settings look like in the picture?
5
votes
1answer
1k views

Sub-dividing a polygon into smaller polygons

In OpenStreetMap data, some large areas are tagged with a residential=yes tag. Actually within this large polygon there are multiple smaller (rectangular) houses (which are actually not drawn as yet). ...
5
votes
1answer
4k views

How to split a polygon into multiple small parts by grid

we delineated a river basin in shape file and generated a line-featured shapefile using Hawths tools. now our task is that we want to divide this basin into small polygons by gird in order to compute ...
5
votes
1answer
1k views

Converting polygon values to a vector grid using PostGIS

What is the best way of converting a value from irregularly shaped poylgons to a polygon grid using PostGIS? I have a set of polygons that look like this: and I would like to overlay a grid on these ...
5
votes
1answer
156 views

Vector to raster by maximum combined area

I need to convert a polygon to raster resulting in a raster with cell size of 250 meters and each cell value takes the value of the objects, with equal values, that together sum the largest surface ...
5
votes
2answers
2k views

How to create a valid global polygon grid in PostGIS?

I want to create a grid spawning the whole globe. The grid is used to measure a density value by counting the number of certain spatial objects in each grid cell. To create the grid, I have created ...
5
votes
0answers
348 views

Using QGIS 2.14 to creating a evenly distributed grid of points, spaced 500m apart, that takes terrain into account [closed]

I am using QGIS 2.14 (Essen Version). I need to create a grid of points within a given area so that each points 500m across the ground from any other point. At these points trail cams will be placed,...
5
votes
0answers
144 views

Does sum line length measures geodetic or planar distance? [duplicate]

In QGIS i created a grid (via "create grid"), which i later split into layers of horizontal and vertical lines. Afterwards i calculated the respective cumulative line length for polygons using "Sume ...
5
votes
0answers
437 views

Insert sequential row and column values automatically into a fishnet dataset

I have a grid that has about 30 rows with approx 15 columns each. I want to label them as A1,A2,B1,B2 etc (Alphabet row, integer is column). Is there any way to do this programatically? There is no ...
4
votes
5answers
11k views

Creating grid to divide large map into smaller sections using ArcGIS for Desktop?

I have a map of small remnants of forest along creeks for an entire county in California. I need to divide the whole map into equal sections so I can print it so you can actually see the sections of ...
4
votes
1answer
349 views

Turning vector grid into individual shapefiles using QGIS?

I am using QGIS and I created a vector grid on a crop field in order to cut it into plots. I want to save each grid cell into individual polygon shapefiles automatically. Here is an example of a ...
4
votes
3answers
5k views

Create grid where points is centroid? QGIS

I want a grid around my points(100 x 100 m), where points are center. Creating a grid from Vector --> Research Tools --> Vector Grid creates grid, but not centered around my points. How do I ...
4
votes
3answers
197 views

Can you recycle shp and shx files in shapefile fishnet (vector grid) where only dbf data changes?

I'm periodically getting data from an external partner that is bound to a very large fishnet (vector grid) in shapefile format. The fishnet itself sits at around 400~ megabytes, but the only data that ...
4
votes
2answers
398 views

ArcMap Exported (KML/KMZ) Meridians and Parallels do not match/ align with that of Google Earth

I was trying to draw kml that are (one degree in gap) meredians and parallels for Austrailia. e.g see i tried to draw 142 degree and 11 degree lines using fishnet in arcmap but when imported into ...
4
votes
2answers
4k views

Create a polygon grid using with Geopandas

I'm working with a geodataframe of points and I need to create a grid of rectangular polygons. I know how to have bounds of the geodataframe with gdf.geometry.bounds. Now using this information and ...
4
votes
4answers
1k views

Retaining all fishnet grid squares within boundary of polygon from another feature class?

I have created a fishnet grid (3km x 3km) over a vector polygon. I now want to clip the fishnet over the vector polygon retaining all grid squares within the boundary of the polygon. Therefore I ...
4
votes
1answer
2k views

How to create a 500m Regular Grid for KML input area?

I am hoping to create a point grid over the city of Edmonton. My workflow is: Import a KML of Edmonton neighborhoods from here Save the layer as a SHP Delete the layer and load the SHP Define the ...
4
votes
2answers
142 views

Uncertainty of a line between two coordinates with uncertainties in QGIS

I am trying to plot the uncertainty of a line between two coordinates with uncertainties. I have created polygons around 2 coordinates to represent the uncertainty region around each point. I then ...