Questions tagged [merge]

To combine two or more parts into a larger whole.

Filter by
Sorted by
Tagged with
112 votes
5 answers
278k views

Merging multiple vector layers to one layer using QGIS

I've imported several shapefiles which where exported from a Mapinfo .tab. Several .tab-files are imported resulting in 20+ layers. Afterwards I want to export it to GeoJSON; but I'm reluctant to ...
stUrb's user avatar
  • 2,269
27 votes
4 answers
87k views

Merging/Dissolving polygons by Common Attribute Field in QGIS?

I have joined corresponding Local Enterprise Partnerships table data into a polygon shapefile containing UK Local Authorities. How do I Dissolve or Merge the the Local Authorities polygons by ...
Jeremy's user avatar
  • 451
31 votes
2 answers
66k views

Joining several raster files using QGIS?

I'm new to QGIS. How can I combine multiple raster layers into one layer? The raster images are of different areas with very little overlap. The goal is to bring numerous town plats into one ...
Neil Morgan's user avatar
29 votes
5 answers
94k views

Merge intersecting polygons into one which are part of the same feature

I'm not a GIS professional so I hope I use the correct wording, at least I hope you understand my question. Let's say there are five polygons in the feature A. In the shapefile there are more ...
user19746's user avatar
  • 293
25 votes
3 answers
47k views

Merging multiple SpatialPolygonDataFrames into 1 SPDF in R?

I have created 2 polygons in QGIS. Using them in R, polygons become automatically SpatialPolygonsDataFrame (SPDF). I would like to merge them into single SPDF (as is super easy in ArcGis using Tool ...
maycca's user avatar
  • 3,386
16 votes
1 answer
12k views

Merging Multiple Tables into New Table in PostGIS

I am looking to merge a number of individual tables into a new table in PostGIS. This is an easy task when working with Shapefile data, but I am unsure how to do this in PostGIS. I think I use Append, ...
Ryan Garnett's user avatar
  • 9,461
10 votes
3 answers
15k views

Merge lines with the same 'name' attribute on QGIS?

I have a shapefile with a few thousand lines, each is a street segment. I'd like to merge all features with the same 'streetName' attribute into a single attribute. I only really care about the name ...
Tercero A's user avatar
  • 101
7 votes
2 answers
8k views

Merge shapefiles using ogr2ogr and retrieve the attributes of both

I have two shapefiles that I want merge (overlay/intersect) having in the destination the attributes of the two sources file. ogr2ogr file_merged.shp tl_2010_us_uac10_conus_albersUA.shp ogr2ogr -...
Giuseppe's user avatar
12 votes
3 answers
19k views

Measuring performance difference between Merge and Append in ArcGIS Desktop?

Often I find myself in a situation where I don't care whether or not my tool produces a new feature class, but I do care how long it takes to combine all of my large datasets. Does it take longer to ...
MTerry's user avatar
  • 211
11 votes
3 answers
4k views

How to add vertices to existing linestrings?

If I have Linestring(1 2, 1 5, 1 9) and a Point(1 3) Is there any function that can merge linestring and point preserving the order so output would be: Linestring(1 2, 1 3, 1 5, 1 9)
BorisT's user avatar
  • 113
8 votes
4 answers
5k views

Using open source software to merge large shapefiles?

Some background: I have 2 polygon shape files with approximately 500,000 records each. The two files are identical in terms of field structure. Using ArcGIS 10.0 I can'nt merge these two files using ...
anh.hv's user avatar
  • 273
8 votes
1 answer
5k views

Merging neighbouring polygons in QGIS

I have a polygon layer that consists of many different polygons; some of them are neighbouring and some of them are not. How could I merge the neighbouring polygons?
r1m4s's user avatar
  • 89
6 votes
3 answers
7k views

Merge rasters with different origins in R

I have a list of rasters with the same projection and resolution but different origins and I need to merge them in a single raster file. Here's my code l <- list.files('path', full.names=TRUE) ...
Quechua's user avatar
  • 337
5 votes
3 answers
35k views

Merging tif images into a single GeoTiff with QGIS

For this example, I have 3 tif images that are tiles. They fit together to form a single image. I load the 3 images into QGIS and it merges them directly and I see my completed image. The problem ...
Nick's user avatar
  • 51
3 votes
1 answer
4k views

How to "Merge Selected Features" with python?

I have been looking for the answer to this question for some time now, but can't seem to find it! My problem is straight forward: I have one layer It contains lots of features (only polygons), say ...
Simon Ternsjo's user avatar
3 votes
1 answer
4k views

Merge shapefiles in folders and subfolders with arcpy

I try to merge 20 shapefiles in order to get one shapefile that include all the features. All shapefiles are called "migrashim", and they spread in big folder that divided to a lot of sub folders. ...
newGIS's user avatar
  • 4,042
2 votes
1 answer
3k views

Merging more than 9 input files with lasmerge?

Is there a possibility to feed more than 9 LAS files to lasmerge tool? The user interface only allows 9 LAS files from LAStools toolboxes in QGIS or ArcGIS, but at liblas.org it’s described as there ...
Thomas Becker's user avatar
1 vote
2 answers
637 views

Merging polygons that share one vertex (node neighbors) using ArcGIS Desktop?

I have a set of very large shapefiles and would like to merge polygons within these that share one vertex. Currently they are all separate like so: What tool can I use to merge all the polygons ...
tom91's user avatar
  • 115
21 votes
2 answers
11k views

Fixing orphaned holes in R

I'm trying to perform a union on a common field after merging two adjacent shapefiles. The shapefiles end up with at least one thin sliver of space between them. When I attempt a union I get the ...
Luke Macaulay's user avatar
18 votes
2 answers
15k views

ogr2ogr merge multiple shapefiles: What is the purpose of -nln tag?

The basic script in order to iterate recursively over sub-folders and merge all shapefiles into single one is: #!/bin/bash consolidated_file="./consolidated.shp" for i in $(find . -name '*.shp'); do ...
michael's user avatar
  • 1,799
8 votes
3 answers
2k views

QGIS - Merge raster layers and take maximum value of both

I am trying to merge two partially overlapping rasters into a single raster. Where they overlap, I would like to take the maximum value from the 2 rasters. The rasters represent radio coverage from ...
user105727's user avatar
6 votes
1 answer
8k views

Merging shapefiles with attributes using PyQGIS?

I have some shapefiles. They are all the same kind of shape and all have the same attributes. If I wanted to merge them manually the "Vector/Data management tools/merge shapefiles to one" works fine. ...
Mr Purple's user avatar
  • 1,441
6 votes
1 answer
1k views

Merging Features

I want to merge features of a vector layer into one single feature using the python console. Somewhere I found the following solution. However it does not seem to work for me. When I execute the ...
Thomas's user avatar
  • 213
5 votes
1 answer
3k views

Dissolve (merge) polygons QGIS based on attribute values only when are adjacent

I am a fairly new user of QGIS having a question regarding dissolve functionality. I am working with the NUTS-2 shapefiles provided by EU, which I have imported in QGIS. I have created a new layer ...
Cord's user avatar
  • 71
5 votes
1 answer
5k views

Merging lines (with and with no overlaps) in QGIS

I have two layers ("Layer_1" and "Layer_2") of lines where they sometimes overlap and follow each other for a bit and then takes another route (see the image below). "Layer_1": Red line "Layer_2": ...
oskarlin's user avatar
  • 1,941
5 votes
5 answers
599 views

Merging polygons only if three or more are on top of each other in QGIS

I am working on a layer with many polygons (circles). I would like to create a polygon containing only the areas where 3 or more circles overlap (in my example there would be only 1 area in the east). ...
Split24's user avatar
  • 51
5 votes
3 answers
2k views

Merge Vector Layers fails in QGIS

I'm trying to merge two vector layer as part of a graphic model but get an error: OBJECTID field in layer layer1 has different data type than in other layers (Integer64 instead of Real) Execution ...
BERA's user avatar
  • 68.9k
5 votes
1 answer
11k views

Merging multiple LiDAR (.las) files using ArcMap

I downloaded about 9 LiDAR scenes from USGS and I want to use ArcMap to merge them so that I can carry out tasks on them together as opposed to one by one.
John_gis's user avatar
4 votes
1 answer
1k views

Merge adjacent polygons & concatenate attribute values (QGIS)

In QGIS 3.16. I have a layer of 1000+ polygons, many of which are adjacent (touching, overlapping, or one completely inside another). If all of the adjacent polygons are merged, I will end up with ...
pete's user avatar
  • 1,061
4 votes
3 answers
22k views

Merging attribute and geometric features in QGIS?

I have polygons shapefile in which some of the polygons have same attributes as seen below:- In QGIS, how do I merge the polygons having the same attributes into one polygon? In other words, am ...
userPyGeo's user avatar
  • 255
4 votes
1 answer
4k views

How to merge many shapefiles in different folders?

Directory structure is basically as such: county\City\prep\POI\Completed\C1, ...C2, ...etc\ I'm trying to write a script to go through the *\Completed*\POIS.shp and merge them all together, at a ...
John's user avatar
  • 63
4 votes
1 answer
2k views

Merge selected feature pyqgis

I want to merge the selected features. I found this post but I can not do it. Can anybody help me? layer = iface.activeLayer() obj1 = 24 obj2= 25 expr = QgsExpression( " \"ID_PARCEL\" = '{}' OR \"...
Jayme Muzzi's user avatar
3 votes
1 answer
8k views

How to merge output shapefiles in model builder

I have a layer with several polygons and a road map. I need to take each polygon and use it to clip the road map, dissolve all of the road records into one, and then merge the polygons into one ...
user26142's user avatar
3 votes
1 answer
890 views

Getting maximum values of attribute of multiple Shapefiles merged into new shapefile in QGIS?

I have thousands of points in multiple shapefiles. I want to get the maximum value of an attribute of each shapefile. Then I want to merge all the maximum values to a new layer. Is there a way to ...
KATRIN's user avatar
  • 73
3 votes
1 answer
6k views

Using multiple tiff files as a data store in Geoserver

I have hundreds of tifs I want to use as a data store on my Geoserver. So many that QGIS won't merge them for me. I heard some about .vrt but I never found a clear source of information on the ...
ZackOfAllTrades's user avatar
3 votes
0 answers
200 views

Merging attributes of selected features tool not working in QGIS 3 [closed]

I want to combine some columns between 2 data attribute tables. The question, which I asked a while ago: Copying features from one attribute table to another using QGIS leads to quote long way. ...
Geographos's user avatar
  • 4,005
2 votes
1 answer
4k views

Which value does raster merge chose in overlapping area?

When using the 'Merge' tool in QGIS, which raster value does it choose when there are overlaps between the raster?
Alex's user avatar
  • 53
2 votes
2 answers
609 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" ...
facu pedemonte's user avatar
2 votes
1 answer
1k views

How to merge single polygons to multi part polygons by maximum distances?

I have a polygon layer with a land-use class and ID for every polygon. How can I merge polygons (into multi part polygon) which do not adjoin, but are not further than x meters apart from each other. ...
MarioT's user avatar
  • 23
1 vote
2 answers
1k views

Merging LiDAR tiles without losing data in QGIS?

I'm trying to merge some LiDAR tiles together but when I do, the clarity of the image drops, so I think that means I am losing some data. How do I merge the tiles and keep all of the data and the ...
Nuthatch's user avatar
1 vote
1 answer
146 views

Overlaying binary raster over a colourized raster layer so they are one raster, without colour being affected

I'm looking to merge a raster layer of bounding boxes over top a standard RGB raster layer so that the boxes fit over certain features in the background raster, but they are now the same layer. The ...
hmnoidk's user avatar
  • 689
0 votes
1 answer
695 views

Connect points from two SpatialPointsDataFrames in R, considering the closest distance

I have two SpatialPointsDataFrames. In SpatialPointsDataFrame one (dat1) I have three points (A, B and C). In SpatialPointsDataFrame two (dat2), I have eight points with temperature measurements. I ...
JerryTheForester's user avatar
0 votes
1 answer
462 views

Merging adjacent polygons to one which sum of attribute values of adjacent ones is between 1000 and 2000?

I have a huge number of polygons that contain attribute field that represent number of offices inside each polygon. Now I want to merge all adjacent polygons which count (sum) of offices values is ...
user104851's user avatar
0 votes
1 answer
4k views

Merge two points of two different polygons to get one polygon at the end

I would like to join points from two different features. I already searched for plugins, but so far but didn't find one working plugin or solution for my task. So here is a picture of 2 polygons/...
kwoxer's user avatar
  • 957
12 votes
3 answers
39k views

Merging adjacent polygons using ArcGIS Desktop?

I want to use ArcGIS Desktop to merge adjacent polygons with each other. There is no common field between the polygons and hence the Dissolve tool is not the ideal solution. The polygons that I want ...
DotPi's user avatar
  • 779
10 votes
1 answer
45k views

arcpy.env.overwriteOutput = True not working for Merge of ArcMap

AOI_test = "AOI_test.shp" arcpy.env.overwriteOutput = True for i in loc_list: AOI = "AOI_" + i + ".shp" arcpy.Select_analysis("locality", AOI, " \&...
TheLastGIS's user avatar
10 votes
1 answer
2k views

PostGIS: how to merge contiguous features sharing same attributes values?

I have a big PostGIS table storing line features. I would like to merge features that are both connected to each other and have given attribute values identical. Here is below an example of what I'd ...
wiltomap's user avatar
  • 2,690
10 votes
2 answers
2k views

Merging multiple temporal inputs in QGIS Graphical Modeler

I want to do a simple merge of some algorithm outputs in QGIS graphical modeler (not for an iterative process, like my previous question "Collect results of iterative processes in QGIS graphical ...
Honeybear's user avatar
  • 2,334
10 votes
3 answers
16k views

Merge geojson polygons with WGS84 coordinate

I have a Geojson file with some adjacent polygons and I want to merge them into one. I know it's a recurrent question but I can't find information for polygons with latitude and longitude coordinates ...
henri_1310's user avatar
9 votes
2 answers
3k views

Loading multiple shapefiles from +1000 subfolders

I have a WATERBODY shapefile for each region within each province in Canada. The region subfolders also contain many other features that I do not need. I am trying to upload and merge all the ...
J Brooks's user avatar