Skip to content

Commit

Permalink
Made calls to sp::coordinates and sp::SpatialPoints in canvec.qplot e…
Browse files Browse the repository at this point in the history
…xplicit; added sp to Depends: field.
  • Loading branch information
paleolimbot committed Oct 3, 2015
1 parent c380d5c commit 1286641
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Description: Provides an interface to the National Topographic System (NTS), whi
to create Canadian topographic maps, are two such items that are useful
in creating vector-based maps for locations across Canada.
License: GPL-2
Depends: R (>= 2.10), rgdal
Depends: R (>= 2.10), rgdal, sp
Imports: rjson, digest
URL: https://github.com/paleolimbot/rcanvec
BugReports: http://github.com/paleolimbot/rcanvec
Expand Down
4 changes: 2 additions & 2 deletions R/canvec.qplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ canvec.qplot <- function(ntsid=NULL, bbox=NULL,
} else {
bbox1 = nts.bbox(ntsid)
}
coords <- coordinates(t(bbox1))
spoints = SpatialPoints(coords, proj4string = CRS("+proj=longlat +ellps=GRS80 +no_defs"))
coords <- sp::coordinates(t(bbox1))
spoints = sp::SpatialPoints(coords, proj4string = CRS("+proj=longlat +ellps=GRS80 +no_defs"))

plotargs <- list(...)
if(is.null(bbox)) {
Expand Down

0 comments on commit 1286641

Please sign in to comment.