[R-sig-Geo] Fwd: Re: Coverting GPS Points in Text File to Spatial Lines

Roger Bivand Roger.Bivand at nhh.no
Mon Feb 6 09:38:05 CET 2012


On Mon, 6 Feb 2012, Tomislav Hengl wrote:

>
> Hi Armold,
>
> In what format is your GPS data? I highly suggest using the GPX protocol as 
> this is the lingua franca for GPS data.
>
> I recently made a function that reads GPS data and converts into a data
> frame (via the XML package):

Or use the GPX OGR driver in rgdal through

readOGR(dsn="myfile.gpx", layer="tracks")

or a different layer definition - see ?readOGR.

Roger

>
> http://plotkml.r-forge.r-project.org/readGPX.html
>
> *this is still rather experimental but you can look at the actual steps
> via R-forge:
>
> https://r-forge.r-project.org/scm/viewvc.php/pkg/R/readGPX.R?view=markup&root=plotkml
>
> HTH,
>
> T. Hengl
> http://www.wewur.wur.nl/popups/vcard.aspx?id=HENGL001
>
> On 5-2-2012 16:46, Arnold Salvacion wrote:
>> Dear All,
>> 
>> I want to convert GPS traces from a text file to a line (spatial line). 
>> Does anybody have an idea how to implement this in R?
>> 
>> Thanks in advance!
>> 
>> Best regards,
>> 
>> Armold
>> 	[[alternative HTML version deleted]]
>> 
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
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