geoknifewith a custom webgeom and/or webdata
This vignette shows how to use a custom Web Feature Service with
geoknife. In this case, we are using a WFS from ScienceBase. The url used for the WFS can be found in the “Spatial Services” section of the sciencebase item. If the WFS url you have has parameters included, remove them when passing them to
For advanced users, it may be interesting to see what
geoknife is doing behind the scences. Switch
verbose=TRUE to see the web service request being made when you execute this vignette.
Now we can select a WFS geometry layer (
geom) and query for its attributes.
Now we can select an attribute and query for the values of that attribute. For this demo, we won’t set the values, but rather just move forward using all polygons in this geom
Now we’ll set up our webdata with an OPeNDAP service as its url. Note that this can be any OPeNDAP service compatible with
geoknife and the Geo Data Portal. What datasets are compatible is beyond the scope of this vignette, but is documented here. The OPeNDAP dataset used here is from the main USGS THREDDS archive and is one included in
geoknife but many other OPeNDAP datasets could be used by entering their OPeNDAP service base URL in the same way.
Note that if you don’t know the valid variables and times for an OPeNDAP URL, you can use
query to find them like this.
Now we can execute the
geoknife job for the specified fabric and stencil. Note that we set
wait = TRUE here so we can just wait for the result of the process.