Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
add instructions for using dummy spatial file
Browse files Browse the repository at this point in the history
for users of the template who do not have any spatial files in their data release - as raised in issue #7
  • Loading branch information
amsnyder authored Dec 29, 2022
1 parent 403e2a8 commit b92c8df
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions 1_spatial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b92c8df

Please sign in to comment.