[R-sig-Geo] writeOGR(GeoJSON) to string instead of file

Philip Greenwood philip.greenwood at unimelb.edu.au
Wed Mar 6 00:20:18 CET 2013


Hi all,

This is a re-post from a few weeks ago.

I'm using writeOGR{rgdal} to a create GeoJSON temporary file then reading the file and passing as a string in Java. It would be really nice to avoid writing the temporary file, and have writeOGR return a GeoJSON string.

Is this possible?

My project requires passing spatial data from R to Java, and then storing data as GeoJSON. I'm using RServe to interface between R and Java. 

Thanks.

Philip Greenwood

Geospatial and Analytics eEnabler 
Australian Urban Research Infrastructure Network (AURIN)
308 Doug McDonell Building, University of Melbourne
Tel: +61-(0)3-9035-8549
philip.greenwood at unimelb.edu.au



More information about the R-sig-Geo mailing list