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 ...
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 ...
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 ...
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 ...
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 ...
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 -...
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 ...
3
votes
1answer
3k 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 ...
3
votes
1answer
3k 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. ...
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 ...
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 ...
2
votes
1answer
692 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 ...
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. ...
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 ...
4
votes
3answers
16k 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 ...
2
votes
2answers
6k 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 ...
4
votes
1answer
3k 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 ...
2
votes
1answer
6k 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 ...
2
votes
1answer
730 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. ...
4
votes
1answer
785 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 ...
2
votes
1answer
1k 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?
1
vote
2answers
137 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" ...
0
votes
1answer
2k 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/...
0
votes
1answer
212 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 ...
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 ...
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 ...
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 ...
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
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 ...
5
votes
1answer
915 views

Merge overlapping DEMs with irregular boundaries

I have a 10m DEM covering part of a state, a 20m DEM covering the whole state, and a 90m DEM covering the whole country. How can I merge them together, getting the best quality available in each area? ...
5
votes
1answer
2k views

How can I match the cells of two rasters?

I have many raster files each one containing information that is different from the others (e.g. one contains information on rain, the other on altitude, and another on land use). The cells in each ...
4
votes
2answers
2k views

Merging raster in QGIS?

I have a huge problem that I can't solve even after trying everything I can think of. I am trying to do some analysis of the Lake Chad basin in QGIS (2.16.3). I downloaded Landsat 8 data from Earth ...
4
votes
1answer
2k views

Merging DEM rasters?

I've been struggling with this problem for awhile. Here is a curvature raster to illustrate the problem. I'm using 10m DEM rasters from the NRCS Data Gateway for a large portion of California. The ...
4
votes
2answers
1k views

Merging linestrings in QGIS using PostgreSQL and PostGIS

I've to merge all linestrings from a PostgreSQL table "river" where not more than two start-/endpoints are overlapping. In the illustration below I use a "M" to mark all linestrings that needs to be ...
3
votes
1answer
2k views

Overlaying lines and aggregating their values for overlapping segments using R?

I have a number of routes (5 in this example data) stored in a SpatialLinesDataFrame called r. These have different origins but all converge on the same destination (Manchester Airport): Each ...
3
votes
1answer
2k views

Merge feature classes in feature datasets using ArcPy?

I'm trying to merge a group of like feature classes which are contained within separate feature datasets. I can merge feature classes within a file geodatabase without having issues by creating a list ...
2
votes
3answers
455 views

Optimizing arcpy.da.Walk performance?

I'm trying to automate a workflow that currently costs a co-worker about 45 minutes. General run down is this person copies files from a network drive onto a local one, and process it through four ...
2
votes
1answer
736 views

pyQGIS Merge raster layers

I want to merge raster layers I have created in different software (SNAP). I know about merge tools in QGIS (qgis merge and gdal merge). I have problem with null values in the rasters which were ...
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 ...
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 ...
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
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
2answers
945 views

Extract certain area of contours/satellite images

I have 2 satellite images (jpeg2000 format) and 2 xyz-files from the same area. I am trying to extract certain region from the area including contour lines and the satellite image in order to import ...
4
votes
1answer
106 views

Visualize challenge: show origin of aggregated minimum r.series job

Using r.series with the aggregate minimum option I'm merging multiple viewshed results to visualize how much vertical space a development area has for new buildings. Meaning that a part of the height ...
4
votes
1answer
5k views

Merging hundreds of vector layers and sum attributes in QGIS?

I am still at a fairly beginner level with QGIS. I am trying to construct a map of mean daily rainfall in Africa over the past ten years. I have access to shapefiles for daily rainfall (with ...
4
votes
1answer
169 views

Batch Script to merge tab fles in a directory

Very similar to this question Merging multiple .tab files? can someone please help me with a batch script for this? Based on the answer in the above I have #!/bin/bash for i in *.tab; do ogr2ogr -...
3
votes
2answers
2k views

Stratified Random Sampling with large dataset in ArcGIS?

I want to create a Stratified Random Sample with a land cover classification map. The purpose for the Stratrified Random Sample is to produce an Accuracy Assessment. I am using ArcGIS 10.2 with access ...
3
votes
1answer
199 views

Joining postcodes to coordinates in a .csv file

I have a .csv of land registry sales data that includes full addresses and postcodes. I'm trying to geocode all the data so that I can plot it in QGIS but my issue is that I have 2 million records ...
3
votes
0answers
244 views

Create polygons from many small. Expand to include space between

I'm just a programmer without GIS-skills as such. Hence this question: Intro: I have a lot of polygons; actually each private-owned real estate in my country. I also have "counties" as polygons. In ...