Dear all,

I need to export a SpatialPolygonsDataFrame to a shapefile to  be read 
by ArcGIS. I have used several packages and functions to do this with 
different results.

1) with maptools, function writePolyShape: The file .prj is not created

2) with spsurvey, function sp2shape: Doesn't work, gives the following 
message "Error: Opening .prj file in C function writeShapeFilePolygon"

3) with rgdal, function writeOGR:

  * with data projected (transforming longlat into utm) or not (longlat:
    the file is read by ArcGIS. However, when I try to open the
    Attributes table, it gives the message that could not load the data
    from the data source, suggests to refresh (which is not possible)
    and opens an empty table, although having the number of columns and
    lines of the data. Looking for the info of each polygon in the map,
    the data are displayed for each individual record. So, the data
    exist but are not acessible from the Attributes Table.
  * To display the Attributes Table, I had to convert the .dbf file in
    .csv and export again as a .dbf.

Is there any better way to make this conversion?

Cristina

-- 
------------------------------------------
Cristina Silva
INRB/L-IPIMAR
Unidade de Recursos Marinhos e Sustentabilidade
Av. de Brasília, 1449-006 Lisboa
Portugal
Tel.: 351 21 3027096
Fax: 351 21 3015948
csilva@ipimar.pt


	[[alternative HTML version deleted]]

