Questions tagged [spatial-join]

To join the attributes from one spatial data layer to another using their common location

Filter by
Sorted by
Tagged with
1
vote
0answers
28 views

AttributeError: 'NoneType' object has no attribute 'bounds'

I have the following geodataframes, corresponding to a regular grid: id grid_id geometry 0 48 0 (POLYGON ((2.052457758079306 41.42493869117656... 1 49 1 ...
1
vote
0answers
27 views

Accounting for intersecting features with spatial join?

I am looking to analyse the effects of the designation Marine Conservation Zones (MCZs) on fishing effort. I have a shapefile for fishing effort which is gridded, each pixel has information about ...
1
vote
1answer
55 views

Why does spatial join on geodataframes return empty result?

I have two geodataframes that I want to perform a spatial join on; one is points, one is polygons. They are both dtype: int64. They both have .crs = {'init': 'epsg:4326'}. I have verified both of them ...
0
votes
0answers
14 views

Error: trying to get slot “polygons” from an object (class “data.frame”) that is not an S4 object

I am trying to join .csv file data to shape file data using @data slot. I am getting error "trying to get slot "polygons" from an object (class "data.frame") that is not an S4 object " Here is my ...
1
vote
0answers
36 views

Joining attributes by location/intersect works for all but one polygon in QGIS?

I used the Join attributes by location and Intersect tools in QGIS 3.4 for my points layer to add a column with name of the intersected area into the attribute table of points. It works perfectly for ...
0
votes
0answers
22 views

Fieldmapping for mean and max using arcpy

I'm trying to spatial join two features. One polygon layer and one point layer. The point layer contains one field of values that I want the Mean and Min of. Im trying to use the fieldmaper object to ...
1
vote
1answer
11 views

ArcMap: Combining County Polygons for 3 separate states into one layer with attributes

I have 3 separate layers with the counties for 3 separate states: WA, OR, & ID. I want to combine them into one layer "Counties" so they all share an attribute table with the same fields. I am ...
1
vote
0answers
33 views

What could cause a Spatial Join (Completely Within) to return false positives?

Im using ArcMap 10.3 I have a large feature class of Archaeological surveys that I need to Spatial Join to a target feature class of buffered work locations to find locations that are Completely ...
1
vote
0answers
18 views

Calculating areas and joining attributes between overlapping features

I am working with QGIS 3.4.8 and Python 3.6.8 on OSX El Capitan 10.11.6. I have two shapefilea, one which is a grid of cells (each cell a feature) and the other one which is urban settlements as ...
1
vote
1answer
28 views

Transfering attributes from nearest feature using ArcGIS Desktop?

I have two layers, containing polygons (lots) and points (meters). I want to identify the closest polygon to the point, and then copy specific attributes from the polygon to the points. Is this ...
0
votes
0answers
20 views

ArcMap - Spatial Join changed the values

I just run spatial join on two big tables I have. for some reason, one of the columns has changed its values- for example, on the original input layer I had this value. : 72145367277699000 the ...
1
vote
0answers
35 views

Performing Spatial join with polygons using st_join in R?

I want to join 2 partly overlapping polygons in R the same way I'm doing it in ArcGIS Desktop . In ArcGIS Desktop I am doing it like this: Analysis toolbox - Overlay toolset - Spatial Join. The rows ...
1
vote
1answer
82 views

Performing sjoin on polygons and lines without intersection using GeoPandas?

I want to join a GeoDataFrame with Polygons (circular, were created from Points with buffer) with a GeoDataFrame that has Linestrings. These polygons and lines do not necessarily intersect nor ...
1
vote
3answers
42 views

Use a .shp file to map multiple entries in a .csv in QGIS

I have a .csv file with several entries with data for events which happened in places, and a corresponding .shp file which shows the locations where the events took place. How would I go about mapping ...
1
vote
2answers
45 views

PostGIS line in polygon performance (ST_Intersects)

I am running an analysis to find lines that is covered by a polygon. I have to create the polygon from a road network (hence the buffer and union) because the the lines are not exactly equal. The ...
0
votes
0answers
13 views

Map District Data through Lat Long [duplicate]

Lat Long coordinates are available in the map through QGIS software. I have added shapefiles of district and subdistrict. How to join these files so that i get district and subdistrict against lat ...
3
votes
3answers
94 views

Joining Attributes by Location to nearest point?

I have a point feature and I want to perform a spatial join with the nearest point of another point feature (maybe even within a certain buffer distance). I know QGIS has a nice spatial join tool "...
0
votes
1answer
54 views

Subdivide raster file by polygon in R

I am trying to get a raster file of nightlights data for Brazil and subdivide/regroup it into several rasters for each state, in a list or data.frame in R I managed to download the nightlights file, ...
3
votes
1answer
48 views

Missing features after joining by attribute, but geometry is valid

I've tried joining two point layers by location on QGIS 2.18.27 (Mac iOS 10.13.5 High Sierra), but some points in the new vector don't end up appearing. One point layer is an interpolated point layer ...
1
vote
0answers
31 views

Transferring Z values from point layer to line layer using ArcMap? [duplicate]

I have two shapefiles, point and polyline, and I am trying to transfer Z values from point layer to polyline layer to calculate the pipe slope (by using manhole's depth and z value). In the ...
1
vote
2answers
130 views

Combining st_join with st_nn to include all points within, as well as within a given distance of a polygon

This is a follow up to my earlier question (Spatial join in R - Adding points to polygons with multiple corresponding points). I have successfully joined a spatial points file to a polygon file in R ...
1
vote
1answer
29 views

What is the search mechanism in “join attributes by location”?

While running join attributes by location, we can either choose one to many or one to one mapping. In One-to-one, it assigns the first located features value. What is meant by first located feature? ...
2
votes
1answer
48 views

Efficiently relate two large shapefiles for use in Python script [closed]

I have a large National Land Use Code polygon shapefile for the San Diego area as well as a large point shapefile representing the center of each pixel from the Land Use Code raster for the same area. ...
1
vote
0answers
18 views

Spatial joining (nearest) between features that fulfill query? [closed]

I have two point feature classes, one with locations wildfires were discovered, and one where lightning strikes were detected. Both feature classes contain temporal information. For each fire, I want ...
0
votes
1answer
62 views

Join by location (summary) returns null

I am trying to count points within polygons (311 calls by Census tract). Both shapefiles are EPSG 4326, and I've done define projection just to double-check. Every time I run Join attributes by ...
1
vote
0answers
43 views

Spatial join for closest features and using a sum merge rule in QGIS

I am trying to perform a spatial join based on nearest neighbor ("CLOSEST") spatial relationship in QGIS, and by summing the results of the join where multiple matches occur. In ArcMap there is a way ...
0
votes
0answers
22 views

Spatial Join on single feature class returning zeros

I am attempting a spatial join in ArcMap using the spatial join tool to count identical overlapping polygons in the same feature class. I have run this analysis a number of times without problem. ...
1
vote
1answer
37 views

Exporting query to identify the exact points that fall into a polygon using ArcGIS

I am using ArcGIS 10.6.1. I have a shapefile consisting of points (facilities names and adresses). I also a shapefile consisting of polygons made up of enumeration areas as well as the Local ...
1
vote
0answers
22 views

Use geometry to join Spatial Dataframe

I have two Spatial Dataframe, the first one is the Paris Polling Stations from 2012, the other is the Polling Stations from 2017. They almost have the same geography, it deffers for 20 polygons (2017 ...
0
votes
1answer
24 views

Using Spatial Join to join geologic features to polylines

I want to spatially join polygons (geologic features, major aquifers) to where the NHD polylines (rivers/streams) fall. I want to be able to click on a polyline and see what geologic feature or major ...
0
votes
0answers
29 views

Build measure of state change

I want to be able to build a measure in ArcGIS (ArcMap). (1) I have some shapefiles of sovereign states by centuries. These are polygons with the name of the state as ID. (2) Moreover, I have a ...
1
vote
1answer
74 views

Joining attributes by location error when finding polygons within district boundaries?

I am using QGIS 3.5. I have a large shapefile (760 MB) with 1800 polygons representing different bird species ranges (download link) I have a second shapefile with polygons of district boundaries (...
1
vote
1answer
105 views

Spatial join between two FeatureCollections in Earth Engine

Given two FeatureCollections in Earth Engine, one being a regular grid, the other a number of country shapefiles, I would like to produce a new FeatureCollection with the geometry of the regular grid, ...
0
votes
1answer
136 views

Convert CRS for spatial join for GeoDataFrame

I have the following 2 GeoDataFrame variables in GeoPandas. # shp.csr {'init': 'epsg:2953'} # line.csr {'proj': 'sterea', 'lat_0': 46.5, 'lon_0': -66.5, 'k': 0.999912, 'x_0': 2500000, 'y_0': ...
0
votes
1answer
135 views

Push attributes to GeoJSON in Leaflet

I am trying to add attributes to a layer. I have a select function that finds all points within 10 miles of a feature. If the point is within the radius distance I add it to an array and make another "...
0
votes
0answers
27 views

ArcGIS Pro using spatial join and query to find distance

I'm given a set of points (locations) and lines (roads) and I need to use spatial join and then a query afterwards to find how many points are 5 meters from the roads and then finding the exact ...
1
vote
0answers
34 views

Spatial join error 000426

I ran the tool Spatial Join(Analysis), target and joined features are line feature class, the join operation is Join one to one, I set a merge rule(sum) in one of my fields(the type of the field is ...
1
vote
2answers
105 views

Combining data from overlapping polygons and assign [duplicate]

I have two multipolygons layers: Layer A: Census blocks with data from 2010 (last census). Layer B: A study about poor neighborhoods with data from 2016 (POOR NH). Both layers have a "population" ...
2
votes
2answers
88 views

Aggregating census level data to county level in QGIS?

I'm trying to take census tract linked data (in the form of a CSV I joined to a census tract level map of Washington State) and create a county-level map with it. My census data also has the county ...
1
vote
0answers
48 views

Most effective way to find spatial relationships in python

I am trying to find the spatial relationship between two polygon geoDFs as follows: Find geoDF1.geom within geoDF2.geom else (not within) Find geoDF1.geom with largest intersection fromgeoDF2.geom ...
2
votes
0answers
48 views

Spatial join by argument closest, but based on majority of vertices

I'm often working with different polyline datasets which represent street networks. One of the most common tasks I have is to join information from one layer to another. Often there are no mutual ...
0
votes
0answers
46 views

How to merge / join line segments by attribute and split at intersection

I have a complex network of line features with a lot of attributes (and unique IDs). Many features have the exact same values (exept the ID). I need to join all features with the same attribute which ...
1
vote
1answer
31 views

More creative or efficient solution for a proximity table (1:m) to all points within X distance, keeping obs. where no points fall within X distance?

I have a proximity question. I am open to Arc or Python solutions. I am mainly asking because I think I am lacking a little creativity in approaching the situation. The Situation I have two point ...
1
vote
0answers
86 views

Spatial Join of two Feature Classes with a condition using ArcMap

I have two Point Feature Classes: the first contains manholes incl. the invert elevation the second file contains road gullies and their invert elevation. Both files have roughly 10,000 to 20,000 ...
1
vote
1answer
64 views

PostgreSQL PostGIS: Spatial join but keep all features that don't intersect

Spatial joining a point table to a polygon table, creating a new output table. So far I can only get the output table to contain features that satisfy the spatial join. However, I want the output to ...
1
vote
0answers
20 views

QGIS 2.12 How can I assign the attributes of the polygons of the layer A containing the geometry of layer B?

In other words, I have two shapefiles: Layer A: not-intersected Areas (1 attribute: ID); Layer B: Buildings (Several attributes). I want to identified by the related ID attribute all the buildings ...
1
vote
1answer
63 views

PostgreSQL: Spatial join points to polygon, listing point attributes where multiple are joined

I have a large polygon table and a large point table in a postgis enabled PostgreSQL database. Each point has a unique reference number (double type). I want to spatial join the points to the polygons,...
2
votes
1answer
41 views

return only one value per point from ST_Value() - currently returning 2 values for some points

I'm testing a point sample query with a subset of 5 points on a single band elevation raster. Using my usual approach (which I've previously not noticed this behavior), I get six records returned: ...
1
vote
0answers
22 views

How to index spatial objects? [closed]

“R-tree is useful to store spatial objects such as restaurant locations”. I see this sentence a lot of time in internet but I haven't found the good explanation on this. Can anybody please elaborate ...
3
votes
1answer
174 views

How to test the geometry type from a list of layers and then join it with PyQGIS 3

Summarizing my problem, I'm a beginner and I'm developing a plugin that will be able to do several spatial joins. For this, it will have to separate the spatial from the non-spatial layers and do the ...