Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. > p_mb
  2. Simple feature collection with 52 features and 0 fields (with 9 geometries empty)
  3. geometry type: GEOMETRY
  4. dimension: XY
  5. bbox: xmin: 585001.4 ymin: 211001.9 xmax: 609998.1 ymax: 236998.6
  6. epsg (SRID): NA
  7. proj4string: NA
  8. First 10 features:
  9. geometry
  10. 1 POLYGON ((591051.4 211855, ...
  11. 2 POLYGON EMPTY
  12. 3 POLYGON ((588206.4 212570, ...
  13. 4 MULTIPOLYGON (((585004.6 21...
  14. 5 POLYGON ((600614.5 216112.9...
  15. 6 POLYGON ((603033.8 215125.2...
  16. 7 MULTIPOLYGON (((608168.4 21...
  17. 8 POLYGON ((600009.4 212984, ...
  18. 9 POLYGON ((603203.4 217336, ...
  19. 10 POLYGON ((585519.4 217546, ...
  20.  
  21. > p_pol <- sf::st_cast(p_mb0, "POLYGON")
  22. There were 23 warnings (use warnings() to see them)
  23. > warnings()
  24. 1: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  25. 2: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  26. 3: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  27. 4: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  28. 5: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  29. 6: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  30. 7: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  31. 8: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  32. 9: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  33. 10: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  34. 11: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  35. 12: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  36. 13: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  37. 14: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  38. 15: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  39. 16: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  40. 17: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  41. 18: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  42. 19: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  43. 20: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  44. 21: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  45. 22: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  46. 23: In st_cast.MULTIPOLYGON(X[[i]], ...) : polygon from first part only
  47.  
  48. > spl_mbuf <- as(p_pol, "Spatial")
  49. Error: length(srl) > 0 is not TRUE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement