[Rspatial-devel] empty Spatial* objects
Edzer Pebesma
edzer.pebesma at uni-muenster.de
Mon Feb 23 17:40:14 CET 2015
There was this Q on SO:
http://stackoverflow.com/questions/28527663/get-an-empty-spatialpolygonsdataframe-via-subset
asking for the possibility to create Spatial* objects without features,
like a data.frame with 0 rows.
For SpatialPointsDataFrame, these are currently allowed, e.g. by
meuse[F,]
although validObject(meuse[F,]) returns FALSE.
The reason why this currently does not work for SpatialPolygonsDataFrame
seems a programming error: it's simply overlooked.
Is there a strong reason not to allow such objects? Are there
suggestions what to do with @bbox for such objects?
--
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster,
Heisenbergstraße 2, 48149 Münster, Germany; +49 251 83 33081
Journal of Statistical Software: http://www.jstatsoft.org/
Computers & Geosciences: http://elsevier.com/locate/cageo/
Spatial Statistics Society http://www.spatialstatistics.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.r-forge.r-project.org/pipermail/rspatial-devel/attachments/20150223/9a982c8a/attachment.sig>
More information about the Rspatial-devel
mailing list