USGS Relief map (GeoTIFF raster) misaligns with vector layers (QGIS)Importing a PostGIS and a Delimited Text layer in QGIS, not overlappingHow to project TIGER & WGS84 to Spherical Mercator?Problem with spatial reference system / shapefile projectionUSGS GeoTiff extent via GDALTrouble calculating areas in QGIS using field calculatorAlign vector and raster layers with D3Fixing artifacts in rendered ocean polygonsLoading NAD83 and WGS84 layers together in QGIS?CRS problem after raster reproject via QGIS WarpProjecting NLCD data as WGS84 using QGIS?
How can I make 12 tone and atonal melodies sound interesting?
Who won a Game of Bar Dice?
Does the new finding on "reversing a quantum jump mid-flight" rule out any interpretations of QM?
Are polynomials with the same roots identical?
Can I utilise a baking stone to make crepes?
What should I write in an apology letter, since I have decided not to join a company after accepting an offer letter
Is using 'echo' to display attacker-controlled data on the terminal dangerous?
AMPScript SMS InsertDE() function not working in SMS
USGS Relief map (GeoTIFF raster) misaligns with vector layers (QGIS)
What is the purpose of bonds within an investment portfolio?
Printing Pascal’s triangle for n number of rows in Python
How to safely destroy (a large quantity of) valid checks?
Next date with distinct digits
Why can I traceroute to this IP address, but not ping?
I've been given a project I can't complete, what should I do?
Why am I getting a strange double quote (“) in Open Office instead of the ordinary one (")?
Is there a set of positive integers of density 1 which contains no infinite arithmetic progression?
How can I use String in enum for Apex?
I have a problematic assistant manager, but I can't fire him
Is it possible to have 2 different but equal size real number sets that have the same mean and standard deviation?
What does 思ってやっている mean?
Which is the better way to call a method that is only available to one class that implements an interface but not the other one?
Ability To Change Root User Password (Vulnerability?)
Why does this query, missing a FROM clause, not error out?
USGS Relief map (GeoTIFF raster) misaligns with vector layers (QGIS)
Importing a PostGIS and a Delimited Text layer in QGIS, not overlappingHow to project TIGER & WGS84 to Spherical Mercator?Problem with spatial reference system / shapefile projectionUSGS GeoTiff extent via GDALTrouble calculating areas in QGIS using field calculatorAlign vector and raster layers with D3Fixing artifacts in rendered ocean polygonsLoading NAD83 and WGS84 layers together in QGIS?CRS problem after raster reproject via QGIS WarpProjecting NLCD data as WGS84 using QGIS?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to correct the alignment of three layers (described below), but I'm not entirely sure how to go about re-projecting raster layers to my other layers. Ultimately my goal is to clip the relief map to the park boundaries, to look similar to Grossenbacher's map. There are some park boundaries to remove/exclude, but I first want to make sure everything is aligned.
The main thing that is confusing me is the many different projections of my layers, and which one to choose as the main projection. As well as correctly re-projecting the raster layer.
Layer 1 (brown, TIGER census tracts)
CRS: EPSG:4269 - NAD83 - Geographic
Source: https://www2.census.gov/geo/tiger/TGRGDB16/
Layer 2 (yellow, National Park boundaries)
CRS: EPSG:3857 - WGS 84 / Pseudo-Mercator - Projected
Source: https://public-nps.opendata.arcgis.com/datasets/national-park-service-park-unit-boundaries
Layer 3 (gray, USGS Relief map [Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution])
CRS: Generated CRS (+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs) - Projected
Source: https://nationalmap.gov/small_scale/atlasftp.html#srgy48i
qgis raster coordinate-system
|
show 3 more comments
I'm trying to correct the alignment of three layers (described below), but I'm not entirely sure how to go about re-projecting raster layers to my other layers. Ultimately my goal is to clip the relief map to the park boundaries, to look similar to Grossenbacher's map. There are some park boundaries to remove/exclude, but I first want to make sure everything is aligned.
The main thing that is confusing me is the many different projections of my layers, and which one to choose as the main projection. As well as correctly re-projecting the raster layer.
Layer 1 (brown, TIGER census tracts)
CRS: EPSG:4269 - NAD83 - Geographic
Source: https://www2.census.gov/geo/tiger/TGRGDB16/
Layer 2 (yellow, National Park boundaries)
CRS: EPSG:3857 - WGS 84 / Pseudo-Mercator - Projected
Source: https://public-nps.opendata.arcgis.com/datasets/national-park-service-park-unit-boundaries
Layer 3 (gray, USGS Relief map [Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution])
CRS: Generated CRS (+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs) - Projected
Source: https://nationalmap.gov/small_scale/atlasftp.html#srgy48i
qgis raster coordinate-system
The main CRS of your map doesn't matter for this purpose. As long as the CRS of each layer is correctly assigned, QGIS can display them so that they line up. This feature is called "on-the-fly reprojection; in QGIS 3 it happens automatically, and in earlier versions you could turn it on and off through project properties menu. If you have OTF reprojection turned on, the problem might be that one or more layers has an incorrect CRS. The most common cause would be if you (incorrectly) changed one of the layer's CRS through the layer properties. Or maybe the "generated CRS" is incorrect.
– csk
7 hours ago
If you did change the CRS (in the layer property) of any of these layers, remove that layer from your map and add it back in. This will hopefully reset the layer back to its intended CRS. Also, look up the metadata / layer description of the relief map and see what CRS it's supposed to be in. Then see if you can find a pre-loaded CRS to use for that layer.
– csk
7 hours ago
And can you provide links to the original source data? You can use the edit link under your question to add them.
– csk
7 hours ago
I remove/added all the layers without making any changes in the CRS, but I'm still getting same results. Also, didn't find anything in the metadata of the relief map. Anything else I can do?
– James R.
7 hours ago
"The Grayscale United States Shaded Relief – 200 Meter Resolution map layer is available in both a Lambert Azimuthal Equal-Area projection and an Albers Conical Equal-Area projection." It looks like you have the Lambert Azimuthal Equal-Area projection version. Try setting the CRS (in the layer properties) to a CRS in the "Lambert Azimuthal Equal-Area" section of the CRS selector. EPSG:2163 (US National Atlas Equal Area) sounds like a reasonable one to try.
– csk
7 hours ago
|
show 3 more comments
I'm trying to correct the alignment of three layers (described below), but I'm not entirely sure how to go about re-projecting raster layers to my other layers. Ultimately my goal is to clip the relief map to the park boundaries, to look similar to Grossenbacher's map. There are some park boundaries to remove/exclude, but I first want to make sure everything is aligned.
The main thing that is confusing me is the many different projections of my layers, and which one to choose as the main projection. As well as correctly re-projecting the raster layer.
Layer 1 (brown, TIGER census tracts)
CRS: EPSG:4269 - NAD83 - Geographic
Source: https://www2.census.gov/geo/tiger/TGRGDB16/
Layer 2 (yellow, National Park boundaries)
CRS: EPSG:3857 - WGS 84 / Pseudo-Mercator - Projected
Source: https://public-nps.opendata.arcgis.com/datasets/national-park-service-park-unit-boundaries
Layer 3 (gray, USGS Relief map [Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution])
CRS: Generated CRS (+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs) - Projected
Source: https://nationalmap.gov/small_scale/atlasftp.html#srgy48i
qgis raster coordinate-system
I'm trying to correct the alignment of three layers (described below), but I'm not entirely sure how to go about re-projecting raster layers to my other layers. Ultimately my goal is to clip the relief map to the park boundaries, to look similar to Grossenbacher's map. There are some park boundaries to remove/exclude, but I first want to make sure everything is aligned.
The main thing that is confusing me is the many different projections of my layers, and which one to choose as the main projection. As well as correctly re-projecting the raster layer.
Layer 1 (brown, TIGER census tracts)
CRS: EPSG:4269 - NAD83 - Geographic
Source: https://www2.census.gov/geo/tiger/TGRGDB16/
Layer 2 (yellow, National Park boundaries)
CRS: EPSG:3857 - WGS 84 / Pseudo-Mercator - Projected
Source: https://public-nps.opendata.arcgis.com/datasets/national-park-service-park-unit-boundaries
Layer 3 (gray, USGS Relief map [Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution])
CRS: Generated CRS (+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs) - Projected
Source: https://nationalmap.gov/small_scale/atlasftp.html#srgy48i
qgis raster coordinate-system
qgis raster coordinate-system
edited 6 hours ago
James R.
asked 8 hours ago
James R.James R.
135
135
The main CRS of your map doesn't matter for this purpose. As long as the CRS of each layer is correctly assigned, QGIS can display them so that they line up. This feature is called "on-the-fly reprojection; in QGIS 3 it happens automatically, and in earlier versions you could turn it on and off through project properties menu. If you have OTF reprojection turned on, the problem might be that one or more layers has an incorrect CRS. The most common cause would be if you (incorrectly) changed one of the layer's CRS through the layer properties. Or maybe the "generated CRS" is incorrect.
– csk
7 hours ago
If you did change the CRS (in the layer property) of any of these layers, remove that layer from your map and add it back in. This will hopefully reset the layer back to its intended CRS. Also, look up the metadata / layer description of the relief map and see what CRS it's supposed to be in. Then see if you can find a pre-loaded CRS to use for that layer.
– csk
7 hours ago
And can you provide links to the original source data? You can use the edit link under your question to add them.
– csk
7 hours ago
I remove/added all the layers without making any changes in the CRS, but I'm still getting same results. Also, didn't find anything in the metadata of the relief map. Anything else I can do?
– James R.
7 hours ago
"The Grayscale United States Shaded Relief – 200 Meter Resolution map layer is available in both a Lambert Azimuthal Equal-Area projection and an Albers Conical Equal-Area projection." It looks like you have the Lambert Azimuthal Equal-Area projection version. Try setting the CRS (in the layer properties) to a CRS in the "Lambert Azimuthal Equal-Area" section of the CRS selector. EPSG:2163 (US National Atlas Equal Area) sounds like a reasonable one to try.
– csk
7 hours ago
|
show 3 more comments
The main CRS of your map doesn't matter for this purpose. As long as the CRS of each layer is correctly assigned, QGIS can display them so that they line up. This feature is called "on-the-fly reprojection; in QGIS 3 it happens automatically, and in earlier versions you could turn it on and off through project properties menu. If you have OTF reprojection turned on, the problem might be that one or more layers has an incorrect CRS. The most common cause would be if you (incorrectly) changed one of the layer's CRS through the layer properties. Or maybe the "generated CRS" is incorrect.
– csk
7 hours ago
If you did change the CRS (in the layer property) of any of these layers, remove that layer from your map and add it back in. This will hopefully reset the layer back to its intended CRS. Also, look up the metadata / layer description of the relief map and see what CRS it's supposed to be in. Then see if you can find a pre-loaded CRS to use for that layer.
– csk
7 hours ago
And can you provide links to the original source data? You can use the edit link under your question to add them.
– csk
7 hours ago
I remove/added all the layers without making any changes in the CRS, but I'm still getting same results. Also, didn't find anything in the metadata of the relief map. Anything else I can do?
– James R.
7 hours ago
"The Grayscale United States Shaded Relief – 200 Meter Resolution map layer is available in both a Lambert Azimuthal Equal-Area projection and an Albers Conical Equal-Area projection." It looks like you have the Lambert Azimuthal Equal-Area projection version. Try setting the CRS (in the layer properties) to a CRS in the "Lambert Azimuthal Equal-Area" section of the CRS selector. EPSG:2163 (US National Atlas Equal Area) sounds like a reasonable one to try.
– csk
7 hours ago
The main CRS of your map doesn't matter for this purpose. As long as the CRS of each layer is correctly assigned, QGIS can display them so that they line up. This feature is called "on-the-fly reprojection; in QGIS 3 it happens automatically, and in earlier versions you could turn it on and off through project properties menu. If you have OTF reprojection turned on, the problem might be that one or more layers has an incorrect CRS. The most common cause would be if you (incorrectly) changed one of the layer's CRS through the layer properties. Or maybe the "generated CRS" is incorrect.
– csk
7 hours ago
The main CRS of your map doesn't matter for this purpose. As long as the CRS of each layer is correctly assigned, QGIS can display them so that they line up. This feature is called "on-the-fly reprojection; in QGIS 3 it happens automatically, and in earlier versions you could turn it on and off through project properties menu. If you have OTF reprojection turned on, the problem might be that one or more layers has an incorrect CRS. The most common cause would be if you (incorrectly) changed one of the layer's CRS through the layer properties. Or maybe the "generated CRS" is incorrect.
– csk
7 hours ago
If you did change the CRS (in the layer property) of any of these layers, remove that layer from your map and add it back in. This will hopefully reset the layer back to its intended CRS. Also, look up the metadata / layer description of the relief map and see what CRS it's supposed to be in. Then see if you can find a pre-loaded CRS to use for that layer.
– csk
7 hours ago
If you did change the CRS (in the layer property) of any of these layers, remove that layer from your map and add it back in. This will hopefully reset the layer back to its intended CRS. Also, look up the metadata / layer description of the relief map and see what CRS it's supposed to be in. Then see if you can find a pre-loaded CRS to use for that layer.
– csk
7 hours ago
And can you provide links to the original source data? You can use the edit link under your question to add them.
– csk
7 hours ago
And can you provide links to the original source data? You can use the edit link under your question to add them.
– csk
7 hours ago
I remove/added all the layers without making any changes in the CRS, but I'm still getting same results. Also, didn't find anything in the metadata of the relief map. Anything else I can do?
– James R.
7 hours ago
I remove/added all the layers without making any changes in the CRS, but I'm still getting same results. Also, didn't find anything in the metadata of the relief map. Anything else I can do?
– James R.
7 hours ago
"The Grayscale United States Shaded Relief – 200 Meter Resolution map layer is available in both a Lambert Azimuthal Equal-Area projection and an Albers Conical Equal-Area projection." It looks like you have the Lambert Azimuthal Equal-Area projection version. Try setting the CRS (in the layer properties) to a CRS in the "Lambert Azimuthal Equal-Area" section of the CRS selector. EPSG:2163 (US National Atlas Equal Area) sounds like a reasonable one to try.
– csk
7 hours ago
"The Grayscale United States Shaded Relief – 200 Meter Resolution map layer is available in both a Lambert Azimuthal Equal-Area projection and an Albers Conical Equal-Area projection." It looks like you have the Lambert Azimuthal Equal-Area projection version. Try setting the CRS (in the layer properties) to a CRS in the "Lambert Azimuthal Equal-Area" section of the CRS selector. EPSG:2163 (US National Atlas Equal Area) sounds like a reasonable one to try.
– csk
7 hours ago
|
show 3 more comments
1 Answer
1
active
oldest
votes
From the screenshot, it's clear that this is a projection issue. The layers all have sufficient detail, that their misalignment cannot be due to low resolution. Also, they are offset by varying amounts in different places. So, to fix this issue we have to figure out the cause of the projection issue. Here are the various things to check:
If using a version of QGIS older than 3.0, make sure on-the-fly reprojection is turned on. This feature allows you to have layers in different CRS's displayed on the same map. QGIS displays them projected into the same CRS, without any need to change the source data. In QGIS 3.0 and later, on-the-fly reprojection is always on.
Once we know that you have OTF reprojection turned on (or are using QGIS 3.0 or later), the most likely cause is that one or more layers has an incorrect CRS.
The most common cause of an incorrect CRS would be if you (incorrectly) changed one of the layer's CRS through the layer properties. If you did change the CRS (in the layer property) of any of these layers, remove that layer from your map and add it back in. This will hopefully reset the layer back to its intended CRS.
Another possible cause is that the layer did not automatically load with the correct CRS. To fix this, look up the metadata / layer description of the relief map and see what CRS it's supposed to be in. Then try to find a pre-loaded CRS to use for that layer. Change the CRS of the layer in the layer properties to the correct CRS. You may need to make a few guesses, and try a few different CRS's until you find the right one.
In this case, the most likely culprit is the Relief map layer (full name: Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution), because it's in a "generated CRS." Always be suspicious of a layer that automatically loads in a "generated CRS."
The Relief layer doesn't have any helpful information in the metadata or layer properties. However, if we go to the source website, at the very bottom of the page is the information we need:
The Grayscale United States Shaded Relief – 200 Meter Resolution map layer is available in both a Lambert Azimuthal Equal-Area projection and an Albers Conical Equal-Area projection.
Now we know this layer is either in a Lambert Azimuthal Equal-Area projection or an Albers Conical Equal-Area projection.
On this page, we can see a list of all the related layers. There are layers called
- "Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution" and
- "Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution Albers Projection"
Obviously the one with "Albers Projection" in the name is in an Albers projection, so by process of elimination we can assume that our layer is in Lambert Azimuthal Equal-Area projection.
So now we go into the layer properties and change the CRS to a Lambert Azimuthal Equal-Area projection. In the CRS selector window, in the section called "Coordinate Reference Systems of the World, scroll down until you find the section called "Lambert Azimuthal Equal-Area." (Don't be enticed by "Lambert Conformal Conic.")
QGIS has 21 options for Lambert Azimuthal Equal-Area projections, but fortunately only one of them sounds remotely reasonable for this area of interest: US National Atlas Equal Area EPSG:2163
Notes:
- If there's more than one reasonable-sounding CRS, try them all, and use the one that makes the layer correctly align with the other layers.
- This method depends on having at least one layer that you know is correctly aligned. If you're not sure that any of your layers is in the correct CRS, then you can't use them for comparison. Instead, use the QuickMapServices plugin to obtain a basemap such as Open Street Map.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f325192%2fusgs-relief-map-geotiff-raster-misaligns-with-vector-layers-qgis%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
From the screenshot, it's clear that this is a projection issue. The layers all have sufficient detail, that their misalignment cannot be due to low resolution. Also, they are offset by varying amounts in different places. So, to fix this issue we have to figure out the cause of the projection issue. Here are the various things to check:
If using a version of QGIS older than 3.0, make sure on-the-fly reprojection is turned on. This feature allows you to have layers in different CRS's displayed on the same map. QGIS displays them projected into the same CRS, without any need to change the source data. In QGIS 3.0 and later, on-the-fly reprojection is always on.
Once we know that you have OTF reprojection turned on (or are using QGIS 3.0 or later), the most likely cause is that one or more layers has an incorrect CRS.
The most common cause of an incorrect CRS would be if you (incorrectly) changed one of the layer's CRS through the layer properties. If you did change the CRS (in the layer property) of any of these layers, remove that layer from your map and add it back in. This will hopefully reset the layer back to its intended CRS.
Another possible cause is that the layer did not automatically load with the correct CRS. To fix this, look up the metadata / layer description of the relief map and see what CRS it's supposed to be in. Then try to find a pre-loaded CRS to use for that layer. Change the CRS of the layer in the layer properties to the correct CRS. You may need to make a few guesses, and try a few different CRS's until you find the right one.
In this case, the most likely culprit is the Relief map layer (full name: Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution), because it's in a "generated CRS." Always be suspicious of a layer that automatically loads in a "generated CRS."
The Relief layer doesn't have any helpful information in the metadata or layer properties. However, if we go to the source website, at the very bottom of the page is the information we need:
The Grayscale United States Shaded Relief – 200 Meter Resolution map layer is available in both a Lambert Azimuthal Equal-Area projection and an Albers Conical Equal-Area projection.
Now we know this layer is either in a Lambert Azimuthal Equal-Area projection or an Albers Conical Equal-Area projection.
On this page, we can see a list of all the related layers. There are layers called
- "Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution" and
- "Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution Albers Projection"
Obviously the one with "Albers Projection" in the name is in an Albers projection, so by process of elimination we can assume that our layer is in Lambert Azimuthal Equal-Area projection.
So now we go into the layer properties and change the CRS to a Lambert Azimuthal Equal-Area projection. In the CRS selector window, in the section called "Coordinate Reference Systems of the World, scroll down until you find the section called "Lambert Azimuthal Equal-Area." (Don't be enticed by "Lambert Conformal Conic.")
QGIS has 21 options for Lambert Azimuthal Equal-Area projections, but fortunately only one of them sounds remotely reasonable for this area of interest: US National Atlas Equal Area EPSG:2163
Notes:
- If there's more than one reasonable-sounding CRS, try them all, and use the one that makes the layer correctly align with the other layers.
- This method depends on having at least one layer that you know is correctly aligned. If you're not sure that any of your layers is in the correct CRS, then you can't use them for comparison. Instead, use the QuickMapServices plugin to obtain a basemap such as Open Street Map.
add a comment |
From the screenshot, it's clear that this is a projection issue. The layers all have sufficient detail, that their misalignment cannot be due to low resolution. Also, they are offset by varying amounts in different places. So, to fix this issue we have to figure out the cause of the projection issue. Here are the various things to check:
If using a version of QGIS older than 3.0, make sure on-the-fly reprojection is turned on. This feature allows you to have layers in different CRS's displayed on the same map. QGIS displays them projected into the same CRS, without any need to change the source data. In QGIS 3.0 and later, on-the-fly reprojection is always on.
Once we know that you have OTF reprojection turned on (or are using QGIS 3.0 or later), the most likely cause is that one or more layers has an incorrect CRS.
The most common cause of an incorrect CRS would be if you (incorrectly) changed one of the layer's CRS through the layer properties. If you did change the CRS (in the layer property) of any of these layers, remove that layer from your map and add it back in. This will hopefully reset the layer back to its intended CRS.
Another possible cause is that the layer did not automatically load with the correct CRS. To fix this, look up the metadata / layer description of the relief map and see what CRS it's supposed to be in. Then try to find a pre-loaded CRS to use for that layer. Change the CRS of the layer in the layer properties to the correct CRS. You may need to make a few guesses, and try a few different CRS's until you find the right one.
In this case, the most likely culprit is the Relief map layer (full name: Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution), because it's in a "generated CRS." Always be suspicious of a layer that automatically loads in a "generated CRS."
The Relief layer doesn't have any helpful information in the metadata or layer properties. However, if we go to the source website, at the very bottom of the page is the information we need:
The Grayscale United States Shaded Relief – 200 Meter Resolution map layer is available in both a Lambert Azimuthal Equal-Area projection and an Albers Conical Equal-Area projection.
Now we know this layer is either in a Lambert Azimuthal Equal-Area projection or an Albers Conical Equal-Area projection.
On this page, we can see a list of all the related layers. There are layers called
- "Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution" and
- "Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution Albers Projection"
Obviously the one with "Albers Projection" in the name is in an Albers projection, so by process of elimination we can assume that our layer is in Lambert Azimuthal Equal-Area projection.
So now we go into the layer properties and change the CRS to a Lambert Azimuthal Equal-Area projection. In the CRS selector window, in the section called "Coordinate Reference Systems of the World, scroll down until you find the section called "Lambert Azimuthal Equal-Area." (Don't be enticed by "Lambert Conformal Conic.")
QGIS has 21 options for Lambert Azimuthal Equal-Area projections, but fortunately only one of them sounds remotely reasonable for this area of interest: US National Atlas Equal Area EPSG:2163
Notes:
- If there's more than one reasonable-sounding CRS, try them all, and use the one that makes the layer correctly align with the other layers.
- This method depends on having at least one layer that you know is correctly aligned. If you're not sure that any of your layers is in the correct CRS, then you can't use them for comparison. Instead, use the QuickMapServices plugin to obtain a basemap such as Open Street Map.
add a comment |
From the screenshot, it's clear that this is a projection issue. The layers all have sufficient detail, that their misalignment cannot be due to low resolution. Also, they are offset by varying amounts in different places. So, to fix this issue we have to figure out the cause of the projection issue. Here are the various things to check:
If using a version of QGIS older than 3.0, make sure on-the-fly reprojection is turned on. This feature allows you to have layers in different CRS's displayed on the same map. QGIS displays them projected into the same CRS, without any need to change the source data. In QGIS 3.0 and later, on-the-fly reprojection is always on.
Once we know that you have OTF reprojection turned on (or are using QGIS 3.0 or later), the most likely cause is that one or more layers has an incorrect CRS.
The most common cause of an incorrect CRS would be if you (incorrectly) changed one of the layer's CRS through the layer properties. If you did change the CRS (in the layer property) of any of these layers, remove that layer from your map and add it back in. This will hopefully reset the layer back to its intended CRS.
Another possible cause is that the layer did not automatically load with the correct CRS. To fix this, look up the metadata / layer description of the relief map and see what CRS it's supposed to be in. Then try to find a pre-loaded CRS to use for that layer. Change the CRS of the layer in the layer properties to the correct CRS. You may need to make a few guesses, and try a few different CRS's until you find the right one.
In this case, the most likely culprit is the Relief map layer (full name: Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution), because it's in a "generated CRS." Always be suspicious of a layer that automatically loads in a "generated CRS."
The Relief layer doesn't have any helpful information in the metadata or layer properties. However, if we go to the source website, at the very bottom of the page is the information we need:
The Grayscale United States Shaded Relief – 200 Meter Resolution map layer is available in both a Lambert Azimuthal Equal-Area projection and an Albers Conical Equal-Area projection.
Now we know this layer is either in a Lambert Azimuthal Equal-Area projection or an Albers Conical Equal-Area projection.
On this page, we can see a list of all the related layers. There are layers called
- "Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution" and
- "Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution Albers Projection"
Obviously the one with "Albers Projection" in the name is in an Albers projection, so by process of elimination we can assume that our layer is in Lambert Azimuthal Equal-Area projection.
So now we go into the layer properties and change the CRS to a Lambert Azimuthal Equal-Area projection. In the CRS selector window, in the section called "Coordinate Reference Systems of the World, scroll down until you find the section called "Lambert Azimuthal Equal-Area." (Don't be enticed by "Lambert Conformal Conic.")
QGIS has 21 options for Lambert Azimuthal Equal-Area projections, but fortunately only one of them sounds remotely reasonable for this area of interest: US National Atlas Equal Area EPSG:2163
Notes:
- If there's more than one reasonable-sounding CRS, try them all, and use the one that makes the layer correctly align with the other layers.
- This method depends on having at least one layer that you know is correctly aligned. If you're not sure that any of your layers is in the correct CRS, then you can't use them for comparison. Instead, use the QuickMapServices plugin to obtain a basemap such as Open Street Map.
From the screenshot, it's clear that this is a projection issue. The layers all have sufficient detail, that their misalignment cannot be due to low resolution. Also, they are offset by varying amounts in different places. So, to fix this issue we have to figure out the cause of the projection issue. Here are the various things to check:
If using a version of QGIS older than 3.0, make sure on-the-fly reprojection is turned on. This feature allows you to have layers in different CRS's displayed on the same map. QGIS displays them projected into the same CRS, without any need to change the source data. In QGIS 3.0 and later, on-the-fly reprojection is always on.
Once we know that you have OTF reprojection turned on (or are using QGIS 3.0 or later), the most likely cause is that one or more layers has an incorrect CRS.
The most common cause of an incorrect CRS would be if you (incorrectly) changed one of the layer's CRS through the layer properties. If you did change the CRS (in the layer property) of any of these layers, remove that layer from your map and add it back in. This will hopefully reset the layer back to its intended CRS.
Another possible cause is that the layer did not automatically load with the correct CRS. To fix this, look up the metadata / layer description of the relief map and see what CRS it's supposed to be in. Then try to find a pre-loaded CRS to use for that layer. Change the CRS of the layer in the layer properties to the correct CRS. You may need to make a few guesses, and try a few different CRS's until you find the right one.
In this case, the most likely culprit is the Relief map layer (full name: Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution), because it's in a "generated CRS." Always be suspicious of a layer that automatically loads in a "generated CRS."
The Relief layer doesn't have any helpful information in the metadata or layer properties. However, if we go to the source website, at the very bottom of the page is the information we need:
The Grayscale United States Shaded Relief – 200 Meter Resolution map layer is available in both a Lambert Azimuthal Equal-Area projection and an Albers Conical Equal-Area projection.
Now we know this layer is either in a Lambert Azimuthal Equal-Area projection or an Albers Conical Equal-Area projection.
On this page, we can see a list of all the related layers. There are layers called
- "Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution" and
- "Shaded Relief Land - Gray - Conterminous United States 200 Meter Resolution Albers Projection"
Obviously the one with "Albers Projection" in the name is in an Albers projection, so by process of elimination we can assume that our layer is in Lambert Azimuthal Equal-Area projection.
So now we go into the layer properties and change the CRS to a Lambert Azimuthal Equal-Area projection. In the CRS selector window, in the section called "Coordinate Reference Systems of the World, scroll down until you find the section called "Lambert Azimuthal Equal-Area." (Don't be enticed by "Lambert Conformal Conic.")
QGIS has 21 options for Lambert Azimuthal Equal-Area projections, but fortunately only one of them sounds remotely reasonable for this area of interest: US National Atlas Equal Area EPSG:2163
Notes:
- If there's more than one reasonable-sounding CRS, try them all, and use the one that makes the layer correctly align with the other layers.
- This method depends on having at least one layer that you know is correctly aligned. If you're not sure that any of your layers is in the correct CRS, then you can't use them for comparison. Instead, use the QuickMapServices plugin to obtain a basemap such as Open Street Map.
answered 6 hours ago
cskcsk
11.8k1337
11.8k1337
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f325192%2fusgs-relief-map-geotiff-raster-misaligns-with-vector-layers-qgis%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The main CRS of your map doesn't matter for this purpose. As long as the CRS of each layer is correctly assigned, QGIS can display them so that they line up. This feature is called "on-the-fly reprojection; in QGIS 3 it happens automatically, and in earlier versions you could turn it on and off through project properties menu. If you have OTF reprojection turned on, the problem might be that one or more layers has an incorrect CRS. The most common cause would be if you (incorrectly) changed one of the layer's CRS through the layer properties. Or maybe the "generated CRS" is incorrect.
– csk
7 hours ago
If you did change the CRS (in the layer property) of any of these layers, remove that layer from your map and add it back in. This will hopefully reset the layer back to its intended CRS. Also, look up the metadata / layer description of the relief map and see what CRS it's supposed to be in. Then see if you can find a pre-loaded CRS to use for that layer.
– csk
7 hours ago
And can you provide links to the original source data? You can use the edit link under your question to add them.
– csk
7 hours ago
I remove/added all the layers without making any changes in the CRS, but I'm still getting same results. Also, didn't find anything in the metadata of the relief map. Anything else I can do?
– James R.
7 hours ago
"The Grayscale United States Shaded Relief – 200 Meter Resolution map layer is available in both a Lambert Azimuthal Equal-Area projection and an Albers Conical Equal-Area projection." It looks like you have the Lambert Azimuthal Equal-Area projection version. Try setting the CRS (in the layer properties) to a CRS in the "Lambert Azimuthal Equal-Area" section of the CRS selector. EPSG:2163 (US National Atlas Equal Area) sounds like a reasonable one to try.
– csk
7 hours ago