[Qgis-user] GRASS7 r.water.outlet returns error in QGIS 2.14.2

Guillaume.Katarn guillaume.katarn at gmail.com
Sun May 8 12:22:10 PDT 2016


Indeed it seems that the problem comes from a mixup between GRASS 6.4 and
GRASS 7 in the Processing setup according to the requested inputs. Do you
know a way to correct it or its depends on an update from the developers?

I will try to do it directly in GRASS as you recommended.


Thank you for you answer.


2016-05-08 11:37 GMT+02:00 Micha Silver [via OSGeo.org] <
ml-node+s1560n5265193h52 at n6.nabble.com>:

>
> I can see two problems in the error output  below:
>
> On 07/05/2016 12:38, Guillaume.Katarn wrote:
> ------ Original Message ------
> Subject: [Qgis-user] GRASS7 r.water.outlet returns error in QGIS 2.14.2
> Date: Sat, 7 May 2016 02:38:08 -0700 (PDT)
> To: Qgis-user
> From: Guillaume Katarn
>
> Hello everyone,
>
> I am a new user of GIS software and I am currently facing an issue with the
> GRASS7 tool r.water.outlet. I precise that I am beginning with both Linux
> and GIS. I use Ubuntu 14.04 with QGIS 2.14.2 and GRASS7.0.3.
>
> I downloaded and installed the software by following the instructions of the
> official QGIS webpage:
>
> www.qgis.org/en/site/forusers/alldownloads.html
>
> I use GRASS7 r.watershed to create a "Drainage" raster that I use as an
> input for r.water.outlet. The second input is coordinate of vectorial points
> I want to delineate my basins (it could be even better if I could use
> several points to do so because I need 5 different basins).
>
> This is my r.water.outlet interface:
> <http://osgeo-org.1560.x6.nabble.com/file/n5265113/fen%C3%AAtre_remplie.png> <http://osgeo-org.1560.x6.nabble.com/file/n5265113/fen%C3%AAtre_remplie.png>
>
> First things I noticed: I can't enter decimal numbers, so I lose accuracy
> regarding to my points, and the interface is different from the one in the
> second image for the tool r.water.outlet regarding the inputs for my version
> of QGIS.
> <http://osgeo-org.1560.x6.nabble.com/file/n5265113/g.png> <http://osgeo-org.1560.x6.nabble.com/file/n5265113/g.png>
>
> Then when I run the process (In my QGIS 2.14.2, the processing plugin
> version is 2.12.2), I obtain the log:
>
> [code]Démarrage de l'algorithme r.water.outlet - Watershed basin creation
> program. ... g.proj -c proj4="+proj=lcc +lat_1=44.1 +lat_0=44.1
> +lon_0=2.337229166666667 +k_0=0.999877499 +x_0=600000 +y_0=3200000
> +a=6378249.2 +b=6356514.999904194 +units=m +no_defs" r.external
> input="/home/kyle/Bureau/ERM/Data_ERM/GISProjectFolder/Rasters/Drainage_Direction_Watershed.tif"
> band=1 output=tmp1462467882073 --overwrite -o g.region -a n=1959000.0
> s=1843500.0 e=1038600.0 w=923100.0 res=300 r.water.outlet
> input=tmp1462467882073 easting="989927" northing="1891138"
> output=output881924edb38d42189f35bcf5166a0da3 --overwrite g.region
> raster=output881924edb38d42189f35bcf5166a0da3 r.out.gdal -c
> createopt="TFW=YES,COMPRESS=LZW"
> input=output881924edb38d42189f35bcf5166a0da3
> output="/home/kyle/Bureau/ERM/Data_ERM/GISProjectFolder/test_water_outlet.tif"
> Démarrage du SIG GRASS ... Exécution de
> '/home/kyle/.qgis2//processing/grass7_batch_job.sh' ... ATTENTION: Datum non
> reconnu par GRASS et aucuns paramètres trouvés Default region was updated
> to the new projection, but if you have multiple mapsets g.region -d should
> be run in each to update the region from the default Projection information
> updated ATTENTION: Datum non reconnu par GRASS et aucuns paramètres
> trouvés ATTENTION: Over-riding projection check Reading band 1 of 1...
>
>
> Here you are importing a raster "Drainage_Direction_Watershed.tif", but it
> seems that the tif file dows not have a proper coordinate system
> definition. New users often get tripped by this. In GRASS you should always
> use input data with the coordinate system correctly defined.
>
>
> r.external terminé. Link to raster map created. Description: Creates
> watershed basins from a drainage direction map. Keywords: raster, hydrology,
> watershed Usage: r.water.outlet input=name output=name
> coordinates=east,north [--overwrite] [--help] [--verbose] [--quiet] [--ui]
>
>
> Here's the real problem. In The new version of r.water.outlet you specify
> the input coordinates as:
> coordinates=<east>,<north>
> But above in the command created by the processing interface if has
> created the command with the old format:
> easting=<...> northing=<...>
> Maybe there is still some mixup between GRASS 6.4 and GRASS 7 in the
> Processing setup??
>
> You will be able to easily overcome this if you switch to GRASS and enter
> the commands yourself.
>
> Additionally, I would point out that there's a nice set of GRASS addons:
> r.stream.* that offer extended capabilities for watershed analysis. For
> example the addon module r.stream.basins can take a point vector map as
> input drainage points. THen you get basins for all the drainage points in
> one go.
>
> Flags: --o Autoriser la sortie à écraser les fichiers existants --h
> Afficher le résumé d'utilisation --v Sortie du module en mode bavard --q
> Sortie du module en mode silence --ui Force launching GUI dialog Parameters:
> input Name of input drainage direction map output Name for output watershed
> basin map coordinates Coordinates of outlet point ERROR: r.water.outlet:
> Sorry, is not a valid parameter ERROR: r.water.outlet: Sorry, is not a valid
> parameter ERROR: Required parameter not set: (Coordinates of outlet point)
> ERREUR :Couche raster non trouvée ERREUR :Raster map or group not found
> Exécution de '/home/kyle/.qgis2//processing/grass7_batch_job.sh' terminée.
> Nettoyage des fichiers temporaires ... Converting outputs Charger les
> couches de résultat The following layers were not correctly generated. Basin
> You can check the log messages to find more information about the execution
> of the algorithm[/code]
>
>
> Does anyone have an idea of what could be the problem? If you need further
> information, do not hesitate to ask me.
>
> Thank you for your understanding,
>
> Guillaume
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/GRASS7-r-water-outlet-returns-error-in-QGIS-2-14-2-tp5265113.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-user mailing list[hidden email] <http:///user/SendEmail.jtp?type=node&node=5265193&i=0>
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
> This mail was received via Mail-SeCure System.
>
> Micha Silver
> Arava Drainage Authority
> +972-523-665918
>
>
> _______________________________________________
> Qgis-user mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5265193&i=1>
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1560.x6.nabble.com/GRASS7-r-water-outlet-returns-error-in-QGIS-2-14-2-tp5265113p5265193.html
> To unsubscribe from GRASS7 r.water.outlet returns error in QGIS 2.14.2, click
> here
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5265113&code=Z3VpbGxhdW1lLmthdGFybkBnbWFpbC5jb218NTI2NTExM3wxMjQ5NjA0MDY5>
> .
> NAML
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GRASS7-r-water-outlet-returns-error-in-QGIS-2-14-2-tp5265113p5265247.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160508/0d8c3547/attachment.html>


More information about the Qgis-user mailing list