Een deel gaat al goed Jelle, maar het draait nog niet 100%
Ik krijg het niet voor elkaar dat het data wegschrijft naar een csv bestand.
Gebruik sample_out.csv in dezelfde directory, Bestand heb ik niet open staan
> write.table(alle_hoogtes_tabel, "\\sample_out.csv", sep=",", col.names = TRUE, row.names = FALSE)
Error in file(file, ifelse(append, "a", "w")) :
cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
**cannot open file '\sample_out.csv': Permission denied**
[1] "Download raster image succeeded."
[1] "Intersecting raster. Getting elevation..."
[1] "Elevation of 5: -4.37 m."
AHN3 0.5 resolution DTM (maaiveld) selected.
trying URL 'https://geodata.nationaalgeoregister.nl/ahn3/wcs?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&COVERAGE=ahn3_05m_DTM&BBOX=113219.5,472445,113221,472446.5&CRS=EPSG:28992&RESPONSE_CRS=EPSG:28992&FORMAT=GEOTIFF_FLOAT32&WIDTH=3&HEIGHT=3'
Content type 'image/tiff' length 562 bytes
downloaded 562 bytes
etc.
There were 27 warnings (use warnings() to see them)
warnigs()
Warning messages:
1: In download_wcs_raster(wcsUrl = my_url, name = name_trim, ... :
Cropped WCS raster for 1 already exists and was overwritten.
2: In .local(x, y, ...) : Transforming SpatialPoints to the CRS of the Raster
3: In (function (name = "AHNelevation", X, Y, AHN = "AHN3", ... :
NAs introduced by coercion
4: In download_wcs_raster(wcsUrl = my_url, name = name_trim, ... :
Cropped WCS raster for 2 already exists and was overwritten.
5: In .local(x, y, ...) : Transforming SpatialPoints to the CRS of the Raster
6: In (function (name = "AHNelevation", X, Y, AHN = "AHN3", ... :
NAs introduced by coercion
7: In download_wcs_raster(wcsUrl = my_url, name = name_trim, ... :
Cropped WCS raster for 3 already exists and was overwritten.
8: In .local(x, y, ...) : Transforming SpatialPoints to the CRS of the Raster
9: In download_wcs_raster(wcsUrl = my_url, name = name_trim, ... :
Cropped WCS raster for 4 already exists and was overwritten.
10: In .local(x, y, ...) : Transforming SpatialPoints to the CRS of the Raster
11: In download_wcs_raster(wcsUrl = my_url, name = name_trim, ... :
Cropped WCS raster for 5 already exists and was overwritten.
12: In .local(x, y, ...) : Transforming SpatialPoints to the CRS of the Raster
13: In download_wcs_raster(wcsUrl = my_url, name = name_trim, ... :
Cropped WCS raster for 6 already exists and was overwritten.
14: In .local(x, y, ...) : Transforming SpatialPoints to the CRS of the Raster
15: In (function (name = "AHNelevation", X, Y, AHN = "AHN3", ... :
NAs introduced by coercion
16: In download_wcs_raster(wcsUrl = my_url, name = name_trim, ... :
Cropped WCS raster for 7 already exists and was overwritten.
17: In .local(x, y, ...) : Transforming SpatialPoints to the CRS of the Raster
18: In (function (name = "AHNelevation", X, Y, AHN = "AHN3", ... :
NAs introduced by coercion
19: In download_wcs_raster(wcsUrl = my_url, name = name_trim, ... :
Cropped WCS raster for 8 already exists and was overwritten.
20: In .local(x, y, ...) : Transforming SpatialPoints to the CRS of the Raster
21: In (function (name = "AHNelevation", X, Y, AHN = "AHN3", ... :
NAs introduced by coercion
22: In download_wcs_raster(wcsUrl = my_url, name = name_trim, ... :
Cropped WCS raster for 9 already exists and was overwritten.
23: In .local(x, y, ...) : Transforming SpatialPoints to the CRS of the Raster
24: In (function (name = "AHNelevation", X, Y, AHN = "AHN3", ... :
NAs introduced by coercion
25: In download_wcs_raster(wcsUrl = my_url, name = name_trim, ... :
Cropped WCS raster for 10 already exists and was overwritten.
26: In .local(x, y, ...) : Transforming SpatialPoints to the CRS of the Raster
27: In (function (name = "AHNelevation", X, Y, AHN = "AHN3", ... :
NAs introduced by coercion