[GRASS-dev] Inclusion of additional files with add-on

Steven Pawley dr.stevenpawley at gmail.com
Tue Aug 15 15:48:06 PDT 2017


This seems to be an issue on windows that is related to r.tileset not
r.terrain.texture. Infact on windows I can't get r.tileset to function at
all on a windows system, but it works on linux:

r.tileset sourceproj="+proj=tmerc +lat_0=0 +lon_0=-115 +k=0.9992
+x_0=500000 +y_0=0 +no_defs +a=6378137 +rf=298.257222101
+towgs84=0.000,0.000,0.000 +to_meter=1"

Traceback (most recent call last):
  File
"C:\OSGEO4~1\apps\grass\grass-7.3.svn/scripts/m.proj.py",
line 308, in <module>
    main()
  File
"C:\OSGEO4~1\apps\grass\grass-7.3.svn/scripts/m.proj.py",
line 243, in main
    inf = file(infile)
IOError: [Errno 13] Permission denied: 'c:\\users\\cb2dd\\ap
pdata\\local\\temp\\grass7-cb2dd-10432\\tmpovmbzm'
ERROR: cs2cs failed




On Tue, Aug 15, 2017 at 1:31 AM, Helmut Kudrnovsky <hellik at web.de> wrote:

> >I have gone with your's and Moritz's suggestion and have completed
> r.terrain.texture with the Iwahashi >and Pike nested-means terrain
> classification method in the add-ons.
>
> addon tested here with
>
> System Info
> GRASS version: 7.3.svn
> GRASS SVN revision: r71384
> Build date: 2017-08-11
> Build platform: x86_64-w64-mingw32
> GDAL: 2.2.1
> PROJ.4: 4.9.3
> GEOS: 3.5.0
> SQLite: 3.17.0
> Python: 2.7.5
> wxPython: 2.8.12.1
> Platform: Windows-8-6.2.9200 (OSGeo4W)
>
> and
>
> r.terrain.texture elevation=elevation at PERMANENT slope=myslope at user1
> classes=12 texture=terr_tex convexity=terr_convex concavity=terr_concav
> features=terr_class
>
> I get
>
> ------
> r.terrain.texture elevation=elevation at PERMANENT slope=myslope at user1
> classes=12 texture=terr_tex convexity=terr_convex concavity=terr_concav
> features=terr_class
> Calculating terrain surface texture...
> 1. Smoothing input DEM with a 3x3 median filter...
> 2. Extracting pits and peaks with difference > thres...
> 3. Using resampling filter to create terrain texture...
> 4. Converting to percentage...
> Calculating terrain convexity and concavity...
> 1. Calculating terrain curvature using laplacian filter...
> 2. Extracting convexities and concavities...
> 3. Using resampling filter to create surface convexity/concavity...
> 4. Converting to percentages...
> Performing terrain surface classification...
> Traceback (most recent call last):
>   File
> "C:\OSGEO4~1\apps\grass\grass-7.3.svn/scripts/m.proj.py",
> line 308, in <module>
>     main()
>   File
> "C:\OSGEO4~1\apps\grass\grass-7.3.svn/scripts/m.proj.py",
> line 243, in main
>     inf = file(infile)
> IOError: [Errno 13] Permission denied: 'c:\\users\\xxx\\ap
> pdata\\local\\temp\\grass7-hkmyr-6804\\tmpl1pwdf'
> ERROR: cs2cs failed
> Deleting intermediate files...
> WARNING: No data base element files found
> Traceback (most recent call last):
>   File "C:\Users\xxx\AppData\Roaming\GRASS7\addons/scripts
> /r.terrain.texture.py", line 575, in <module>
>     sys.exit(main())
>   File "C:\Users\xxx\AppData\Roaming\GRASS7\addons/scripts
> /r.terrain.texture.py", line 471, in main
>     flags='g', quiet=True,
> stdout_=PIPE).outputs.stdout.split(os.linesep)[:-1]
>   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\etc\python\gras
> s\pygrass\modules\interface\module.py", line 648, in
> __call__
>     return self.run()
>   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\etc\python\gras
> s\pygrass\modules\interface\module.py", line 769, in run
>     self.wait()
>   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\etc\python\gras
> s\pygrass\modules\interface\module.py", line 790, in wait
>     module=self.name, errors=stderr)
> grass.exceptions.CalledModuleError: Module run r.tileset
> r.tileset sourceproj=+proj=lcc +lat_1=36.16666666666666
> +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79
> +x_0=609601.22 +y_0=0 +no_defs +a=6378137 +rf=298.257222101
> +towgs84=0.000,0.000,0.000 +to_meter=1 sourcescale=1
> maxcols=1500 maxrows=1352 overlap=0 separator=pipe -g --q
> ended with error
> Process ended with non-zero return code 1. See errors in the
> (error) output.
> ------
>
> C:\>where cs2cs
> C:\OSGeo4W64\bin\cs2cs.exe
> C:\>cs2cs
> Rel. 4.9.3, 15 August 2016
> usage: cs2cs [ -eEfIlrstvwW [args] ] [ +opts[=arg] ]
>                    [+to [+opts[=arg] [ files ]
>
> cs2cs seems to be available.
>
>
>
> -----
> best regards
> Helmut
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/Inclusion-of-additional-files-with-add-on-
> tp5331342p5331497.html
> Sent from the Grass - Dev mailing list archive at Nabble.com.
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20170815/b27acdb4/attachment.html>


More information about the grass-dev mailing list