[R-sig-Geo] writeOGR to GPX file: empty table

Roger Bivand Roger.Bivand at nhh.no
Mon May 17 14:57:22 CEST 2010


On Mon, 17 May 2010, Agustin Lobo wrote:

>
> Sorry about not having read the doc, I'm probably too used to import shape
> files
> with readOGR() and did not realize that GPX files would have different
> options.
>
> test <-
> readOGR(dsn="/media/TRANSCEND/MONTSENY2008/MONTSENY_GEODATA/FloraExotica2009/AilantMSY09R.gpx",layer="waypoints")
>
> works fine and the table is correct. I think that
> dataset_options="GPX_USE_EXTENSIONS=YES"
> at writing did the job.
>
> So no problem at all with writing/reading GPX files in R through rgdal
> I would add a line to the help page reminding the user that coordinates must
> be geographic in GPX
> files (thus the user must eventually unproject before writeOGR() ).

OK, will do.

Roger

>
> Thanks!
>
> Agus
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list