: +init=epsg:32631 +proj=utm +zone=31 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0īut throwns a warning since rst_prj does not have longitude/latitude coordinates. (DATA) : x cell sizes are not regular > Any help would be appreciated. From the latter, you can then easily retrieve the area of the sub-polygons. Next message: R creat raster from XYZ Messages sorted by: On Wed, Jun 26. To get area information in meters, I would recommend projecting your raster (which is obviously located somewhere in France) to EPSG:32631 (UTM zone 31N) before transforming it to 'SpatialPolygons*'. Would there be any way to remedy this issue Any help would be appreciated. I tend to use gArea from rgeos for such kind of operations since I'm typically interested in a single value rather than an entire raster layer with area information. class : RasterLayer dimensions : 40, 40, 1600 (nrow, ncol, ncell) resolution : 0.0001106628, 0.0001106628 (x, y) extent : 3.061558, 3.065984, 42.5269, 42.53132 (xmin, xmax, ymin, ymax) coord. Error in rasterFromXYZ (climdf) : x cell sizes are not regular It seems as if, from that the coordinates must be evenly spaced for this function to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |