Questions tagged [random]

Having no specific pattern, purpose, or objective

Filter by
Sorted by
Tagged with
1
vote
1answer
30 views

Error on Line 109 of Creating Random Points in Layer Bounds Tool

I am using the latest version of QGIS 3.6.3 and I am getting the same error regardless of what I do when trying to run the Create Random Points in Layer Bounds tool. Here is the error: QGIS version: ...
2
votes
2answers
51 views

Update 1 random value in a group of values

I have an attribute table with a date field and a random field. The date field has three different times for each day. I need to input a '1' in the random field for one of those three times in each ...
0
votes
2answers
113 views

Generating random points within series of polygons according to density using R

I have a city that is made up of a number of wards, each with an unequal population. I would like to generate a set of "random" points within the city, but the randomness is influenced by the ...
3
votes
1answer
166 views

Expression for random numbers without duplicates

Using only the QGIS field calculator, how to create an expression that generates random numbers without duplicates? rand (1,10) and randf (1,10) generate random numbers but could be repeated in a set ...
4
votes
2answers
70 views

QGIS Random point inside polygon **but** - with minimum distance between points from different polygons

I am trying to generate random points in stratified area with 2 polygons. I want to generate 6 random points - 3 in each but to set minimum distance not only between points from same polygon but ...
0
votes
0answers
43 views

Randomly Sample Raster Pixels With a Minimum Distance in QGIS

Is there a way I can sample random raster pixels from a satellite image with QGIS or QGIS plugin? I also need each randomly-chosen pixel to have a pre-defined minimum distance from the other raster ...
0
votes
1answer
36 views

Python to generate a different number of random points for features using iteration with tool parameter values in feature attribute table

I want to generate a certain number of random points in N number of zip codes. The number of points to be generated for each individual zip code is stored the attribute of the feature class of all ...
0
votes
0answers
44 views

QGIS spatial sampling tool for existing points within a polygon ensuring even spread

I would like to spatially sample 10 existing points from within a polygon. I have read the answers from "QGIS point sampling tool really slow for polygons?"; "points within a polygon" as well as "How ...
2
votes
2answers
239 views

Masking random pixels in an image

I have a feature collection that is used as input for a model. In order to validate the model, I would like to mask a random percentage of pixels from each image, i.e. splitting the feature collection ...
1
vote
1answer
51 views

Random Point generator - same every iteration? (ArcGIS 10.3.1)

I am generating random points to sample within a stratum. Data Management Tools > Feature Class > Generate Random Points This works just fine, except that I noticed the points I generated for ...
1
vote
0answers
41 views

In ArcMap, how to create random points of a specific amount in each polygon?

I am doing an accuracy assessment of land-use product and need random points as test points. What I'm trying to do is to generate different numbers of random points in different polygons (like 5 for ...
2
votes
3answers
58 views

Select Random Point Based on Proximity of Other Points [closed]

I want to randomly select 50 points from a point layer of 3,000, but no two points can be within 100 miles of each other. Having difficulty moving beyond a theoretical framework into something ...
1
vote
1answer
313 views

Random selection of points in SpatialPointsDataFrame R object with distance constraint

I need to select points randomly (without replacement) from a SpatialPointsDataFrame (input object) in R with a minimum distance of 3,000 meters between them. I want to get random 50% of all points. I ...
1
vote
2answers
118 views

Plotting/Exporting the Spatial Random Effects in BYM model - CARBayes - in R

I am working with visceral leishmaniasis disease cases in a small city with 100 polygons (census tract). I have run a Bayesian Spatial Modeling - Conditional Autoregressive model (CAR) Poisson (BYM ...
1
vote
1answer
137 views

Random selection of polygons in ArcMap? [duplicate]

I have thousands of buildings blocks in ArcGIS. I want to select a half of this blocks randomly. How can I do it?
3
votes
1answer
523 views

Randomly sample from geopandas dataframe in python

I am reading a shapefile as geopandas dataframe and them using pandas subset method to select a region. geodata = gpd.read_file(bayshp) geodata.dtypes geodata.head(10) OBJECTID FIPSSTCO ...
1
vote
1answer
101 views

Randomly selecting single point from within multiple fishnet grid-squares?

Using ArcGIS, I have a large data set of occurrence data many of which are in similar places. I have created a fishnet around the total area and want to select a single random point from within each ...
6
votes
2answers
676 views

Generating random points inside raster boundary using R?

I have a projected raster shown in the image below (left). I want to generate random points inside the raster like the middle image. However, the result I am getting is the same as the image on the ...
0
votes
1answer
52 views

Assigning random points within polygon using ArcGIS Desktop?

I have a vector layer with multiple polygons. I converted the layer to a raster layer in order to convert the raster cells to points (I needed my points to be in rows). Is there a way to combine the ...
1
vote
1answer
373 views

Selecting n-random points within polygon as single feature in Google Earth Engine?

IMPORTS: var geometry = /* color: #98ff00 */ee.Geometry.Polygon( [[[73.85016678395664, 14.304113379426035], [73.85016583974448, 14.048667693939866], [74.0477686190103, 14....
2
votes
1answer
559 views

How to create random points inside polygons in QGIS?

Has anyone created random points within polygons in QGIS 3.0? I created multiple polygons and would like to create multiple random points within each polygon. I am trying to have the number of points ...
1
vote
1answer
299 views

Randomly selecting points within polygons in ArcGIS Desktop? [duplicate]

I have 131 polygons (point buffers) and need to randomly select a point within each buffer. Seems like it should be easy but can't find any solutions online. Running 10.5
0
votes
1answer
111 views

Create patterned polygon fill in ArcMap with random sized dots?

I would like to create a polygon fill with a pattern of dots that are randomly sized (within a range). If this is possible in ArcMap 10.4 desktop, how should I go about this?
2
votes
1answer
240 views

how to generate random points influenced by underlaying variable in R?

I am wondering if in R is it possible to generate a set of random points, within a given study area, with points' intensity being inhomogeneous, i.e. varying according to an underlying variable? The ...
2
votes
1answer
219 views

How can I set QGIS “Random Points” density to less than 0,0001 (circa 100 meters apart)?

I have an input boundary vector layer (700 hectares); on it, I want to generate a set of random points (Vector/Research tools/Random points) with a reciprocal distance average of 233 meters, but the ...
1
vote
1answer
172 views

Generating random number of points in each polygon based on polygon area?

I would like to generate random points in various polygons from the same layer in ArcGIS 10.2 (I tried the "create random points" feature), however I do not want the same number of points in every ...
1
vote
1answer
78 views

Selecting points using random field values in ArcGIS Desktop?

I have point layer, counties border area layer and I want to pick different number of points within different areas (counties) but from existing point layer - e.g. county A -> 10, county B -> 6, etc. ...
1
vote
0answers
27 views

Determining distribution followed by Create Random Points tool of ArcGIS Desktop?

I have created a random sample in ArcGIS using the Create Random Points tool. I know that the tool generates a pseudo-random number generator and in my case is ACM599 with seed number 0(default). ...
1
vote
1answer
509 views

Create random sampling point in each grid's cell

I would like to know how to create an X number of random points in each grid cell. I'm using data from a DEM layer, which contains information about elevation. I used this information to obtain slope ...
1
vote
1answer
348 views

Spatial Join between lines and points does not work in QGIS

Here is the workflow: I've imported lines from a shapefile I've used the Random points along line tool to generate points all across the previously imported lines Then in Vector > Data Management > ...
4
votes
2answers
790 views

Creating n randomly distributed points within given (multi)polygon with PyQGIS?

Is there a way to create n randomly distributed point features within a given polygon using QGIS, PyQGIS and/or PostGIS? My first approach was to implement something like (fantasy language) n = 0 ...
0
votes
1answer
358 views

ArcGIS field calculator Python generate random point names from attribute table

I am new to arcpy and am looking to generate 15 random point values, which are names from an existing attribute column into a new column. I must use Python in the field calculator. My existing column ...
3
votes
1answer
61 views

How to randomly replace a given line vector multiple times within a polygon?

I have this line vector that represents the movement trajectory of a given animal. I would like to randomly replace this vector line within a polygon, multiple times, changing its position and ...
2
votes
1answer
89 views

Getting ArcGIS online web map to update images coming from randomly generated link?

I am creating a web map that shows images from a live traffic feed. The feed, which is coming from the Texas Department of Transportation's website, updates every few minutes. When the updates happen ...
1
vote
1answer
204 views

Setting seed value for random selection in QGIS?

I am using QGIS 2.18.11 and need to select 250 points from the existing points in a map. I know that I can randomly select points through Vector> Research Tools> Random Selection but I don't know how ...
5
votes
2answers
205 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 “...
0
votes
1answer
485 views

Distance based random point selection in r?

To avoid clustering in subsequent analysis I try to randomly select points of a SpatialPointsDataFram with a given distance between the points. The remaining part should be devided for test analysis. ...
0
votes
3answers
441 views

Random sampling of many millions of Points or raster cells with ArcGIS Desktop?

I need to test the mean of two very big point shapes. One point shape has around 34.000.000 points and the other around 1.000.000. I have to do a random sample in ArcGIS 10.3.1. Unfortunately, I ...
4
votes
1answer
6k views

Generating random lat/long coordinates

Dedicated page on use of leaflet in R provides a very useful example on generating random latitude and longitude values for Central Europe: cbind(rnorm(40) * 2 + 13, rnorm(40) + 48) which results in ...
2
votes
2answers
7k views

Return random string from a list of strings? Field Calculator, Python

I am having an issue with producing the correct syntax to place random strings from a list of min into fields with the field calculator. I have tried the following code: import random ran = ['kid'...
5
votes
1answer
143 views

Putting random points only on selected parts of a line in QGIS?

I am trying to create random points along a line, however I only want to do it in the selected area. Is there a way to do this?
4
votes
1answer
687 views

Random selection within subset

I'm working in QGIS 2.18.3. I have point layer which represents GPS points along a transect line. I would like to randomly select 5 points along this transect, i.e. from this layer. Somehow I ...
7
votes
1answer
766 views

How to create multiple points inside polygon in QGIS

How do I generate five random points within each of three polygons with a minimum distance of 100m? I am using QGIS 2.18.4 and 'Random Points Inside Polygons (Fixed)' Sampling Strategy 'Point Count' 5 ...
2
votes
1answer
73 views

How many random points are needed to statistically describe a DEM?

I'm running some statistical comparisons between several DEMs (SRTM, ASTER, ALOS...) through GRASS-GIS and Python. Dealing with millions of cells is not very practical, so I thought I could compare ...
2
votes
1answer
163 views

Random points inside polygon QGIS: what is the unit of minimum distance?

What is the unit of "minimum distance" in the "Random points inside polygon" function in QGIS?
3
votes
1answer
438 views

Randomly generate points using weights from raster

I need to randomly generate ~ 40K points throughout my region of interest, but I need to weight the point selection by a set of probability weights, stored as a raster - such that higher probability ...
1
vote
2answers
236 views

Create multiple random points based on attributes from a different shapefile

I have two shapefiles, one (Polygon A) is a fishnet of 1 square kilometer polygons, and the second (polygon B) is a multiple polygon with specific attributes. One of the attribute is the total number ...
1
vote
1answer
81 views

Create Random Points for multiple features with varying points needed

I am looking for a way to randomly create points features within all National Park forest boundaries. Each boundary has a certain number of points Example below PARK Count ABLI 60 (I would ...
3
votes
1answer
78 views

Fill random data attributes to shapefile using FME?

there are 150 shape layers and I want to fill the random data in attribute table having different types of fields as Character, integer and float, etc. Each layer have 5 to 15 fields. Is this is ...
4
votes
1answer
2k views

Generate random points within a polygon with minimum distances in QGIS 2.14

I have a polygon in QGIS 2.14 and want to generate a specified number of coordinate points within that polygon, with a minimum distance apart. The fTools Random Points tool doesn't give this option, ...