joheisig / Spatial_Data_in_R

🌌 SWIRL-course on spatial data in R :globe_with_meridians:
Other
7 stars 1 forks source link

skip() answer is incorrect for Import_&_Export_Data. crs question #1

Open rkopper610 opened 3 years ago

rkopper610 commented 3 years ago

Spatial_Data_inR/Import&_Export_Data/customTests.R

For Question about CRS: _As discussed earlier, our point coordinates are in degree latitude and longitude. Set the CRS of 'n3' to the World Geodetic System (aka WGS84) with the following line - crs(n3) <- "+proj=longlat +datum=WGS84 +nodefs +ellps=WGS84 +towgs84=0,0,0"

answer that works does not include "crs(n3) <-" but the skip() option includes it so it fails

crs(n3) <- "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"

| You're close...I can feel it! Try it again. Or, type info() for more options.

This works: "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0" [1] "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"

| That's a job well done!

rkopper610 commented 3 years ago

Also in Coordinate_Reference_Systems/ lesson the following does not work as NAD83 doesn't exist.