NEWS | R Documentation |
merge the evolution branch from rsbivand/sp@evolution
remove S-compatibility DOUBLE_* macros; https://github.com/edzer/sp/pull/115
add CRS cache and update CRS print method; https://github.com/edzer/sp/pull/103
Adding a wkt() method and muting internal warnings; https://github.com/edzer/sp/pull/76
warn on NULL projargs in CRS(); https://github.com/edzer/sp/pull/74
prepare for new (>= 1.5.1) rgdal, which creates and listens to a comments() field of a CRS object carrying a WKT representation of a CRS rather than the proj4string; @rsb, https://github.com/edzer/sp/pull/67 and https://github.com/edzer/sp/pull/69 ; for more info see e.g. https://github.com/edzer/sp/issues/68 and https://github.com/r-spatial/discuss/issues/28
fix length > 1 in coercion to logical error; #54, #60
add is.na
method for CRS
objects
address error in spplot, leading to display of "Error using packet 1: mixture of missing and non missing values for cex"
address warning from Tomas Kalibera's static code checking
fix bug in duplicating objects in C; see https://github.com/edzer/sp/commit/8f8a66090e47cf0f6bbf5549376c0bc07b6c29df
fix all long/lat-based great circle distance functions; see https://github.com/edzer/sp/commit/d8374ff7efc6735cba9a054748c602bed0672f23 and https://stat.ethz.ch/pipermail/r-sig-geo/2016-December/025201.html
clarified cellcentre.offset documentation, see https://github.com/edzer/sp/issues/18
update sp gallery, see https://edzer.github.io/sp/
move methods
from Imports: to Depends:
improve base plot methods for SpatialGridDataFrame
and SpatialPixelsDataFrame
objects, see https://r-spatial.org/r/2016/03/08/plotting-spatial-grids.html for examples
improve the graticule labels
methods, see ?gridlines
fix hole assignment for triangles, reported in https://stat.ethz.ch/pipermail/r-sig-geo/2016-March/024214.html
as.SpatialPolygons.GridTopology
drops rownames of coordinates generated, but keeps coordinate (column) names from the cellcentre.offset
slot of the grid
improve examples in over
vignette.
method 'row.names' for 'SpatialPoints' makes unique row names, or drops them.
add a labels
method for gridlines
, drawing labels under varying angle (see gridlines
example)
add coercion (“as” methods) from deldir
to SpatialLines
and SpatialPolygons
migrate sp code base to github
correct [
subsetting when i
is all FALSE
; report by Francois Rousseau.
add geometry<-
method for Spatial
, wrapping addAttrToGeom
addressing rbind
and docs issues raised by Kent Johnson on r-sig-geo, 5 Dec 2015
get 'row.names' of coords correctly if object is a SpatialPoints
add non-default coercion SpatialPolygonsDataFrame
to SpatialPolygons
add comment to SpatialPolygons
coerced from SpatialGrid
or SpatialPixels
coordinates
method for SpatiaLines
now retains rownames
spsample.Spatial
does no longer generate objects with rownames.
CRS
gains argument doCheckCRSArgs
, to allow suppression of the default checking
coercion from Lines
to SpatialPoints
now drops (duplicate) rownames
add coercion from SpatialLines*
to SpatialMultiPoints*
improve printing of SpatialMultiPoint*
objects
aggregate
now passes minDimension
to rgeos
; explanation of
aggregate
extended in its vignette
depend on rgeos
version 0.3-13
merge
now accepts "row.names"
or 0
for arguments by.x
or by.y
, for compatibility with base::merge
.
aggregate
now accepts parameter minDimension
, introduced for over
in 1.2-0, and passes it on to over
to control when features intersect; see the documentation of over
and its vignette for details.
SpatialMultiPoints
objects with zero features can now exist.
Support for SpatialMultiPoints
and
SpatialMultiPointsDataFrame
objects. Where SpatialPoints
are set of points, SpatialMultiPoints
are sets of point sets.
SpatialPointsDataFrame
objects bind points to attribute values,
SpatialMultiPointsDataFrame
bind point sets to attribute values.
Methods supported are subsetting ([
),
plot
, spplot
, over
, and coercion to
SpatialPoints
or SpatialPointsDataFrame
. Functions in
rgeos support this feature class. See also demo(mp)
.
creating SpatialPoints
objects with duplicated coordinate
rownames now gives a warning, which will become an error in the future.
Support for Google Earth or OpenStreetMap background maps in
sp::plot
and spplot
. Maps returned by
function GetMap
in package RgoogleMaps
function get_map
in package ggmap
are now understood by plotting functions in sp. In particular,
sp::plot
now has an argument bgMap
, spplot
now has panel functions panel.RgoogleMaps
and panel.ggmap
;
See demo(webmap)
for examples.
As these maps assume a web mercator projection, sp::plot
issues a warning
if the object to be plotted have a CRS that does not contain "+init=epsg:3857"
over
methods that are taken care of by rgeos (anything
involving SpatialLines
, or SpatialPolygons
-SpatialPolygons
)
gained an argument minDimension
, which causes an ordering of returned
features by dimension of intersection, and the ability to select a minimun
dimension (e.g. only area-overlap); this uses gRelate
, and has a
computational cost. Documentation found in vignette("over")
.