A technique for resampling raster data in which the value of each cell in an output raster is calculated using the value of the nearest cell in an input raster.

learn more… | top users | synonyms

1
vote
0answers
13 views

max sum within a 200mt radius

I have a SpatialPointData Frame in R. Each point represents lat long and InsuredValue amount. I would like to find the maximum sum of insured value in a radius of 200 mt. How I can do in R
4
votes
1answer
63 views

Calculating distance between points of the same layer

I am using QGIS 2.13 and a layer with hundreds of points. I need to calculate the distance to the nearest point... in the same layer. I tried the distance matrix but I get 0m since the "closest" point ...
2
votes
1answer
40 views

Nearest neighbors

I have a point shapefile overlayed over a grid-based polygon shapefile. I would like to select the nearest neighbor grid cells of a given grid cell that contains any of the given point(s). So let's ...
1
vote
1answer
43 views

Finding nearest point using point dataset using QGIS?

I have created Geocode for some area and I couldn't find accurate Geocode's for few address. so I want to find the nearest POI for non accurated locations using accurated geocodes as referece in QGIS. ...
1
vote
1answer
60 views

Optimizing PostGIS k-nearest neighbour function for large amount of polygons?

I created a function for identifying the K nearest neighbours for every municipality, which works fine, but when I use this function for a large amount of municipalities (over 2900) it takes over 2 ...
0
votes
1answer
35 views

Finding neighbors for non adjacent polygons in R [closed]

I'm looking for a method or function in r-project that create a neighborhood matrix from a group of polygons that don't touch each other, like polygons of set of blocks separated by streets in a town. ...
1
vote
1answer
35 views

Nearest Neighbor Analysis for route events

I have events that are on routes. You can think of it as accidents on a highway. I want to do some spatial statistics on it. The road is an M enabled feature class and decision makers want logical ...
1
vote
0answers
12 views

How to apply Edge Correction in ArcGIS Average Nearest Neighbor

I am using ArcGIS 10.3 with the tool Average Nearest Neighbor to describe the data. I want to avoid mistakes caused by Edge Effect. In the Ripleys K Function tool there is an option to control that (...
2
votes
1answer
38 views

Average Nearest Neighbor does not have all the options

I have a point feature class that I used the Average Nearest Neighbor from the ArcGIS software to calculate the pattern. ArcGIS produces output chart that says whether the data is dispersed, random ...
1
vote
1answer
23 views

Average Nearest Neighbor tool extreme restuls for different area?

I'm using the "Average Nearest Neighbor" tool in ArcGIS 10.3 to calculate whether my point feature class is clustered, random or dispersed. One of the parameters is area. I tried putting different ...
0
votes
0answers
33 views

Points within a circle in Python - geoindex

I'm trying to use the geoindex package to perform a nearest neighbor query. For example, I have this two coordinates (in the real case I have a lot more): (40.607255, -73.75083) (40.7261465 -73....
1
vote
0answers
15 views

When would I use K analysis over NNA?

I'm working with the dataset Redwood (62 redwood trees in a 23^2m square). I intend to test whether these are random or not. In what cases would I prefer Nearest Neighbor Analysis and in what cases ...
3
votes
1answer
58 views

Nearest neighbor analysis, write multiple columns to table

I have a table (table1) containing 800 points that I want to join with a table (table2) containing only 10 points. The idea is that the points in table2 are assigned to the points in table 1 based on ...
2
votes
0answers
35 views

Setting vector area

I'm new to QGIS and am using it to spatially analyze the placements of artifacts within an excavated site. I am trying to conduct nearest neighbour analysis; however, I do not know how to set the area ...
3
votes
1answer
245 views

What algorithm does QGIS use to calculate Nearest Neighbor Index?

I'm carrying out nearest neighbor analysis on a set of geological features in QGIS, trying to find out whether they're clustered or not. I've calculated the nearest neighbor distances using the '...
3
votes
0answers
45 views

Choosing interpolation method for monthly atmospheric parameters derived from AQUA/Air satellite?

I want to investigate atmospheric refraction and i am using Aqua/ Airs satellite data. These are atmospheric parameters (1) Air temperature (2) Geopotential height (3) Relative Humidity All these ...
1
vote
1answer
93 views

Nearest Neighbour function

I'm trying to create a function which calculates the nearest neighbors under a certain length in a table s_1 an stores them in an output table. This is what I've got so far: CREATE OR REPLACE ...
0
votes
0answers
32 views

Grid resolution and distance upper bound in nearest neighbor

I wrote a routine to interpolate values of GRIB files (coming with several grid types like regular, reduced and rotated) to a target grid, using scipy KDTree to find indexes and distances. Since ...
1
vote
0answers
37 views

Coordinate System choice for Nearest Neighbor

Here's an interesting scenario I came upon yesterday and I wanted to throw it out as a question to try help me visualize what is happening. I have a single point (a person, say) who is looking for ...
1
vote
1answer
28 views

Append near tables, error message

I have 50 near tables that I want to append, so I can export them at once. However, when I use the append tool an error comes up saying that the near tables are 'read only'. Is there anyway to make ...
1
vote
1answer
73 views

Get all streets within a certain radius with osm2po

I'm trying to get all street segments out of osm2po graph, given a geo point and a certain radius. Right now I just do a breadth first search out of the street that's closest to my point, but is there ...
0
votes
0answers
123 views

how to use spatial index in spatialite query

I posted this question originally nearest neighbor query in SpatiaLite. Thanks to the answer given I was able to get the query working on some test data. However I am having trouble applying a spatial ...
1
vote
1answer
431 views

nearest neighbor query in SpatiaLite

I am trying to find the nearest line to each point in a layer, and I have over 1 million points. I want to be able to associated the closest unique line ID with the point unique IDs. I have tried to ...
2
votes
2answers
451 views

How to create a line between a point and nearest neighbour using python (template included)

I have 2 shapefiles - one is a series of points, the other is a polyline. I want to draw a straight line between each point to the nearest point on the polyline. This question has already been asked ...
1
vote
1answer
95 views

Number of Neighbors Around a Point

I need to get a count of neighbors within 100m for each point in a set of 250 million points. The result would have the id of each point accompanied by the number of neighbors around them. Can this be ...
1
vote
0answers
70 views

Why would Nearest Neighbor Analysis give 0 observed mean distance?

I am working with small datasets (around 100 points or less) with Nearest Neighbor Analysis in QGIS 2.8 (although I also tested in 2.6 and the result is the same). I have the layers referenced with a ...
0
votes
2answers
159 views

Neighbors within distance from every row

I have a research project of 180,000 entries and I need to calculate the number of neighbors (points from the same table) that exist within a 300 meter radius for each point. My method is very slow, ...
9
votes
2answers
5k views

PostGIS nearest point with ST_Distance

I need to obtain on each element on one table the closest point of another table. The first table contains traffic signs and the second one the Entrance Halls of the town. The thing is that I can't ...
0
votes
1answer
227 views

Saving samples in eCognition

In eCognition developer is it possible to save samples that I have selected for nearest neighbor classification with the workspace or project? Every time I close and reopen my project I have to re ...
1
vote
1answer
82 views

KeyError: u'M' in Average Nearest Neighbour test

When I try and run the Average Nearest Neighbour test on my Shapefile I get the error: KeyError: u'M' Failed to Execute (AverageNearestNeighbour) On a "normal" Shapefile this works fine. However I'...
2
votes
1answer
751 views

Distance to nearest point for every point same SpatialPointsDataFrame in R

I have a SpatialPointsDataFrame that I'm working with in R. I want to add a new vector to the dataframe that contains, for every point, the distance to the nearest other point in the ...
3
votes
1answer
174 views

PostGIS Nearest Neighbour outside buffer

I am trying to find the 6 nearest neighbours to a point which are outside a defined buffer. Basically I am comparing points of the same table and working with Mike Gleason's examples. WITH subq AS ...
3
votes
1answer
471 views

QGIS - Calculate distance between a point layer to n nearest polylines

In QGIS I am trying to calculate the distance from a point layer to a polyline layer for the n nearest polylines. I have figured out how to calculate this distance to the centroid of the polylines ...
2
votes
0answers
314 views

N Nearest Neighbours efficiently PostGIS/Python

The data is worldwide about a million points, lat/lons, with an id and an importance value (0.0 to 1.0), and it's limited to being on land. Ideally I need to cluster all 1 million points into 100,000 ...
2
votes
0answers
133 views

Weighting Point Data whilst performing a Near analysis

I am struggling to work out how I can assign weights to my points (airports), So far I have carried out a Near fuction so that all of my raster (output areas ) are assigned a point with its distance ...
1
vote
1answer
137 views

Remove points within x distance

I have these spatial points: long <- c(-1.769717, -1.767766, -1.769170, -1.768462, -1.768389) lat <- c(54.92214, 54.92207, 54.92113, 54.92167, 54.92165) points <- data.frame(long, lat) ...
1
vote
1answer
280 views

Finding closest Intersection between line strings (PostGIS)

I want to find the distance between one point (excavation sites) and a line (rivers) for the cardinal directions. What I thought would be the easiest way is to draw lines between the excavation site ...
3
votes
1answer
2k views

Improve speed of PostGIS “nearest neighbor” query?

One of the features of the Python/Django/PostgreSQL web application I'm building is that a user will be able to see the 100 other users who are nearest to them, sorted by distance. I'm using PostGIS ...
4
votes
2answers
451 views

How to speed up a query for nearest linestring to point data

I have processed a Strahler stream order layer with a lot of river linestrings (type: Multilinestring) and their corresponding strahler number (see information here). Besides I have a point layer. I ...
6
votes
2answers
648 views

Calculating spatial lags per year in R

At the moment I am having some difficulties with calculating a spatial lag in R. I know how to calculate the lag in space-wide format but am unable to do it in long form, i.e. have repeated ...
2
votes
1answer
157 views

Matching two point clouds without loss (nearest neighbor, but more complicated)

I have two point clouds, one with demographic and one with electoral data. Points in both clouds represent the same empirical entity (say, a village, or an urban neighbourhood), but are not in the ...
0
votes
1answer
1k views

How to find nearest city using Geonames features codes

I've got about 300,000 lat/lng coordinates of events that I'm combining into a large map. The coordinates come from all over the world. For each point, I want to find the nearest city of at least XYZ ...
2
votes
1answer
311 views

Spatial Join in CartoDB

I need to update a table of points with the FIP code of the nearest county polygon from a separate table. I've managed to update the column for those points that Intersect a county polygon with this: ...
3
votes
1answer
105 views

Use selected value in postgis function

How can I use the selected value from a SELECT statement in a PostGIS function. e.g. using the geom_way from SELECT geom_way FROM osm_2po_4pgr ORDER BY ST_Distance(ST_GeomFromText('POINT(21.323329 ...
9
votes
1answer
2k views

Find Nearest Line Segments to Point

Background From a known Point, I require to establish the nearest surrounding "visible perimeter" against a table of MultiLineStrings, as shown on the diagram. I've searched this site with a number ...
4
votes
1answer
135 views

How to find closest point without crossing obstacles?

I have a set of points and I'd like to be able to find the nearest point from another layer. The problem is that I need to find the closest point without crossing an obstacle (such as a river, highway,...
4
votes
1answer
130 views

Spatial Analysis - Identifying Regions with Common Boundaries

I have the shape file for DC PSA's as defined in 2012 (see below). I would like to be able to identify in semi-automatic fashion which PSA's are neighbors - that is, which PSA's are nearest neighbors ...
2
votes
1answer
296 views

Efficiently check for equal adjacent values in raster calculator

I have a raster consisting of integer values in each cell. I want to check every adjacent cell in a 3x3 grid to see if any one of the adjacent cells has a value EQUAL to the center cell, and if so, ...
3
votes
1answer
604 views

How to calculate the distance to multiple locations from each cell of my raster?

I'm working with Arcgis 10.1 and Python 2.7.2 How can I calculate the distance to multiple locations from each cell of my raster? I tried euclidean distance but it only provides the distance to ...
1
vote
0answers
470 views

Loop though records in PostGIS (using PL/PYTHON or PGSQL)

I've seen many example of loops, but I can't get that one to work. I work for a regional transit agency and each year, we conduct several surveys. I geocode everything to the house level for internal ...