<div dir="ltr"><div><div><div><div><div>I am hoping to revitalise the QGIS Network API plugin project that I mentored for GSoC last year - it needs porting to QGIS3 and probably some more documentation.<br><br></div>For anyone who doesn't know it, it makes QGIS expose a network API service so that clients can call defined QGIS functions. So using the R client API you can get data from live QGIS layers, or send R spatial objects to QGIS as new layers.<br><br></div>code: <a href="https://gitlab.com/qgisapi">https://gitlab.com/qgisapi</a><br></div>docs: <a href="https://qgisapi.gitlab.io/">https://qgisapi.gitlab.io/</a><br></div>bugs: plenty<br><br></div>Barry<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 27, 2018 at 1:09 AM, Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span> wrote:<br><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>
<span class=""><<a href="mailto:b.rowlingson@lancaster.ac.uk">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>
</span>Don't undersell yourself... these would be very valuable contributions!<br>
<span class=""><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>
</span>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>
<span class="HOEnZb"><font color="#888888"><br>
Nyall<br>
</font></span><div class="HOEnZb"><div class="h5"><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">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>
>> ______________________________<wbr>_________________<br>
>> QGIS-Developer mailing list<br>
>> <a href="mailto:QGIS-Developer@lists.osgeo.org">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/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
>> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org">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/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
</div></div></blockquote></div><br></div>