Skip to content
Prev 24845 / 29559 Next

rpostgis announcement

Thank you Edzer for the feedback!

We have been watching sfr, and I really look forward to its completion!

Now to answer your question, the choice of using WKT (and WKB from package
'wkb' when possible on write, for better performance) was initially driven
by the fact that Windows binaries for rgdal are not compiled with
PostgreSQL/PostGIS support, which is a huge problem. Having to deal with a
class of students (mostly using Windows) trying to make it work was just a
big mess! :)

In addition, on read, it also allows to subquery the data with any clause
(WHERE, ORDER BY, LIMIT, etc.), which was still not possible with rgdal
last time I checked (admittedly a few months ago).

All in all, rgeos::read/writeWKT (and additionally wkb::read/writeWKB)
gives us the flexibility that we were looking for. Note that we didn't
check how efficient it was in comparison with rgdal (in terms of performance).

As a side note, having EWKB/EWKT standardized and usable in R (for instance
through sfr) would be a real plus! In our case, dealing with projection
information (SRID) was really not straightforward...

Best,
Mathieu.


Le 29/08/2016 16:19, Edzer Pebesma a ?crit :