It’s not possible to measure distances or areas using angular coordinates, especially because the length of a degree of longitude varies depending on how close you are to the equator. Therefore, if you need to do any spatial analysis on your data, it’s necessary to reproject it
The advantages of reprojecting your datasets are:
Phuong has asked you to combine the gibbon sightings from the two gibbon surveys into a single dataset, for further analysis and map-making. A preparatory step is to reproject one of the files into the same SRS as the other, before merging them together1. We recommend reprojecting GibbonSightings_Survey1.geojson from Latitude-Longitude into the projected SRS NSIDC EASE-Grid Global, EPSG code 3410.
- Go to the
Processing
menu >Toolbox
- Type reproject into the search bar of the Processing toolbox and double-click on
Reproject layer
- In the
Reproject Layer
pop-up window, underInput layer
, select GibbonSightings_Survey1.geojson- Under
Target CRS
, search for and select EPSG:3410 - NSIDC EASE-Grid Global- Under
Reprojected
, click on the...
button and selectSave to File...
- Specify a name for your new .geojson, including the EPSG code in the name so you can easily identify it as the reprojected layer
- Click
Run
and close theReproject Layer
window
Before we can merge the two sources of survey data, we will convert the sightings from our second survey into a spatial data format2
- Right-click on GibbonSightings_Survey2.csv in the Layers panel >
Export > Save Features As...
- Under ‘Select fields to export and their export options`, uncheck the columns X and Y. We don’t need these columns any more, and excluding them from our new file means we will have identical columns in the Attribute table of both Sightings layers, which will simplify the output Attribute table
- Save your file as a .geojson, again including the EPSG code in the name
We are finally ready to merge our two layers!
- Open
Processing > Toolbox
again if it’s not already open and search for merge- Open
Merge vector layers
- On the
Merge Vector Layers
pop-up window, click the...
button to the right of theInput layers
box- Select your two survey datasets which use EPSG:3410 and click
OK
- Under
Merged
, click on the...
button and selectSave to File...
- Specify a name for your new merged file, e.g. GibbonSightings_Merged.geojson
- Click
Run
and close theMerge Vector Layers
window- Open your new layer’s Attribute table and check it contains 88 features, including sightings made by Binh
In fact, the Merge Vector Layers
tool can reproject and merge in a single step, but it’s useful to know how to reproject so we’ll do this preparatory step manually ↩
The Merge Vector Layers
tool can cope with .csv as input, but making these separate steps explicit gives you more insight into the full process of merging geospatial datasets ↩