0

im trying to import a shapefile to R using the function readShapePoly() on package maptools, but it output this error:

Error en .asSpatialPolygonsShapes(Map$Shapes, IDs, proj4string = proj4string, : Not polygon shapes

What can i do?, why it happens?

Thanks!

CRP
  • 405
  • 2
  • 11
  • It´s saying they aren´t polygon shapes. Are you trying to import a country political border? There is an even easier way of doing this using [gadm´s web page](http://gadm.org/country). Try to elaborate more your question, so it´s easier to help you. – marbel Jul 18 '13 at 19:36
  • 2
    Have you tried `maptools::readShapeSpatial`? – rcs Jul 18 '13 at 20:27
  • Maybe your shapefile is lines or points? Have you tried `package:rgdal` and `readOGR`, which will also read the projection data. – Spacedman Jul 18 '13 at 21:02

0 Answers0