The data source to assign the hole status correctly, and use the simpleįunction createSPComment to add such comments to each Polygons member of In order to avoid introducing incompatibleĬhanges into the class definition of Polygons objects, a comment has beenĪdded as a single character string to each such object. Specification, in which each hole (interior ring) must be associated with The rgeos package, an interface to Geometry Engine – Open Source (GEOS), uses this The simple features specification of the Open Geospatial Consortium. The class definitions used for polygons in sp do not accord with those of Thanks to Patrick Giraudoux for spotting the bug. Until, version 0.9-61, the area of this converted object was erroneously left at its hole value of zero. In Polygons, if all of the member Polygon objects are holes, the largest by area will be converted to island status. In Polygon, if the hole argument is not given, the status of the polygon as a hole or an island will be taken from the ring direction, with clockwise meaning island, and counter-clockwise meaning hole. The column in data with Polygons IDs to match Re-order the data frame rows if necessary. Member Polygons ID slot values with data frame row names, and Logical: (default TRUE): match SpatialPolygons Object of class ame the number of rows in data should equal the number of Polygons-class objects in Sr Integer vector plotting order if missing in reverse order of Polygons area List with objects of class Polygons-class Logical value for setting polygon as hole or not if the hole argument is not given, the status of the polygon as a hole or an island will be taken from the ring direction, with clockwise meaning island, and counter-clockwise meaning holeĬharacter vector of length one with identifier SpatialPolygonsDataFrame(Sr, data, match.ID = TRUE)Ģ-column numeric matrix with coordinates first point (row) shouldĮqual last coordinates (row) if the hole argument is not given, the status of the polygon as a hole or an island will be taken from the ring direction, with clockwise meaning island, and counter-clockwise meaning hole SpatialPolygons(Srl, pO, proj4string=CRS(as.character(NA))) Create objects of class SpatialPolygons or SpatialPolygonsDataFrame DescriptionĬreate objects of class SpatialPolygons or SpatialPolygonsDataFrame from
0 Comments
Leave a Reply. |