From b92c8df7fc3365b6ade3a9b75f8eb2060421db38 Mon Sep 17 00:00:00 2001 From: Amelia <30877272+amsnyder@users.noreply.github.com> Date: Thu, 29 Dec 2022 14:57:09 -0500 Subject: [PATCH 1/3] add instructions for using dummy spatial file for users of the template who do not have any spatial files in their data release - as raised in issue #7 --- 1_spatial.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/1_spatial.yml b/1_spatial.yml index d4d7260..2930011 100644 --- a/1_spatial.yml +++ b/1_spatial.yml @@ -17,11 +17,16 @@ targets: - geospatial_area_metadata # create target of spatial file + # please note that the extract_feature function (below) must be run to create certain pieces of spatial metadata + # if you are not uploading any spatial data files to your data release, + # you will need to find a shapefile that represents the geographic area or your data release + # upload this file to your pipeline repostiory, read it in with the read_spatial_file function below, and extract_feature will pull the necessary metadata + # you do NOT need to upload this file to ScienceBase with the sf_to_zip function if it was not a planned part of your data release geospatial_area_WG84: command: read_spatial_file(path = 'in_data/example_data/drb_shp/physiographic_regions_DRB.shp', selected_crs = 4326) - # grab metadata - geospatial_area_metadata: + # grab metadata from spatial file +geospatial_area_metadata: command: extract_feature(geospatial_area_WG84) # Output geospatial area shp From 9b6a18a234b047d09451a4c6b1a5a6dfbfa3a4ae Mon Sep 17 00:00:00 2001 From: Amelia <30877272+amsnyder@users.noreply.github.com> Date: Fri, 30 Dec 2022 09:03:30 -0500 Subject: [PATCH 2/3] Update 1_spatial.yml Co-authored-by: Margaux Sleckman <36547359+msleckman@users.noreply.github.com> --- 1_spatial.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1_spatial.yml b/1_spatial.yml index 2930011..b330716 100644 --- a/1_spatial.yml +++ b/1_spatial.yml @@ -17,7 +17,7 @@ targets: - geospatial_area_metadata # create target of spatial file - # please note that the extract_feature function (below) must be run to create certain pieces of spatial metadata + # please note that the extract_feature function (below) from the meddle package must be run to create certain pieces of spatial metadata # if you are not uploading any spatial data files to your data release, # you will need to find a shapefile that represents the geographic area or your data release # upload this file to your pipeline repostiory, read it in with the read_spatial_file function below, and extract_feature will pull the necessary metadata From a1983cc33df745471e3a7267d368716be93f3db4 Mon Sep 17 00:00:00 2001 From: Amelia <30877272+amsnyder@users.noreply.github.com> Date: Fri, 30 Dec 2022 09:04:08 -0500 Subject: [PATCH 3/3] Update 1_spatial.yml Co-authored-by: Margaux Sleckman <36547359+msleckman@users.noreply.github.com> --- 1_spatial.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1_spatial.yml b/1_spatial.yml index b330716..e2b888f 100644 --- a/1_spatial.yml +++ b/1_spatial.yml @@ -27,7 +27,7 @@ targets: # grab metadata from spatial file geospatial_area_metadata: - command: extract_feature(geospatial_area_WG84) + command: meddle::extract_feature(geospatial_area_WG84) # Output geospatial area shp out_data/XX_geospatial_area_WG84.zip: