Having no specific pattern, purpose, or objective

learn more… | top users | synonyms

5
votes
2answers
74 views

Placing random line segments within polygon?

I would like to generate multiple line segments of a fixed length, a random bearing, and both segment endpoints within the polygon. It's not clear from the example, but it's fine if the segments ...
3
votes
0answers
22 views

Sample Design for Kriging

I am taking soil samples on an agricultural plot and will be using the results as input to create a semivariogram for kriging in ArcGIS. This plot features raised planting beds in which the test crop ...
4
votes
1answer
69 views

How to randomly position coordinates within a containing feature in QGIS?

I have geocoded address data, and I am wishing to randomly position it within the census tracts that they are in to obfuscate... So the points are still within the feature but randomly move around so ...
2
votes
0answers
19 views

How to generate random points from classified raster layer?

I need to generate random points using a raster layer, which is classified into 5 classes of TPI (terrain position index). This should be a stratified random sampling design, with an equal amount of ...
0
votes
1answer
22 views

Add a random value of the order of 10^-2 to raster layer?

I was doing some raster analysis for smoothing in ArcGIS, one of my task is adding a random value of the order of 10^-2 to a raster layer. Does anybody know how to do it?
1
vote
2answers
32 views

ArcMap Random Points Minimum Distance Field not able to use units

I would like to create random points with a minimum distance based on an attribute field (polygons with a larger area need random points with more space between them). In theory this can be done. ...
0
votes
1answer
24 views

Adjusting ArcMap Model to Create 1000 Iterations of Random Data Files with Spatial Join?

I have created a model that creates a random point data set for a certain area, conducts a spatial join of these points to polygons, calculates the frequency of a certain field in the joined table, ...
4
votes
1answer
95 views

How to insert random points with weight?

I have a polygon shp divided in 5 regions. I want to fill it with 1000 random points but not to be so random :). I want 300 points to fill one region 100 another...for the moment the one tough ...
1
vote
0answers
61 views

Random forest in ecognition

I'm using eCognition to mapping roof materials from SPOT 6 image. I have used nearest neighbour classification but the result is not so good. I'm trying to apply a random forest classifier if it is ...
3
votes
2answers
64 views

Knowing if there is correlation between roads and observations in ArcMap?

I am using ArcMap 10.3.1. I am trying to find out whether some observations have been made randomly throughout a landscape, or they are biased towards the location of roads and paths. I have a ...
3
votes
1answer
49 views

creating unique sets randomly distributed values for many defined areas…in a raster.

I have a large approximately circular study area comprised of 5000+ polygons which represent forest parcels. For each of these polygons I have up to 4 different species. These species occur in ...
2
votes
2answers
107 views

How to select 200 random points within a 100m radius in Postgis

I'm currently learning to use PostgreSQL and PostGIS. I would like to know how to write the SQL that would allow me to select 200 random points within a radius of 500m from a user defined centre ...
5
votes
2answers
122 views

How to randomly select n points within a radius in QGIS?

I have a dataset of 5000 records which I've plotted over an OSM layer using QGIS and I wish to randomly select 50 from within a radius of 2km from a point of my choosing. It is similar I think to ...
1
vote
2answers
261 views

Random Value Generator

I have a python code where I am trying to assign a unique, random value to every row. I have tried: maxvalue = int(arcpy.GetCount_management(shape).getOutput(0)) + 10000 for row in ...
2
votes
2answers
133 views

Creating random points using QGIS using Random points tool?

I have a polygon layer that has plot layouts of an area. I want to create a random point on each polygon. I tried to use the Random points tool (Vector->Research Tool->Random Points) to create the ...
0
votes
1answer
36 views

Creating random points within polygon from database?

Although i have a solution for it in ArcGIS named hawth's tool but i wanted to know whether it is possible in QGIS or not, additionally i am not having lower version of ArcGIS on which i can do my ...
4
votes
2answers
611 views

Randomly sampling points in R with minimum distance constraint

I'm trying to randomly select a number of points within my data frame (example data below) with a constraint that the minimum distance between the selected point must be greater than a certain ...
0
votes
0answers
19 views

How to access point maker

I have been trying to create random points on ArcGIS, my problem is I want them to be circular and have uniform distance between them, was reading somewhere and found out there is a script called ...
0
votes
0answers
18 views

How to randomly apply a feature from the attributes table (an area) to a bigger area in ArcGIS 10?

I am rather a beginner at ArcGIS and I have absolutely no idea how to do this. I have to design an agricultural area, which I have the whole of it, but I am not sure which farm plant which crop and so ...
1
vote
0answers
176 views

Creating multipart polygons with ArcPy? Dissolve Failure?

I need the functionality of the editor > merge command for use in a python script tool. I realize this function is not directly accessible through ArcPy, but I am hoping someone can help with a work ...
1
vote
0answers
63 views

Creating random points using QGIS?

Has anyone else had any issues using the random points tool in QGIS? When I try using it I'm selecting the option to use a value input field. The tool starts but then freezes once it gets to the 10% ...
2
votes
1answer
108 views

What is CID field created by Create Random points?

In ArcGIS the result of Create Random Points tool when using a feature class to constrain the extents has an attribute called CID. What do the values in this field represent?
3
votes
1answer
160 views

Is the QGIS “Random selection within subset” selecting spatially random or randomly from the attribute table?

I am trying to figure out exactly what is being randomly selected. I have a layer of road segments and I would like it to select a road segment at random within a neighborhood (the subset). This would ...
1
vote
2answers
188 views

How to generate random points from FIDs using ArcPy or ArcGIS Field Calculator?

I'm trying to generate a shapefile of random points using FID from the attribute table. My attribute table has 800,000 features and I only need a sample of 240. Is there a way to do it in arcpy or in ...
2
votes
1answer
254 views

Using Python to select random location from shapefile?

I have multiple shapefiles with bars names and location attributes and I want to create a script which asks the user for the area or shapefile name where they want to go and then prints a random ...
2
votes
1answer
544 views

Create random points in ArcGIS on a polyline in a polygon

I am trying to create 100 random points, 1 within 500m of 100 points I already have. I have created a buffer and can easily create 1 random point in each, but now I want those points to lie on a ...
4
votes
2answers
242 views

How to randomly move points?

I have a feature class with a large amount of points. My purpose is to randomly move these points to see what happens as a result. Are there specific tools or Python programming methods to accomplish ...
1
vote
1answer
97 views

creating a random gdal raster with random predefined values

So far I have developed the below code but for some reason it only works for say one class of landuse instead of two. Would you please tell me where I have gone wrong? Thanks so much import os, ...
0
votes
1answer
220 views

creating a random raster image using gdal

I want to create a random image containing say three classes with predefind percentages of each of the classes using gdal in python.Any sample code would be very appreciated.
1
vote
0answers
34 views

Random points by percent coverage

Yes, I know the math behind this is simple, but I'm looking for a way to automate the process. In ArcGIS 10.2.2. is it possible with the Create Random Points data management tool to generate a set of ...
2
votes
2answers
275 views

Creating Random Points that respect minimal distance across features / strata using ArcGIS for Desktop?

I have a shapefile with multiple polygons in which I want to distribute random points. Each polygon should contain exactly one point. The minimal distance between the random points should be 200m. ...
1
vote
1answer
113 views

Python Code for generating random points not working!

I am trying to create some code to generate 10 random points within a vector layer's districts: layer=iface.activeLayer() import ogr import sys import random from shapely import wkb, geometry ...
1
vote
1answer
85 views

How to create landscape resistance map using path level spatial randomisation in QGIS?

I need to create a landscape resistance map based on path level spatial randomisation, as I have read in some research papers. Are there tools for this? I need to randomly shift and rotate the the ...
0
votes
1answer
77 views

selecting a random sample of parcels

I am faced with the following issue. I got a raster map showing the position and extent of land parcels within a 35 sq Km area. The number of parcels is about 200. In anticipation of the following ...
0
votes
0answers
27 views

How to use random number generator to select by attributes in ArcMap? [duplicate]

I am not familiar in using Python and random number generator. I was wondering how to select 250 rows/values from a column named "JUROL". Every value in that column is different and the column ...
1
vote
0answers
97 views

Generate random points for IDs with similar coordinates with ArcMap

I have a dataset which consists of IDs with addresses and coordinates (long/lat). Some of the IDs have similar coordinates. How do I generate random points for the IDs that have those similar ...
2
votes
1answer
54 views

Randomly distributed cases according to census data

I'd like to randomly place a point within a geographic boundary with the caveat that I would like to use census data so that points are randomly placed according to population density (i.e. more ...
1
vote
1answer
225 views

arcpy geometry difference method fails randomly, not reproducible

Has anyone used the arcpy geometry difference operator and seen unexplained errors like what I describe below? This is a weird one. I have a script that calculates wave fetch distance in the ocean ...
2
votes
1answer
85 views

Using search and update cursors for random number generation

I am having some trouble getting a searchcursor to return a value for each record. The purpose of my code is to scan through a list of records in a field (FieldA) and based on those values populate a ...
3
votes
2answers
361 views

Step by step contour creation algorithm

I do seismic processing, and recently have been moving into doing contours. I have a question on the exact way this is done. I have watered down my problem so that I can understand from 'first ...
3
votes
2answers
874 views

Using arcgis.rand() with variables from code block of Calculate Value tool?

Within a larger ArcGIS ModelBuilder model I am trying to populate a field in an attribute table with a random number, using Calculate Value. The overall distribution of random numbers needs to follow ...
3
votes
1answer
392 views

How to create randomly points within polygons for each row of a dataframe matching a Polygon ID with R

My question is similar to this post, but because there are no "perfect" answer and above all no reproducible example I open this question. I have a "SpatialPolygonsDataFrame" and a data frame. Both ...
3
votes
1answer
525 views

Is there any random data generator supporting geometry in PostGIS?

I found few random data generators for PostgreSQL (such as this one), but none supporting PostGIS geometry type, other than point. Making points would be quite easy, but for lines with multiple nodes ...
0
votes
0answers
24 views

How do I randomly alter a raster with som correlation

I need to randomly alter an existing raster. The original raster is essentially a topography map that measures its values around a normal distribution ranging between 0.5 and 1.5 The new raster ...
7
votes
3answers
1k views

R - How to sampleRandom() from large raster without NA values

I have a number of vary large rasters which need to be randomly sampled with the return value being a matrix of x, y, and value. The raster package sampleRandom(raster,n, na.rm=TRUE, xy=TRUE) will do ...
10
votes
5answers
7k views

How to randomly subset X% of selected points?

What methods are available in ArcGIS 10.2 to randomly subset a selection of points. For example, in the attached screenshot I am interested in keeping 20% of the selected points and deleting the ...
2
votes
1answer
525 views

How do I select random points within each land-cover class? [closed]

I have a MODIS file and I want to Select random points within each land cover class Extract values of rasters to the sample points. Export attribute table Could you please tell me what steps I ...
2
votes
4answers
1k views

How to create random point in according polygon for each dataset entry in a list (with R)

I have an area divided into polygons, and a dataset of observations which has a common field with the polygon layer. I now would like to generate a random point for each dataset entry within the ...
2
votes
1answer
376 views

Stratified Random Sampling by ID in QGIS?

I've been playing around with the Random Points tool in QGIS to realize stratified random sampling, but I'm running into a problem where I want my strata to be based on a polygon ID, not each ...
5
votes
2answers
913 views

How to perform Intersection using ModelBuilder iteration?

I would like to take the intersection of two areas (one randomly generated), and do this n times. I can do it and get one result, but I can't save all the intersection areas to a file at the end. ...