The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [merge]

To combine two or more parts into a larger whole.

Filter by
Sorted by
Tagged with
82
votes
3answers
186k 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 ...
26
votes
2answers
54k 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 ...
22
votes
3answers
58k 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 ...
22
votes
4answers
3k views

Merge any and all adjacent polygons

I would like to do adjacency tests on a parcel (polygons) layer and merge them if they fit certain criteria (could be size). Per the picture below, I would like to merge polygons 1,2,3 and 4, but not ...
21
votes
3answers
26k 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 ...
18
votes
4answers
63k 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 ...
18
votes
2answers
7k 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 ...
16
votes
2answers
819 views

completing satellite imagery tiles when data coverage is less than 100%

I want to join several images (>=2) into one "best" image. Best is defined on low cloud cover and high data coverage. An example using free Sentinel satelite data follows. See http://sentinel-s2-...
12
votes
1answer
9k views

Merge Multiple Tables into a 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. Any help would be ...
12
votes
3answers
14k 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 ...
11
votes
2answers
8k 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 ...
11
votes
3answers
30k 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 ...
11
votes
1answer
898 views

Merge adjacent polygons and return all (adjacent and not adjacent) as Multipolygon?

I have a postgres database with administrative boundaries and their geometry. Each of those boundaries have an ident number. What I want to achieve: First I want to select all rows which are ...
10
votes
2answers
3k 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)
9
votes
2answers
8k 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 ...
9
votes
2answers
806 views

QGIS 2.16 Merge lacks folder option

I've installed QGIS 2.16 and have noticed that the Merge (Vector Menu>Data Management) doesn't appear to have a Folder option anymore. This was the option that allowed you to process/merge a complete ...
9
votes
1answer
778 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 ...
8
votes
4answers
4k 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 ...
8
votes
1answer
632 views

How to merge two shapefiles with partial difference in QGIS?

As illustrated below, a copy of the same shapefile was given to two persons who edited them partially by changing the attributes of different features. I would like to know how to merge the two ...
8
votes
1answer
485 views

Merging overlapping buildings but not adjacent buildings using ArcMap?

I have a dataset that has buildings generated from satellites which leads to imperfect building outlines. The buildings circled in red are one building but the computer drew them as having multiple ...
8
votes
3answers
3k views

Merge Spatially Coincident Features in the Same Feature Class

I need a way to programatically merge grid cells (polygon 15x15m) that are directly on top of each other and add together some of their attributes. I am working in ArcGIS 10.1 with the data stored as ...
7
votes
1answer
6k views

How do I edit shapefile attribute tables so they all have the same information?

I am trying to merge several pipeline shapefiles using GEOMERGE but it cannot complete the function because they have different column definitions. So I need to edit the attribute tables so that ...
7
votes
6answers
9k views

Automatically download and merge webmap tiles into one big image?

Is there an easy way to download a bunch of web map tiles (in /z/x/y.png format) and stitch them together into a single large image? I could probably script this using ImageMagick, but would prefer ...
7
votes
3answers
646 views

Merge uniquely named point shapefiles in 50,000 different folders into a single layer

I have point shapefiles in 50,000 different folders (each shapefile file name is unique) - about 33,400 shapefiles (not all folders will have a point shapefile). I like to open the point shapefile in ...
7
votes
2answers
2k views

Merging .asc files = “The command line is too long”

Having problems merging LiDAR .asc folder files to produce a single GeoTiff file. I have followed various instructions e.g. the 2 methods of selecting input files for merging .asc files using ...
7
votes
3answers
1k views

Merge images first, or georeference first?

I'm wanting to georeference and vectorise some features from scans of the OS 1896 Town Plans that I have purchased from the NLS (http://maps.nls.uk/os/london-1890s/info.html). The scans provided are ...
7
votes
3answers
2k views

Alternative to ST_Union/ST_MemUnion for merging overlapping polygons using PostGIS?

New to PostGIS so I trust this is a very basic question but can't seem to find the right solution. I have a materialized view consisting of ~4 million polygons. Some of them overlap. I need to merge ...
7
votes
3answers
1k views

Batch merging shapefiles from different folders, different subfolders [closed]

I tried some of the scripts I found but none worked so far. What I am trying to do is batch merging hundreds, maybe thousands of shapefiles from different folders/sub-folders into a single shp or ...
7
votes
0answers
319 views

Merge Raster Layer Specific Order in Graphic Modeler [closed]

I'm using the Graphic Modeler/Processing Modeler to automate a process. The last step in this process is Merging three different Raster Layers. I'm using the "Merge Raster Layers" from Saga 2.0.8. Is ...
6
votes
2answers
6k 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 -...
6
votes
2answers
2k views

How to merge spatially separated polygons into one feature in QGIS?

As you can see below I have 11 polygons in one shapefile, so in the attribute table there are 11 features. As they all have the same attribute, is it possible to merge them into one feature in QGIS?
6
votes
2answers
2k views

Alternative to 'Editors Merge' feature using ArcPy

I'm looking for a work around that has had me in a pickle for sometime. It involves combining a multi-part feature polygon into a single feature. Obviously if you were editing a shape you would select ...
6
votes
3answers
5k views

Which is more efficient process in ModelBuilder - Merge/Dissolve or Union/Dissolve?

I'm creating a model which combines four very large files and dissolves them. At the moment, my workflow uses the Merge tool and then the Dissolve tool. However, I was wondering if using the Union ...
6
votes
2answers
2k 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 ...
6
votes
2answers
7k views

Correctly merging DEM rasters and eliminating edge effects

I'm using 10m DEM rasters from the NRCS Data Gateway for a large portion of California. The problem is some strange tiling that appears after merging, but isn't present in the original data (before ...
6
votes
1answer
5k 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. ...
6
votes
2answers
39k views

Merging several DEMs into one using ArcGIS Desktop?

Is there any ArcGIS 10 tool to merge several DEM into a single one?
6
votes
2answers
10k views

How to merge multiple file geodatabases into one file geodatabase?

I have created a file geodatabase that has several feature data sets, feature classes, and domains. I have created a map with the file geodatabase added to it, converted the map to ARCPAD AXF format ...
6
votes
1answer
229 views

Is there a “Merge Parts” tool in QGIS?

In the advanced digitizing toolbar, QGIS has these 3 tools: Split Features, Split Parts, and Merge Features. Is there a tool or equivalent algorithm for the logical fourth one: "Merge Parts"? This ...
6
votes
2answers
3k views

In PostGIS, how do I merge a multilinestring into a single linestring, keeping the pieces in proper order?

I have a multilinestring made up of several pieces, some of which are facing the wrong direction. (Accessible here: http://pastebin.com/89Zcixv5 ) I think what I'm looking for is some utilization of ...
6
votes
1answer
817 views

Merge intersecting polygons in same table using Postgis

I am trying to merge polygons in the same table where the polygons intersect while preserving a unique id (can be any id from the features which intersect) in postgis. Currently, I end up with more ...
6
votes
1answer
342 views

Bands Names QGIS when merging rasters

I have downloaded landsat satellite data, then I merged the 4 bands I am interested in into one file (raster-merge). The problem is that I merged bands 2,3,4 and 8, and in the merged file the bands ...
5
votes
2answers
1k views

Shapefile Naming conventions in ArcPy?

I have shapefile named `band-tailed_pigeon.shp which is fine and no problem on displaying or geoprocessing on Desktop but in ArcPy when I try to merge some layes to it I am getting this error ...
5
votes
1answer
5k views

Merging polygon and line shapefiles into one using QGIS?

I have two shapefiles: One is a line feature of the rivers and waterways of London, the other is a polygon feature of the reservoirs, lakes and ponds of the same area. Is it possible please to merge ...
5
votes
2answers
824 views

Merging vectors 'global name 'dataobjects' is not defined'

I'm trying to merge contour line shapefiles but I keep encountering errors when doing so. I'm using Vector > Data Management Tools > Merge and selecting all six line shapefiles and given the ...
5
votes
2answers
2k views

Merging polygons that intersect by more than a specified amount

I am working with a dataset that contains a subset of property boundaries in a local government area, thus my dataset is made up of several thousand properties but not all are touching. Since it is a ...
5
votes
2answers
7k 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 ...
5
votes
2answers
2k views

Problem Merging multiple shapefiles with different CRS in QGIS

I am trying to merge multiple shapefiles into one, but I encounter one error, not all of my shapefiles end up merged. I am able to load all of my shapefiles but when I attempt to merge them, the ...
5
votes
4answers
5k views

Merge large number of polygons using QGIS

I have a series of polygons that are the output of another GIS program - I need to merge the polygons into a single polygon. I have tried a couple of different methods with no luck. I have tried to ...
5
votes
1answer
2k views

Failing to merge rasters in QGIS

I am new to QGIS but have some familiarity with other GIS software (namely ArcGIS). I want to merge a number of LiDAR digital elevation model (DEM) tiles (specifically, 30 individual tiles) to create ...