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

Commit

Permalink
Merge pull request #8 from USGS-R/spatial_instructions
Browse files Browse the repository at this point in the history
add instructions for using dummy spatial file
  • Loading branch information
amsnyder authored Dec 30, 2022
2 parents 5637827 + a1983cc commit 0989c36
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions 1_spatial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@ targets:
- geospatial_area_metadata

# create target of spatial file
# 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
# 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:
command: extract_feature(geospatial_area_WG84)
# grab metadata from spatial file
geospatial_area_metadata:
command: meddle::extract_feature(geospatial_area_WG84)

# Output geospatial area shp
out_data/XX_geospatial_area_WG84.zip:
Expand Down

0 comments on commit 0989c36

Please sign in to comment.