Skip to content
Prev 44925 / 398528 Next

writing polygons/segments to shapefiles (.shp) or other ArcGIS compatible file

Hi,

Thanks for all those information and the most valuable library you have developed.

If somebody is to develop something to write shapefiles from polygon coordinates within R (most welcome), I don't think that the
attribute file (dbf) will be an important issue. If we have got an output with the index to link the dbf records to each shape of a
shapefile, any text file can be handled in R or Excel to create a dbf. The real issue is the encoding of the *.shp and *.shx  etc..
(and an index file for the dbf)

Most important is to consider that ESRI has stopped developping ArcView and AVENUE. They have moved to ArGIS and Visual Basic. In
this new generation framework, importation is managed with ArcToolBox which, to my knowledge, is very limited considering
importation of text objects (actually I even wonder if one can import something but attribute tables without ArcInfo). For instance,
the way I found to solve the problem I met was to write a programme in R to wrap the polygon coordinates in a text file readable in
GRASS (an opensource GIS), to import it into GRASS and to export the shapefile from GRASS. This shapefile was finally imported to
ArcGIS.  I would not insist on ESRI client policy. I just want to say that the more I know corporates the more I love opensource...

Anyway, there are many things that can be made in R which may deserve not only importation to R, but also exportation to many kinds
of GIS. To write shapefiles from polygon, points or lines created in R would be most useful.

Many thanks for your interest and support,

Patrick Giraudoux


Universit? de Franche-Comt?
Laboratoire de Biologie environnementale
EA3184 usc INRA
F-25030 Besan?on Cedex

t?l.: +33 381 665 745
fax.: +33 381 665 797
http://lbe.univ-fcomte.fr

"Ce n'est pas en am?liorant la bougie que l'on a invent? l'?lectricit?", la recherche fondamentale est indispensable !




----- Original Message ----- 
From: <Benjamin.STABLER at odot.state.or.us>
To: <patrick.giraudoux at univ-fcomte.fr>
Cc: <r-help at stat.math.ethz.ch>; <r-sig-geo at stat.math.ethz.ch>
Sent: Thursday, February 26, 2004 7:11 PM
Subject: Re: [R] writing polygons/segments to shapefiles (.shp) or other ArcGIS compatible file