Description Usage Arguments Value See Also Examples
GetPoly
takes a dataframe of points containing at least
two fields of latitude and longitude, overlays the points with a
shapefile, and adds the attribute as a field to the input dataframe.
1 2 3 4 |
points |
A dataframe of the points. The dataframe should contain at least two fields: "latitude" and "longitude". |
polygon |
SpatialPolygonDataFrame |
proj4 |
Character: Projection to be used for points's dataframe. |
polygonAddress |
Characetr: Address to where polygonShapeFile is located. |
polygonShapeFile |
Character: Name of a polygon shapefile. |
join |
Character: Attribute from the polygon shapefile which will be added as a column to points dataframe |
parallel |
Logical (DEFAULT= FALSE) |
Dataframe with an extra column containing the attribute for each point.
Other geospatial: ExportGeogrid
,
GetGeogridIndex
,
GetGeogridSpatialInfo
,
GetProj
, GetRfc
,
GetTimeZone
, PolyToRaster
1 2 3 4 5 | ## Not run:
sg<-GetPoly(sg, polygonAddress= "/glade/scratch/arezoo/QPF_verification_rwrfhydro/gis/",
polygonShapeFile= "huc6", join="HUC6")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.