<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'DejaVu Sans Mono'; font-size:12px}</style>
</head>
<body><div>I'm sure sf is the future for spatial objects. There are not too many examples and resources to be found on the web still, but I ported one of my (poor scripts) from sp to sf. It's now maybe 25% of code and maybe 10 times faster.</div><div>Though there are numerous packages with dependencies for sp, which will not change for a long time.</div><div>I have to admit, I never managed to get R code work properly in QGIS (documentation?) but stuck to R studio and just did the post-processing within QGIS. Having the ability to work properly within QGIS would maybe boost the efficiency to a new level.</div><div><br></div><div><br></div><div>Am 02.05.2018, 07:57 Uhr, schrieb Howard Frederick <simbamangu@gmail.com>:<br></div><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr">Having <span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">an R console within QGIS would be incredibly useful! </span>I've been copying and pasting between R and QGIS (keeping the WKT field correctly formatted) using read.table, which works well, too. W.r.t. sp vs. sf, seems like sf is the future for R spatial objects? Any thoughts on this?<div><br></div><div>Crowdfunding definitely seems like the way forward - which platforms have been used for this kind of project in the past? </div><br><div class="gmail_quote"><div dir="ltr">On Fri, 27 Apr 2018 at 03:10, Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 26 April 2018 at 22:10, Barry Rowlingson<br>
<<a href="mailto:b.rowlingson@lancaster.ac.uk" target="_blank">b.rowlingson@lancaster.ac.uk</a>> wrote:<br>
> As a long-time R spatial developer and QGIS user I'll be glad to help out -<br>
> but time-poor at work for now. "Helping out" may be more  like "making<br>
> unreasonable suggestions" and "finding annoying bugs".<br>
<br>
Don't undersell yourself... these would be very valuable contributions!<br>
<br>
> For example, can we find a more efficient way to transfer data from QGIS to<br>
> R? Can the new `sf` packages in R work with the data straight out of QGIS'<br>
> memory? I *think* the `sf` package stores vector data in GDALs native C++<br>
> objects, and if QGIS is doing that too then we *might* be able to get access<br>
> from QGIS and R if we write the R plugin as a C/C++ module that dynamically<br>
> links with the shareable libR.so.<br>
<br>
I've (very roughly) looked into this, and I also believe it should be<br>
possible to directly create R data frames from QGIS layers. Then we'd<br>
just need to add a "R console" to QGIS, and boom! Awesome spatial<br>
statistical analysis tool directly within QGIS!<br>
<br>
Nyall<br>
<br>
><br>
> The current R processing plugin  converts QGIS layers to shapefiles, reads<br>
> them into a new R process. On occasion I've hit problems with shapefile<br>
> limitations (field name length, usually) that make my scripts fail. Maybe it<br>
> should go via geopackage instead.<br>
><br>
> Should it create `sp` objects on the R side or `sf` objects? This could be<br>
> controllable in the R processing script headers, so it can be set on a<br>
> per-script basis.<br>
><br>
> I'll stop now...<br>
><br>
> Barry<br>
><br>
><br>
><br>
><br>
><br>
><br>
> On Thu, Apr 26, 2018 at 9:42 AM, Aurelio Pires <<a href="mailto:anvpires@gmail.com" target="_blank">anvpires@gmail.com</a>> wrote:<br>
>><br>
>> +1<br>
>><br>
>> Thanks,<br>
>><br>
>><br>
>> On 2018-04-26 07:40, Paolo Cavallini wrote:<br>
>> > Hi all,<br>
>> ><br>
>> > Il 26/04/2018 05:08, Nyall Dawson ha scritto:<br>
>> >> I'm VERY interested in seeing this resurrected. I'm available to<br>
>> >> mentor this task if someone else wants to take ownership of the plugin<br>
>> >> and do the port, OR alternatively I'd be happy for North Road to do<br>
>> >> the porting ourselves and take over maintenance if someone can fund<br>
>> >> this work.<br>
>> > that's good news. So starting a crowdfunding campaign seems a good way<br>
>> > to go, unless there is a bigger sponsor; do you agree?<br>
>> > All the best, and thanks.<br>
>> ><br>
>><br>
>> _______________________________________________<br>
>> QGIS-Developer mailing list<br>
>> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
>> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div></div>
</blockquote><br><br><br><div id="M2Signature"><div>-- </div><div>Bernd Vogelgesang<br>Siedlerstraße 2<br>91083 Baiersdorf/Igelsdorf<br>Tel: 09133-825374</div></div></body></html>