We’re rewarding the question askers & reputations are being recalculated! Read more.
7

You have two options here. First one will create a new vector layer with a grid and the second one will just display a grid as overlay. What you are looking for is the first option. However, in case someone else is finding this question, the second option might be helpful as well. Edit: of course 10m xy, not 100m as said below... First option: Run "Create ...


6

I dont think there is a way of only symbolizing the outer borders. But you can use Dissolve tool to create a new feature class which will not have the inner borders. Then select no fill/transparent fill and symbolize only the borders. (You probably dont need to use any dissolve attribute)


5

This is a bit of a workaround in QGIS 3.8 and requires that the points are separated by a uniform distance (bit it looks like it from your screenshots). Create a grid with the same spacing and dimensions as your points - somewhere in the vicinity with Processing Toolbox --> Create grid Next, enable the editing mode on the new Grid grid. Make sure that the ...


5

How to create polygons from MINx, MAXx, MINy and MAXy values Import the dataset as a delimited text layer without geometry (as an attribute-only table). Write an expression that combines the MINx, MAXx, MINy and MAXy fields into a polygon. One method is using the make_... geometry functions. First use the make_point() function to combine the corner ...


4

Generate Voronoi Polygons around your points using Processing Toolbox - Vector Geometry-Voronoi Polygons. Use Vector - Geometry Tools - Extract Vertices to get the intersections of the newly created Voronoi Polygons. Creating Voronoi Polygons around the vertices. The resulting polygons will have your original points located at their intersections ...


4

You can create a new layer with the re-ordered ID Run the grid tool as you currently do. Go the the menu layer / add layer / add-edit virtual layer and enter the following query. select *, ROW_NUMBER() OVER(ORDER BY ST_MinY(geometry) asc, ST_MinX(geometry) asc) as newID FROM Grid you can replace the layer name (Grid) with the true name. If you don't ...


4

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 from shapely.geometry import Polygon import numpy as np points = gpd.read_file('points.shp') xmin,ymin,xmax,ymax = points.total_bounds length = 1000 wide = ...


3

The syntax for the count function is as follows: count(expression[,group_by][,filter]) As you can see, it accepts one group_by input. The methods you've tried all had three inputs. The third input will always be interpreted as a filter parameter, not as a second group_by parameter. Instead, you need to combine the two fields ("act_tot_id" and "...


3

Here I have an alternative where you can set your own parameters, file names, etc, but using R (not big deal). Here is data for tryout: https://www.dropbox.com/s/a40kk9gl1128qcl/RasterDistance.zip?dl=0 Here is the code: r <- read.csv2("ejemplo") #change ejemplo by your path file r <- rasterFromXYZ(r[, c('x', 'y', 'value')]) #create a matrix with ...


3

In QGIS 3.4, in the Processing toolbox, look for SAGA >> Vector general >> Create polygons graticule


2

As suggested by user klewis, you can perform a spatial Sort by using the Shape field* (before updating the column switch with arcpy.da.UpdateCursor, if needed). *Requires a Desktop Advanced license. Set the spatial_sort_method parameter equal UL (upper left). It will reorder rows based on position of rectangular cells in the fishnet starting from top, and ...


2

yes, IDW is usually implemented so that the value of each cell(pixel) is assigned based on the location of the center of this cell(pixel). Raster storage is just an efficient way to store those equally spaced points, but one should keep in mind that it is a "point center" representation in this case, not an "area-based" representation. Note that this is a ...


2

Lets do an example with some supplied sample data from the spData package. I know columbus isn't a grid but I guess your shape is a set of square polygons that make a grid. library(rgdal) shape <- readOGR(system.file("shapes/columbus.shp", package="spData")[1]) Now if your shape object doesn't have a row index, add one: shape$row = 1:nrow(shape) Let's ...


2

Just a thought. Snip any picture you like, e.g. night lights. Georeference it to area of interest: Reclassify:


2

Use QGIS DB Manager : Database / Database Manager / Database Manager then Virtual Layers / Qgis Layers. Try a query like this one : select grid.id,max(st_area(st_intersection(grid.geometry,vege.geometry))),vege.type from vege, grid where st_intersects(vege.geometry, grid.geometry) group by grid.id That should do the job ... Adapt the query to your data ...


2

Finally I arrived to a solution creating the field "concat" by concatenating in a single string: "res" || '_' || "id_malla" Then in the field calculator: count("res", "concat") Now there's only left to calculate the index by the formula: H' = sum( "Pi" / ln(2, "Pi") ) * -1 where Pi = "act_n_cd" / "act_tot_id" for each grid cell


2

To do this I think you will need to look past the Grid Index Features and Create Fishnet tools and instead use ArcPy geometry with nested for loops to generate rectangular polygons in the order that you want. I just adapted some code from my Challenging Times with Python and ArcPy for ArcGIS Pro eLearning course to do that here. I write my output to the ...


1

There is a pivot table tool in ArcMap like there is in Excel. Maybe that would do it?


1

You can accomplish this using a combination of a Grid Index and Data Driven Pages to divide your country into a grid, and a Multiple Ring Buffer to provide a white background outside the country's border. The following assumes that you have a polygon feature describing the country's border. The one I've used here is not a 100% perfect fit, but it will give ...


1

After @Spacedman’s guidance I could finish my own function for what I wanted. I added the continuation to get the number of matches and mismatches and percentage of matching and made it to a function with the 1000 replicate. Here is how I did it. Probably there is a shorter and cleaner way to do it but I am a beginner so: overlap<-function(x,y, shapefile)...


1

Intersect the points and fishnet polygons. Then one way is to use python and the pandas module to count unique point ids per fishnet id. import arcpy import pandas as pd #Change these four lines to match your data inter_output = r'C:\data.gdb\intersect123' fishnet_id_field = 'FID_fishnet' vessel_id_field = 'VesselID' adjp_field = 'AdjPounds' #Create a ...


1

You can use layer event handler to process mouse click event, see sliced GeoJSON example http://leaflet.github.io/Leaflet.VectorGrid/demo-geojson.html (example does not work in IE11). Example below catches mouse click event for L.vectorGrid.slicer layer, changes feature line color from black to red and displays popup with feature id at click position. EDIT:...


1

Here is how I would approach this. It does assume that you have the Spatial Analyst extension. I would first convert the vector grid to raster using the field that indicates the presence or absence of animal sightings. The result would be binary (1 or 0). I would make the cell size the same as the cells of the vector grid. Then I would run a focal sum ...


1

To create a cartogram as in your first image you can use either Darcy software or DistanceCartogram Qgis plugin (there probably are other tools for distance cartograms - but if I'm not mistaken those two implement the method used to create your image). I saw in your comment that you tried DistanceCartogram plugin. To use it you have to provide either : two ...


1

To do this I would use Create Fishnet a number of times because it: Creates a fishnet of rectangular cells. The output can be polyline or polygon features. These fishnets can have cells wider than high, and higher than wide, to meet your requirements.


1

We made it. Once created the "shifted grid polyline"(with the "Custom Grid Tool", see above) we converted the original grid into polyline. Then we merged to 1 polyline grid 5x5km. Finally with "Feature to Polygon" we got the required output without having ArcGIS crashing...


1

I got a processing model to almost do what you want. It creates a grid inside each polygon. Each grid should have its own spacing, as defined by the fields "Horizontal_spacing" and "Vertical_spacing". But the grid spacing is identical for each polygon. Hopefully this will be useful to get you started in the right direction. Create a processing model. Add ...


1

Calculate polygon neighbours and use output in this script: import arcpy import networkx as nx G=nx.Graph() with arcpy.da.SearchCursor("neighbours", ["src_FID","nbr_FID"]) as cursor: for f,t in cursor: G.add_edge(f,t,weight=1) for node in G.nodes(): lengths=nx.single_source_dijkstra_path_length(G, node) if node!=10: continue csvfile =...


1

Possible Solution based on above comments. As per suggestion, I tried to set extent same as fishnet polygon, however the error stayed the same. However I have another raster already with same pixel location. Selecting 'Snap Raster' to this raster in environment solved the problem


1

Move to a square planet? You can't overcome the fact that the Earth is an oblate spheroid. If you want a regular grid in meters, it will not appear regular in degrees. If you create a regular grid in degrees, it will not have fixed spacing in the X axis. You can fudge things so rectangles in degrees have approximately the same area, but then the spherical ...


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