Collection of various spatial functions


[Up] [Top]

Documentation for package ‘taRifx.geo’ version 1.0.6

Help Pages

as.SpatialPolygons.bbox Convert a bounding box to a SpatialPolygons object Bounding box is first created (in lat/lon) then projected if specified
box Entirely fabricated spatial data for taRifx.geo examples
cleanLatLon Standardize latitude/longitude coordinates Cleans up character representations of lat/lon coordinates
clipToExtent Restrict to extent of a polygon Currently does the sloppy thing and returns any object that has any area inside the extent polygon
closestPoint Find closest point to a given point's coordinates (closestPoint).
countPointsInPolys Count points within a polygon
cumDist Calculate cumulative distance along a matrix of x,y coordinates
geocode Geocode character vectors using online services
geocode.data.frame Geocode character vectors using online services
geocode.default Geocode character vectors using online services
georoute Find driving routes using online services
georoute.default Find driving routes using online services
gGeoCode Geocode using Google Maps API (deprecated) This has been generalized to the taRifx::geocode() function
IDs Get sp feature IDs
IDs.default Get sp feature IDs
IDs.SpatialPolygonsDataFrame Get sp feature IDs
IDs<- Get sp feature IDs
IDs<-.SpatialPolygonsDataFrame Get sp feature IDs
interpolateAndApplyWithinSpatial Generic function to interpolate from a polygon to points lying inside it This function was designed to solve the following problem. Suppose you have counts of the number of entities inside a polygon (N). To compute distances to a point, you might take the distance from the polygon centroid. But this is too simplistic-it discards the positional uncertainty inherent in not knowing the exact location of each entity which makes up the count. Instead, we repeatedly sample N points from the census block group centroids which lie within our polygon, weight them by their population, and compute distances from there.
interpolatePathpoints Interpolate points along a path
interpolatePolyPoint Interpolate points from polygon SPDF This function returns (weighted) sample points in fine for every polygon in crude. Thus running it repeatedly gives you useful variation that reflects the interpolation uncertainty.
interpolateWithinSingleSpatial Interpolate and sample within a single polygon (Called by interpolateWithinSpatial)
lineDist Line distance in SpatialLinesDataFrame Stores length of each line segment in a SpatialLinesDataFrame's data.frame
merge Merge a SpatialPolygonsDataFrame with a data.frame
merge-method Merge a SpatialPolygonsDataFrame with a data.frame
overlayPolyPoly Split polygons into contiguous parts Overlay, in the sense described here: http://resources.esri.com/help/9.3/ArcGISengine/java/Gp_ToolRef/geoprocessing/overlay_analysis.htm
pointDistPairwise Create all pairwise distances of points from a SpatialPointsDataFrame
pointgrid2SpatialPolygons Take a grid of regularly spaced points (such as those output by the centroids of Arc's fishnet function) and convert it to various grid data types
pointSP Entirely fabricated spatial data for taRifx.geo examples
pointSP2 Entirely fabricated spatial data for taRifx.geo examples
polySP Entirely fabricated spatial data for taRifx.geo examples
rbind.SpatialPolygonsDataFrame rbind SpatialPolygonsDataFrames together, fixing IDs if duplicated
reshapeSLDF Reshape a spatialLinesDataFrame into a series of points with associated information
simpledist Cartesian distance between points
SLDFtoLine Convert a SpatialLinesDataFrame to a single line matrix with associated segment information
smoothLines Smooth the line segments in a SpatialLinesDataFrame
SPDFareas Return areas of polygons in a SpatialPolygonsDataFrame
SPDFtoPointsDF Convert SpatialPointsDataFrame to a regular data.frame with the coordinates as "x" and "y"
Srs1 Entirely fabricated spatial data for taRifx.geo examples
Srs2 Entirely fabricated spatial data for taRifx.geo examples
Srs3 Entirely fabricated spatial data for taRifx.geo examples
Srs4 Entirely fabricated spatial data for taRifx.geo examples
states U.S. State names, abbreviations, and FIPS codes
subset.SpatialPointsDataFrame Subset SpatialPolygonsDataFrame or SpatialPointsDataFrame
subset.SpatialPolygonsDataFrame Subset SpatialPolygonsDataFrame or SpatialPointsDataFrame
subsetSPDF Subset SpatialPolygonsDataFrame or SpatialPointsDataFrame