Coder Social home page Coder Social logo

Comments (5)

jannes-m avatar jannes-m commented on August 18, 2024

Jakub, thanks for pointing this out! I will have to look deeper into this. And yes, I guess, it seems as if it's the same problem as #74. Under Windows, one receives the expected result, though one has to use OUTPUT = file.path(tempdir(), "out.shp"), otherwise strange error messages occur...

Can you please run:

 qgis_session_info()

I have tried your code under Linux as well with QGIS 2.14.17, and here it works, i.e. nrow(points_in_nc2) yields 10.
Nevertheless, issue #74 remains. Hence, I need to write a python snippet, and submit it stack overflow.

from rqgis.

Nowosad avatar Nowosad commented on August 18, 2024
library(RQGIS)     
qgis_session_info()
#> Assuming that your root path is '/usr'!
#> Warning in py_run_string_impl(code, local, convert): GDAL Message 4: Failed
#> to open /usr/share/qgis/python/plugins/processing/tests/data/points.shp,
#> Permission denied.
#> Error in file(con, "r"): invalid 'description' argument

It looks that there is some problem. I have no idea how to fix it yet.

from rqgis.

jannes-m avatar jannes-m commented on August 18, 2024

Does it make any difference to run qgis_session_info() a second time? Or restarting R?

If this does not work, start the terminal, run sudo rstudio or sudo R, and then call qgis_session_info(). This should resolve the permission issue.

from rqgis.

Nowosad avatar Nowosad commented on August 18, 2024
$qgis_version
[1] "2.18.10"

$gdal
[1] "2.1.3"

$grass6
character(0)

$grass7
[1] "7.2.1"

$saga
NULL

$supported_saga_versions
[1] "2.3.0" "2.3.1"

from rqgis.

jannes-m avatar jannes-m commented on August 18, 2024

Perfect! Can you please update to 2.18.11 or 2.18.12, and check if your initial problem still exists. When I used 2.18.11 under Linux, the expected output appeared, i.e. in the first run 100 points and in the second run just 10.

from rqgis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.