[QGIS-it-user] qgis_process -

Totò pigrecoinfinito a gmail.com
Sab 25 Lug 2020 13:07:33 PDT


Ciao, sto facendo alcuni test sul nuovo tool da riga di comando,

uso ubuntu 18.04
qgis 3.14.1
gdal 2.2.3

lanciando il comando randompointsinsidepolygons, dove i parametri sono:

----------------
Arguments
----------------

INPUT: Input layer
        Argument type:  source
        Acceptable values:
                - Path to a vector layer
STRATEGY: Sampling strategy
        Argument type:  enum
        Available values:
                - 0: Points count
                - 1: Points density
        Acceptable values:
                - Number of selected option, e.g. '1'
                - Comma separated list of options, e.g. '1,3'
VALUE: Point count or density
        Argument type:  number
        Acceptable values:
                - A numeric value
MIN_DISTANCE: Minimum distance between points
        Argument type:  distance
        Acceptable values:
                - A numeric value
OUTPUT: Random points
        Argument type:  sink
        Acceptable values:
                - Path for new vector layer

ottengo questo errore:

pigreco a lenovo:/mnt/c/Users/pigre/Desktop/Limiti01012020_g$ qgis_process run
qgis:randompointsinsidepolygons --STRATEGY=0 --VALUE=1000
--INPUT="./ProvCM01012020_g/ProvCM01012020_g_WGS84.shp"
--OUTPUT="./output/random_point_prov.shp"

/usr/lib/python3/dist-packages/qgis/utils.py:743: DeprecationWarning: the
imp module is deprecated in favour of importlib; see the module's
documentation for alternative uses
  mod = _builtin_import(name, globals, locals, fromlist, level)
Problem with SAGA installation: SAGA was not found or is not correctly
installed
----------------
Inputs
----------------

INPUT:  ./ProvCM01012020_g/ProvCM01012020_g_WGS84.shp
OUTPUT: ./output/random_point_prov.shp
STRATEGY:       0
VALUE:  1000

Logged critical: Traceback (most recent call last):
  File
"/usr/share/qgis/python/plugins/processing/algs/qgis/RandomPointsPolygons.py",
line 160, in processAlgorithm
    da.setEllipsoid(context.project().ellipsoid())
AttributeError: 'NoneType' object has no attribute 'ellipsoid'

Traceback (most recent call last):
  File
"/usr/share/qgis/python/plugins/processing/algs/qgis/RandomPointsPolygons.py",
line 160, in processAlgorithm
    da.setEllipsoid(context.project().ellipsoid())
AttributeError: 'NoneType' object has no attribute 'ellipsoid'
ERROR:  Traceback (most recent call last):
  File
"/usr/share/qgis/python/plugins/processing/algs/qgis/RandomPointsPolygons.py",
line 160, in processAlgorithm
    da.setEllipsoid(context.project().ellipsoid())
AttributeError: 'NoneType' object has no attribute 'ellipsoid'

è normale??

saluti



-----
https://pigrecoinfinito.wordpress.com/
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html


Maggiori informazioni sulla lista QGIS-it-user