From pertusus at free.fr Sun Mar 1 08:01:15 2015 From: pertusus at free.fr (Patrice Dumas) Date: Sun, 1 Mar 2015 17:01:15 +0100 Subject: [GRASS-dev] port of v.points.cog to python Message-ID: <20150301160115.GA25881@free.fr> Hello, Here is a rewrite of the v.points.cog module in python. I tried translating code only, keeping the code organization, variables names as it was previously to help those who would want to review the differences with the shell script. I also did the few changes required for changes in grass7, but there weren't that much since python function already abstract some commands. I did a svn copy of the grass6 module before doing the modifications. I cannot (and don't want to...) claim any copyright on a code translation. I didn't test thoroughly, but since it is code translation, I don't expect big surprises. -- Pat -------------- next part -------------- Index: grass7/vector/Makefile =================================================================== --- grass7/vector/Makefile (r?vision 64773) +++ grass7/vector/Makefile (copie de travail) @@ -35,6 +35,7 @@ v.out.ply \ v.out.png \ v.ply.rectify \ + v.points.cog \ v.stats \ v.surf.icw \ v.surf.mass \ Index: grass7/vector/v.points.cog/description.html =================================================================== --- grass7/vector/v.points.cog/description.html (r?vision 64773) +++ grass7/vector/v.points.cog/description.html (copie de travail) @@ -1,53 +0,0 @@ -

DESCRIPTION

- - -v.points.cog condenses points or centroids sharing -a common attribute into a single point in a new vector map at their -average position (center of gravity). -

-For this to work well your clusters of points must be gregarious -(Gaussian distribution) - if two groups of points habitate in two -corners of the map the output point will fall in the center and -match niether well. -

-If needed you can use v.digit to adjust point positions -created by this module, -or use this module as a preprocessing step before running -v.label.sa to deal with overlapping labels automatically. - - - - -

EXAMPLE

- -Create single points at the average of all points in the -bugsites map, and place a single label there. - -
-v.points.cog in=bugsites out=bug_cog column=str1
-
-d.vect -c bugsites color=none icon=basic/circle
-
-d.vect bug_cog disp=attr attrcol=str1 lcolor=black \
-   lsize=14 xref=center yref=center bgcolor=white
-
- - -

SEE ALSO

- -v.label.sa
-v.label
-v.digit -
- - -

AUTHOR

- -Hamish Bowman
-Dept. Marine Science
-University of Otago
-Dunedin, New Zealand
-
- -

-Last changed: $Date$ Index: grass7/vector/v.points.cog/v.points.cog =================================================================== --- grass7/vector/v.points.cog/v.points.cog (r?vision 64773) +++ grass7/vector/v.points.cog/v.points.cog (copie de travail) @@ -1,142 +0,0 @@ -#!/bin/sh -# -############################################################################ -# -# MODULE: v.points.cog -# -# AUTHOR(S): Hamish Bowman -# -# PURPOSE: Condense points or centroids sharing a common attribute into a single point -# -# COPYRIGHT: (c) 2010 Hamish Bowman, and the GRASS Development Team -# -# This program is free software under the GNU General Public -# License (>=v2). Read the file COPYING that comes with GRASS -# for details. -# -############################################################################# -#%Module -#% description: Condense points or centroids sharing a common attribute into a single point. -#% keywords: vector, cluster -#%End -#%option -#% key: input -#% type: string -#% gisprompt: old,vector,vector -#% description: Name of input vector map -#% required : yes -#%end -#%option -#% key: output -#% type: string -#% gisprompt: new,vector,vector -#% description: Name for output vector map -#% required : yes -#%end -#%option -#% key: column -#% type: string -#% description: Column containing common attribute -#% required : yes -#%end -#%option -#% key: layer -#% type: integer -#% answer: 1 -#% description: Layer number -#% required: no -#%end - -##%option -##% key: type -##% type: string -##% description: Feature type(s) -##% options: point,centroid -##% answer: point -##% required: no -##% multiple: yes -##%end - - -if [ -z "$GISBASE" ] ; then - echo "You must be in GRASS GIS to run this program." 1>&2 - exit 1 -fi - -if [ "$1" != "@ARGS_PARSED@" ] ; then - exec g.parser "$0" "$@" -fi - -MAP="$GIS_OPT_INPUT" -COLUMN="$GIS_OPT_COLUMN" -LAYER="$GIS_OPT_LAYER" - -# check for input map -eval `g.findfile element=vector file="$MAP"` -if [ ! "$file" ] ; then - g.message -e "Vector map <$MAP> does not exist." - exit 1 -fi - -# check for column -if [ `v.info -c "$MAP" layer="$LAYER" --quiet | cut -f2 -d'|' | grep -c "^$COLUMN$"` -ne 1 ] ; then - g.message -e "Column <$COLUMN> not found." - exit 1 -fi - -# get column details so we can recreate it. -# The db.* modules need special care when querying from @another mapset -DB=`v.db.connect "$MAP" -g layer="$LAYER" fs='|' | cut -f4 -d'|'` -BASENAME=`echo "$MAP" | sed -e 's/@.*//'` -db.describe -c table="$BASENAME" database="$DB" > /dev/null -if [ $? -ne 0 ] ; then - g.message -e "Unable to describe table" - exit 1 -fi -COLUMN_DESC=`db.describe -c table="$BASENAME" database="$DB" | grep " $COLUMN:" | cut -f3- -d:` - - -if [ `echo "$COLUMN_DESC" | grep -c CHARACTER` -eq 1 ] ; then - COLUMN_TYPE="string" - COLUMN_LEN=`echo "$COLUMN_DESC" | cut -f2 -d:` - COLUMN_DEFN="varchar($COLUMN_LEN)" -else - COLUMN_TYPE="number" - COLUMN_DEFN=`echo "$COLUMN_DESC" | cut -f1 -d:` -fi - -# cheap hack to avoid conflict -if [ "$COLUMN" = "cat" ] ; then - OUT_COLUMN="cat_" -else - OUT_COLUMN="$COLUMN" -fi - - -( -IFS='|' -for ITEM in `v.db.select "$MAP" -c column="$COLUMN" layer="$LAYER" | sort | uniq | tr '\n' '|'` ; do - #echo "[$ITEM]" - if [ "$COLUMN_TYPE" = "string" ] ; then - WHERE_STR="$COLUMN = '$ITEM'" - else - WHERE_STR="$COLUMN = $ITEM" - fi - - v.out.ascii "$MAP" column="$COLUMN" layer="$LAYER" where="$WHERE_STR" | \ - awk -F'|' \ - 'BEGIN { sum_x=0; sum_y=0; i=0 } - { sum_x += $1; sum_y += $2; i++ } - END { if(i>0) { printf("%.15g|%.15g|%s\n", sum_x/i, sum_y/i, $4) } }' -done -) | v.in.ascii out="$GIS_OPT_OUTPUT" columns="x double, y double, $OUT_COLUMN $COLUMN_DEFN" -#echo columns="x double, y double, $OUT_COLUMN $COLUMN_DEFN" - -retval=$? - -# cleanup cheap hack -if [ $COLUMN = "cat" ] ; then - v.db.dropcol map="$GIS_OPT_OUTPUT" column="cat_" --quiet -fi - -exit $retval Index: grass7/vector/v.points.cog/v.points.cog.py =================================================================== --- grass7/vector/v.points.cog/v.points.cog.py (r?vision 64773) +++ grass7/vector/v.points.cog/v.points.cog.py (copie de travail) @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env python # ############################################################################ # @@ -57,86 +57,74 @@ ##% multiple: yes ##%end +import sys +import grass.script as grass -if [ -z "$GISBASE" ] ; then - echo "You must be in GRASS GIS to run this program." 1>&2 - exit 1 -fi +def main(): -if [ "$1" != "@ARGS_PARSED@" ] ; then - exec g.parser "$0" "$@" -fi + map = options['input'] + column = options['column'] + layer = options['layer'] + output = options['output'] -MAP="$GIS_OPT_INPUT" -COLUMN="$GIS_OPT_COLUMN" -LAYER="$GIS_OPT_LAYER" + result = grass.find_file(map, element='vector') + if len(result['name']) == 0: + grass.fatal(_("Vector map <%s> does not exist") % map) -# check for input map -eval `g.findfile element=vector file="$MAP"` -if [ ! "$file" ] ; then - g.message -e "Vector map <$MAP> does not exist." - exit 1 -fi + if column not in grass.vector_columns(map, layer).keys(): + grass.fatal(_("Column <%s>, layer %s not found") % (map, layer)) -# check for column -if [ `v.info -c "$MAP" layer="$LAYER" --quiet | cut -f2 -d'|' | grep -c "^$COLUMN$"` -ne 1 ] ; then - g.message -e "Column <$COLUMN> not found." - exit 1 -fi + # get column details so we can recreate it. + # The db.* modules need special care when querying from @another mapset + map_connection_info = grass.vector_db(map)[int(layer)] + db = map_connection_info['database'] + basename = map.split("@")[0] -# get column details so we can recreate it. -# The db.* modules need special care when querying from @another mapset -DB=`v.db.connect "$MAP" -g layer="$LAYER" fs='|' | cut -f4 -d'|'` -BASENAME=`echo "$MAP" | sed -e 's/@.*//'` -db.describe -c table="$BASENAME" database="$DB" > /dev/null -if [ $? -ne 0 ] ; then - g.message -e "Unable to describe table" - exit 1 -fi -COLUMN_DESC=`db.describe -c table="$BASENAME" database="$DB" | grep " $COLUMN:" | cut -f3- -d:` + map_description = grass.db_describe(basename, database=db) + if 'cols' not in map_description: + grass.fatal(_("Unable to describe table")) + for column_desc in map_description['cols']: + if column_desc[0] == column: + break + if 'CHARACTER' in column_desc[1]: + column_type = "string" + column_len = column_desc[2] + column_defn = "varchar(%d)" % (column_len) + else: + column_type = "number" + column_defn = column_desc[1] -if [ `echo "$COLUMN_DESC" | grep -c CHARACTER` -eq 1 ] ; then - COLUMN_TYPE="string" - COLUMN_LEN=`echo "$COLUMN_DESC" | cut -f2 -d:` - COLUMN_DEFN="varchar($COLUMN_LEN)" -else - COLUMN_TYPE="number" - COLUMN_DEFN=`echo "$COLUMN_DESC" | cut -f1 -d:` -fi + # cheap hack to avoid conflict + if column == 'cat': + out_column = "cat_" + else: + out_column = column -# cheap hack to avoid conflict -if [ "$COLUMN" = "cat" ] ; then - OUT_COLUMN="cat_" -else - OUT_COLUMN="$COLUMN" -fi + average_points_positions = '' + for item in sorted(set(grass.vector_db_select(map, columns=column, layer=int(layer))['values'])): + if column_type == "string": + where_str = "%s = '%s'" % (column, item) + else: + where_str = "%s = %s" % (column, str(item)) + + out_ascii_output = grass.read_command('v.out.ascii', input=map, output='-', column=column, layer=layer, where=where_str).splitlines() + if len(out_ascii_output) > 1: + sum_x = 0. + sum_y = 0. + for item_point in out_ascii_output: + position = item_point.split('|') + sum_x += float(position[0]) + sum_y += float(position[1]) + average_points_positions += "%.15g|%.15g|%s\n" % (sum_x/len(out_ascii_output), sum_y/len(out_ascii_output), position[-1]) + retval = grass.write_command('v.in.ascii', stdin=average_points_positions, input='-', output=output, columns="x double, y double, %s %s" % (out_column, column_defn)) + # cleanup cheap hack + if column == 'cat': + grass.run_command('v.db.dropcol', map=output, column='cat_', quiet=True) -( -IFS='|' -for ITEM in `v.db.select "$MAP" -c column="$COLUMN" layer="$LAYER" | sort | uniq | tr '\n' '|'` ; do - #echo "[$ITEM]" - if [ "$COLUMN_TYPE" = "string" ] ; then - WHERE_STR="$COLUMN = '$ITEM'" - else - WHERE_STR="$COLUMN = $ITEM" - fi + sys.exit(retval) - v.out.ascii "$MAP" column="$COLUMN" layer="$LAYER" where="$WHERE_STR" | \ - awk -F'|' \ - 'BEGIN { sum_x=0; sum_y=0; i=0 } - { sum_x += $1; sum_y += $2; i++ } - END { if(i>0) { printf("%.15g|%.15g|%s\n", sum_x/i, sum_y/i, $4) } }' -done -) | v.in.ascii out="$GIS_OPT_OUTPUT" columns="x double, y double, $OUT_COLUMN $COLUMN_DEFN" -#echo columns="x double, y double, $OUT_COLUMN $COLUMN_DEFN" - -retval=$? - -# cleanup cheap hack -if [ $COLUMN = "cat" ] ; then - v.db.dropcol map="$GIS_OPT_OUTPUT" column="cat_" --quiet -fi - -exit $retval +if __name__ == "__main__": + options, flags = grass.parser() + main() From neteler at osgeo.org Sun Mar 1 10:02:47 2015 From: neteler at osgeo.org (Markus Neteler) Date: Sun, 1 Mar 2015 19:02:47 +0100 Subject: [GRASS-dev] [GRASS-PSC] RFC 4: Release procedure In-Reply-To: References: <539821A5.4010109@club.worldonline.be> Message-ID: Hi, On Tue, Feb 17, 2015 at 1:54 PM, Markus Neteler wrote: > On Fri, Jun 20, 2014 at 3:39 AM, Scott Mitchell wrote: >> Agreed, and I like Markus? idea of testing it on an upcoming release. > > (just a low priority comment here) > > While doing so it turns out that one week between RC2 and final is a bit short. > And some urgent fixes came in only during the RC procedure. We need to > [add] a phrase if this requires a new RC (not this time though!) or not > or depends. Overall, we got the release out :-) Any opinions on above remaining issue? > Overall, RFC4 looks pretty reasonable to me. Let's vote soon (once above issue is added to RFC4). Markus From andrewwickert at gmail.com Sun Mar 1 10:40:41 2015 From: andrewwickert at gmail.com (Andy Wickert) Date: Sun, 1 Mar 2015 12:40:41 -0600 Subject: [GRASS-dev] A better r.fillnulls Message-ID: Hi GRASS-dev, When I use r.fillnulls, I am often faced with the problem that it breaks the domain up into blocks, thus (1) creating discontinuities and/or (2) having problems in regions where there is insufficient data. (2) is important because I am often trying to just create some smooth variation between two datasets or fill in less-important regions to have a full grid to be able to run a utility or model. My workaround as of now is this: r.to.points in=map out=map type=point column=attrcol v.surf.bspline in=map raster_output=mapSplines column=attrcol # But the spline fit makes the real data blurry too, so patch the spline fit # in-between the data points r.patch in=map,mapSplines out=mapFilled I find this to be preferable for both the reasons stated above, and was wondering if it would be worthwhile to think about including multiple methods for r.fillnulls so one could do something like this too. Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From neteler at osgeo.org Sun Mar 1 11:37:02 2015 From: neteler at osgeo.org (Markus Neteler) Date: Sun, 1 Mar 2015 20:37:02 +0100 Subject: [GRASS-dev] A better r.fillnulls In-Reply-To: References: Message-ID: On Sun, Mar 1, 2015 at 7:40 PM, Andy Wickert wrote: ... > I find this to be preferable for both the reasons stated above, and was > wondering if it would be worthwhile to think about including multiple > methods for r.fillnulls so one could do something like this too. Did you use the GRASS 6 version? Because in GRASS 7 several methods have been implemented: http://grass.osgeo.org/grass70/manuals/r.fillnulls.html method: Interpolation method to use Options: bilinear, bicubic, rst Default: rst Both bilinear and bicubic use r.resamp.bspline. Markus From hellik at web.de Sun Mar 1 13:54:45 2015 From: hellik at web.de (Helmut Kudrnovsky) Date: Sun, 1 Mar 2015 13:54:45 -0800 (PST) Subject: [GRASS-dev] grass addon sync to github Message-ID: <1425246885917-5190784.post@n6.nabble.com> Hi devs, I have a few g7-addons in grass svn and I want to put them also in github. do you know any script/tool to sync addons in svn with github? ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/grass-addon-sync-to-github-tp5190784.html Sent from the Grass - Dev mailing list archive at Nabble.com. From trac at osgeo.org Sun Mar 1 15:05:31 2015 From: trac at osgeo.org (GRASS GIS) Date: Sun, 01 Mar 2015 23:05:31 -0000 Subject: [GRASS-dev] [GRASS GIS] #2605: d.rast.leg: invalid literal for float(): rectangle Message-ID: <042.c198e9d03e590749a56cb0f8e4006a81@osgeo.org> #2605: d.rast.leg: invalid literal for float(): rectangle -------------------------+-------------------------------------------------- Reporter: pertusus | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Display | Version: svn-releasebranch70 Keywords: | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- I get a traceback for d.rast.leg. {{{ d.rast.leg raster_selection_basins_change lines=2 }}} {{{ Traceback (most recent call last): File "/usr/local/grass-7.0.0svn//scripts/d.rast.leg", line 167, in main() File "/usr/local/grass-7.0.0svn//scripts/d.rast.leg", line 103, in main f = tuple([float(x) for x in s.split()[1:5]]) ValueError: invalid literal for float(): rectangle: }}} This is triggered by a wrong parsing of d.info which returns: {{{ frame rectangle: 0.000000 640.000000 0.000000 480.000000 }}} Original code is [float(x) for x in s.split()[1:5]] which naturally the to x being 'rectangle:' I attach a patch where I propose instead: [float(x) for x in s.split(":")[1].split()[0:4]] It seems more robust, though I don't know if the : will be there forever. Overall, the approach is not very robust, but I have no idea on what's going on so I only propose that fix which may not be appropriate in other cases. -- Ticket URL: GRASS GIS From trac at osgeo.org Sun Mar 1 18:56:22 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 02 Mar 2015 02:56:22 -0000 Subject: [GRASS-dev] [GRASS GIS] #2606: Bugs in r.sun Message-ID: <042.0c578eee7068ec8f15b5021f378c131f@osgeo.org> #2606: Bugs in r.sun ----------------------+----------------------------------------------------- Reporter: ojni0001 | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: Component: Default | Version: unspecified Keywords: | Platform: MSWindows 7 Cpu: x86-64 | ----------------------+----------------------------------------------------- I am new to this, so some things I write here may not be how it should be. My environment: Win7 x64 GRASS Version (7beta and RC1) and hence 32 bit binary (although I mentioned GRASS7, but it may be present in GRASS 6, and earlier versions) I have 2 issues, probably needs 2 tickets but I am mentioning here both. I used a virtual landscape with elevation = constant (i.e. flat) Issue 1. I found that if I am using the aspect raster, zero degree is East and 270 is South (as mentioned in the help). But if I am using a single value for aspect, zero or 360 degrees is North and 180 degree is South. I don't know if 90 degree is East or West. So, either help document has to be changed or the algorithm. Issue 2. When the slope is more than 60 degrees (probably from 45 degrees) facing North (northwards from east or west and North), the global radiation values are increasing i.e. the radiation value for slope of 70 degrees is more than when the slope is 60 degrees the radiation value for slope of 90 degrees is more than when the slope is 80 degrees Here, is a small table for demonstration (aspect of 0 or 360 is North, as mentioned in issue 1 above) Jan->17 (day=17), Feb->16 (day=47), Mar->16 (day=75) April->15 (day=105), May->15 (day=135) slope aspect Jan Feb Mar Apr May 10 345 1.61 2.45 3.59 5.24 6.52 20 345 0.93 1.73 2.93 4.70 6.18 30 345 0.36 1.04 2.21 4.03 5.67 40 345 0.13 0.46 1.49 3.26 5.01 50 345 0.12 0.15 0.85 2.42 4.22 60 345 0.11 0.16 0.85 2.38 4.17 70 345 0.10 '''0.59 1.63 3.38 5.12''' 80 345 '''0.54 1.29 2.47 4.30 5.94''' 90 345 '''1.20 2.05 3.28 5.11 6.62''' 10 360 1.59 2.42 3.57 5.23 6.52 20 360 0.87 1.66 2.87 4.67 6.17 30 360 0.27 0.91 2.11 3.99 5.66 40 360 0.13 0.26 1.30 3.21 5.00 50 360 0.12 0.14 0.47 2.36 4.21 60 360 0.11 0.13 0.56 2.48 4.35 70 360 '''0.10 0.35 1.51 3.49 5.32 ''' 80 360 '''0.38 1.12 2.42 4.41 6.15 ''' 90 360 '''1.08 1.97 3.28 5.22 6.81''' For testing I have attached a zipped file (simulation for slope 0 to 90, step 10 degrees and for aspect 0 to 360, step 15 degrees) with the script and sample elevation (flat landscape) file. The table may look a bit different but the pattern will be similar. Thank you. Nirmal -- Ticket URL: GRASS GIS From andrewwickert at gmail.com Sun Mar 1 23:35:20 2015 From: andrewwickert at gmail.com (Andy Wickert) Date: Mon, 2 Mar 2015 01:35:20 -0600 Subject: [GRASS-dev] A better r.fillnulls In-Reply-To: References: Message-ID: On Sun, Mar 1, 2015 at 1:37 PM, Markus Neteler wrote: > On Sun, Mar 1, 2015 at 7:40 PM, Andy Wickert > wrote: > ... > > I find this to be preferable for both the reasons stated above, and was > > wondering if it would be worthwhile to think about including multiple > > methods for r.fillnulls so one could do something like this too. > > Did you use the GRASS 6 version? Because in GRASS 7 several methods > have been implemented: > > http://grass.osgeo.org/grass70/manuals/r.fillnulls.html > > method: Interpolation method to use > Options: bilinear, bicubic, rst > Default: rst > > Both bilinear and bicubic use r.resamp.bspline. > > Markus > Hi Markus, Sorry for the silly question! I missed that change in GRASS 7. Best, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From neteler at osgeo.org Sun Mar 1 23:41:23 2015 From: neteler at osgeo.org (Markus Neteler) Date: Mon, 2 Mar 2015 08:41:23 +0100 Subject: [GRASS-dev] A better r.fillnulls In-Reply-To: References: Message-ID: On Mar 2, 2015 8:35 AM, "Andy Wickert" wrote: > > On Sun, Mar 1, 2015 at 1:37 PM, Markus Neteler wrote: > Sorry for the silly question! I missed that change in GRASS 7. Not silly at all. We accumulated quite a bit of new functionality in G7... Future releases shall come more frequently so that it is less overwhelming for all :) Best, Markus -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucadeluge at gmail.com Mon Mar 2 00:01:52 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Mon, 2 Mar 2015 09:01:52 +0100 Subject: [GRASS-dev] grass addon sync to github In-Reply-To: <1425246885917-5190784.post@n6.nabble.com> References: <1425246885917-5190784.post@n6.nabble.com> Message-ID: On 1 March 2015 at 22:54, Helmut Kudrnovsky wrote: > Hi devs, > Hi Helmut, > I have a few g7-addons in grass svn and I want to put them also in github. > > do you know any script/tool to sync addons in svn with github? > Could I ask you why? -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From trac at osgeo.org Mon Mar 2 02:24:46 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 02 Mar 2015 10:24:46 -0000 Subject: [GRASS-dev] [GRASS GIS] #2606: Bugs in r.sun In-Reply-To: <042.0c578eee7068ec8f15b5021f378c131f@osgeo.org> References: <042.0c578eee7068ec8f15b5021f378c131f@osgeo.org> Message-ID: <051.b56fc73f7a0787b55f980e49d5a5b172@osgeo.org> #2606: Bugs in r.sun ----------------------+----------------------------------------------------- Reporter: ojni0001 | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: unspecified Keywords: r.sun | Platform: MSWindows 7 Cpu: x86-64 | ----------------------+----------------------------------------------------- Changes (by martinl): * keywords: => r.sun * component: Default => Raster * milestone: => 7.0.1 -- Ticket URL: GRASS GIS From diregola at gmail.com Mon Mar 2 02:28:08 2015 From: diregola at gmail.com (Margherita Di Leo) Date: Mon, 2 Mar 2015 11:28:08 +0100 Subject: [GRASS-dev] Select vector feature - Error Message-ID: Hi, when i try to select a feature with the "select vector feature" button from map display, I get an Error pop up that reads: Error occured during calling of handler: _onMapClickHandler Handler was unregistered. Reason: VectorSelectBase instance has no attribute 'map' Traceback (most recent call last): File "/usr/local/grass-7.1.svn/gui/wxpython/mapwin/base.py", line 191, in HandlersCaller handler(event) File "/usr/local/grass-7.1.svn/gui/wxpython/gui_core/vselect.py", line 187, in _onMapClickHandler vWhatDic = self.QuerySelectedMap() File "/usr/local/grass-7.1.svn/gui/wxpython/gui_core/vselect.py", line 272, in QuerySelectedMap message=_("Failed to query vector map(s) <%s>.") % self.map) AttributeError: VectorSelectBase instance has no attribute 'map' Thanks -- Best regards, Dr. Margherita DI LEO Scientific / technical project officer European Commission - DG JRC Institute for Environment and Sustainability (IES) Via Fermi, 2749 I-21027 Ispra (VA) - Italy - TP 261 Tel. +39 0332 78 3600 margherita.di-leo at jrc.ec.europa.eu Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nik at nikosalexandris.net Mon Mar 2 02:29:30 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Mon, 02 Mar 2015 12:29:30 +0200 Subject: [GRASS-dev] Wrong HOME environment variable at start-up Message-ID: In ~/.grass.bashrc, I put the test-line `echo ~ # or echo $HOME` (sans backticks, of course). Launching up G70, or G71, the echoed message reports HOME as being the Mapset in which I launch GRASS! For example, `grass70 /geo/grassdb/ols/PERMANENT` will give "/geo/grassdb/ols/PERMANENT". Thus, `source ~/.bash_aliases`, inside .grass.bashrc, fails to deliver. Now, asking for $HOME, inside GRASS, shows no error, ie: `echo $HOME` gives "/home/nik". Nevertheless, there is no single line anywhere in ~/.bash* or ~/.grass* or ~/.grass7/* that refers to HOME. Can someone help me understand what I have probably setup wrong? Thanks, Nikos From trac at osgeo.org Mon Mar 2 03:49:06 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 02 Mar 2015 11:49:06 -0000 Subject: [GRASS-dev] [GRASS GIS] #2603: grass 7 startup problem In-Reply-To: <039.a1b653b9d6f70705729cff642ad0ba53@osgeo.org> References: <039.a1b653b9d6f70705729cff642ad0ba53@osgeo.org> Message-ID: <048.198803190f83b3f7593343e0f1fee59b@osgeo.org> #2603: grass 7 startup problem -------------------------+-------------------------------------------------- Reporter: neuba | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 7.0.0 Keywords: | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by neuba): I have both Grass 7 and Grass 6.4 installed on my computer. How can solve this problem. -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 2 04:07:55 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 02 Mar 2015 12:07:55 -0000 Subject: [GRASS-dev] [GRASS GIS] #2603: grass 7 startup problem In-Reply-To: <039.a1b653b9d6f70705729cff642ad0ba53@osgeo.org> References: <039.a1b653b9d6f70705729cff642ad0ba53@osgeo.org> Message-ID: <048.be73392e169a2911556d5eaa589c6e57@osgeo.org> #2603: grass 7 startup problem -------------------------+-------------------------------------------------- Reporter: neuba | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 7.0.0 Keywords: | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by martinl): Replying to [comment:4 neuba]: > I have both Grass 7 and Grass 6.4 installed on my computer. How can solve this problem. Did you install GRASS using standalone installer or via OSGeo4W? -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 2 04:27:03 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 02 Mar 2015 12:27:03 -0000 Subject: [GRASS-dev] [GRASS GIS] #2603: grass 7 startup problem In-Reply-To: <039.a1b653b9d6f70705729cff642ad0ba53@osgeo.org> References: <039.a1b653b9d6f70705729cff642ad0ba53@osgeo.org> Message-ID: <048.73db856fb7712148cb3671f44cfb1f34@osgeo.org> #2603: grass 7 startup problem --------------------------+------------------------------------------------- Reporter: neuba | Owner: grass-dev@? Type: defect | Status: closed Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 7.0.0 Resolution: fixed | Keywords: Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Changes (by neuba): * status: new => closed * resolution: => fixed Comment: Replying to [comment:5 martinl]: > Replying to [comment:4 neuba]: > > I have both Grass 7 and Grass 6.4 installed on my computer. How can solve this problem. > > Did you install GRASS using standalone installer or via OSGeo4W? I used GRASS using standalone. I solve the problem by deleting GIBASE and GRASS_SH in environment of my computer. It is possible to set these variable for both grass 6.4 and grass 7.0 Bye -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 2 08:30:47 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 02 Mar 2015 16:30:47 -0000 Subject: [GRASS-dev] [GRASS GIS] #2601: Raster query fails with unicode error In-Reply-To: <040.541deadabff0aaa3d3b9660f428ccb07@osgeo.org> References: <040.541deadabff0aaa3d3b9660f428ccb07@osgeo.org> Message-ID: <049.70600eb336fa5db7c8010892616e49d0@osgeo.org> #2601: Raster query fails with unicode error -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: 7.0.0 Keywords: query | Platform: MSWindows XP Cpu: Unspecified | -------------------------+-------------------------------------------------- Changes (by annakrat): * keywords: => query * milestone: => 7.0.1 Comment: I can't reproduce it. I tried on Windows 8. Any idea why it doesn't work on your side? -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 2 08:33:02 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 02 Mar 2015 16:33:02 -0000 Subject: [GRASS-dev] [GRASS GIS] #2602: GUI preferences dialog fails to open In-Reply-To: <040.6509d418a3f553976db6ecf3b6e2fd2a@osgeo.org> References: <040.6509d418a3f553976db6ecf3b6e2fd2a@osgeo.org> Message-ID: <049.474b694a187a4e93267b5782ca1f633b@osgeo.org> #2602: GUI preferences dialog fails to open -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: 7.0.0 Keywords: | Platform: MSWindows XP Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by annakrat): Works for me with English locale on Windows 8. Is locale the problem? -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 2 15:43:21 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 02 Mar 2015 23:43:21 -0000 Subject: [GRASS-dev] [GRASS GIS] #2434: v.surf.bspline In-Reply-To: <042.b50fe80e18898260d6656f3241b0b09e@osgeo.org> References: <042.b50fe80e18898260d6656f3241b0b09e@osgeo.org> Message-ID: <051.21253e578c14f8311f5c6e35aa131053@osgeo.org> #2434: v.surf.bspline ----------------------------+----------------------------------------------- Reporter: baharmon | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: 7.0.1 Component: Raster | Version: svn-releasebranch70 Keywords: v.surf.bspline | Platform: MSWindows 8 Cpu: OSX/Intel | ----------------------------+----------------------------------------------- Comment(by annakrat): Anyone has any idea? I looked at it but without the ability to debug on Windows I couldn't find anything. -- Ticket URL: GRASS GIS From glynn at gclements.plus.com Mon Mar 2 20:25:48 2015 From: glynn at gclements.plus.com (Glynn Clements) Date: Tue, 3 Mar 2015 04:25:48 +0000 Subject: [GRASS-dev] Wrong HOME environment variable at start-up In-Reply-To: References: Message-ID: <21749.14284.63245.606024@cerise.gclements.plus.com> Nikos Alexandris wrote: > In ~/.grass.bashrc, I put the test-line `echo ~ # or echo $HOME` > (sans backticks, of course). > Launching up G70, or G71, the echoed message reports HOME as being the > Mapset in which I launch GRASS! For example, `grass70 > /geo/grassdb/ols/PERMANENT` will give "/geo/grassdb/ols/PERMANENT". > > Thus, `source ~/.bash_aliases`, inside .grass.bashrc, fails to deliver. > Now, asking for $HOME, inside GRASS, shows no error, ie: `echo $HOME` > gives "/home/nik". Nevertheless, there is no single line anywhere in > ~/.bash* or ~/.grass* or ~/.grass7/* that refers to HOME. > > Can someone help me understand what I have probably setup wrong? Before starting the child shell process, the startup script sets HOME to the mapset directory and writes out a .bashrc file to that directory which (among other things) sets HOME back to the correct value. The contents of ~/.grass.bashrc are copied into that file, but before the point that HOME is reverted. This is essentially a hack to force the shell's history file to be written to the mapset directory rather than the user's HOME directory, so that each mapset has its own separate shell history. For bash, it would probably be better to just set HISTFILE, but other shells may not have such a feature. For all shells, it may be better to restore HOME before executing the user-supplied commands from ~/.grass.bashrc, ~/.grass.cshrc, etc. In the meantime, you could have ~/.grass.bashrc restore HOME itself; nothing written to the generated .bashrc file uses it. -- Glynn Clements From mlennert at club.worldonline.be Tue Mar 3 00:31:10 2015 From: mlennert at club.worldonline.be (Moritz Lennert) Date: Tue, 03 Mar 2015 09:31:10 +0100 Subject: [GRASS-dev] [GRASS-PSC] RFC 4: Release procedure In-Reply-To: References: <539821A5.4010109@club.worldonline.be> Message-ID: <54F5714E.4090401@club.worldonline.be> On 01/03/15 19:02, Markus Neteler wrote: > Hi, > > On Tue, Feb 17, 2015 at 1:54 PM, Markus Neteler wrote: >> On Fri, Jun 20, 2014 at 3:39 AM, Scott Mitchell wrote: >>> Agreed, and I like Markus? idea of testing it on an upcoming release. >> >> (just a low priority comment here) >> >> While doing so it turns out that one week between RC2 and final is a bit short. >> And some urgent fixes came in only during the RC procedure. We need to >> [add] a phrase if this requires a new RC (not this time though!) or not >> or depends. > > Overall, we got the release out :-) > Any opinions on above remaining issue? I think that with time we will get better at this procedure and the one week limit should be ok, but I have no objections to add a phrase to step 6 such as "A final, concerted bug squashing effort by all developers of no more than one week. During that same time the release announcement is drafted. If an important bug is discovered for which a fix needs some more testing, an RC3 can exceptionally be published, with another week of testing before final release." Moritz From mlennert at club.worldonline.be Tue Mar 3 00:45:51 2015 From: mlennert at club.worldonline.be (Moritz Lennert) Date: Tue, 03 Mar 2015 09:45:51 +0100 Subject: [GRASS-dev] Select vector feature - Error In-Reply-To: References: Message-ID: <54F574BF.5050807@club.worldonline.be> On 02/03/15 11:28, Margherita Di Leo wrote: > Hi, > > when i try to select a feature with the "select vector feature" button > from map display, I get an Error pop up that reads: > > Error occured during calling of handler: _onMapClickHandler > Handler was unregistered. > > Reason: VectorSelectBase instance has no attribute 'map' > > Traceback (most recent call last): > File "/usr/local/grass-7.1.svn/gui/wxpython/mapwin/base.py", line > 191, in HandlersCaller > handler(event) > File "/usr/local/grass-7.1.svn/gui/wxpython/gui_core/vselect.py", > line 187, in _onMapClickHandler > vWhatDic = self.QuerySelectedMap() > File "/usr/local/grass-7.1.svn/gui/wxpython/gui_core/vselect.py", > line 272, in QuerySelectedMap > message=_("Failed to query vector map(s) <%s>.") % self.map) > AttributeError: VectorSelectBase instance has no attribute 'map' I cannot reproduce using freshly checked out trunk and the NC dataset. BTW, two remarks for enhancement: - It would be nice if the tool allowed to select also by drawing a polygon, not only by clicking. - There is no close button on the little window listing the selected features. Moritz From Stefan.Blumentrath at nina.no Tue Mar 3 01:13:48 2015 From: Stefan.Blumentrath at nina.no (Blumentrath, Stefan) Date: Tue, 3 Mar 2015 09:13:48 +0000 Subject: [GRASS-dev] Python loop and SQLite performance issue? Message-ID: <2fa8f049fd9a4f75af17f89bcb8c8bc7@NINSRV23.nina.no> Hi, I am struggling with the performance of SQLite (I think), esp. when I use it in a python loop executed in parallel processes (using xargs) . I am analyzing characteristics of a relatively large number (270k) of overlapping lake catchments which were generated in GRASS and now are stored in a PostGIS DB. I split the data in (10) chunks and analyse each chunk in it`s own GRASS 70 mapset (with SQLite backend) where I am looping over the catchments one by one (in python). At first I tried to import the individual catchments using v.in.ogr. But v.in.ogr was slowing down the process significantly. It took 11 seconds to import a single, not very complex polygon (which is probably related to: https://trac.osgeo.org/grass/ticket/2185 ?; btw. my GRASSDB is not on NFS). So I switched to using gdal_rasterize and linked the resulting raster to GRASS (r.external) (as I am planning to work with rasters ater anyway). Rasterization and import takes all together less than a second. It made no difference for the speed of v.in.ogr if I imported the attribute table or not. However, converting the raster to vector in GRASS takes less than a second, so the topology creation does not seem to be the issue and also an attribute table is created... Then I add a relatively large number of columns (400 or something) using v.db.addcolumn. That again takes 19 seconds for my single test process. If I run all 10 chunks in parallel (I have 24 cores and lots of memory available), adding the columns takes 30 seconds for each catchment, almost twice as much). During the loop the time spend on adding the columns continues increasing up to almost 30 min (at that point I canceled the process)... There is obviously something not working as it should be... Analysing (r.univar) ca. 40 raster maps takes for the smaller catchments all together less than 5 seconds. After that I removed all SQLite related code from my script and loaded results directly back to PostgreSQL/PostGIS. Then the smaller catchments are done in less than 5 seconds... Does anyone have an idea what cause this performance loss is due to? Is it no good practice to call a python script (v.db.addcolumn) in a python loop, or is this related to SQLite journal files or ... I am grateful for any hints! Cheers Stefan P.S.: I can share the script if that helps identifying the issue... -------------- next part -------------- An HTML attachment was scrubbed... URL: From neteler at osgeo.org Tue Mar 3 01:59:05 2015 From: neteler at osgeo.org (Markus Neteler) Date: Tue, 3 Mar 2015 10:59:05 +0100 Subject: [GRASS-dev] Fwd: [OSGeo-Discuss] OSGeo accepted to GSoC 2015 - overview of slot assignments In-Reply-To: References: Message-ID: FYI ---------- Forwarded message ---------- From: Margherita Di Leo Date: Tue, Mar 3, 2015 at 10:41 AM Subject: [OSGeo-Discuss] OSGeo accepted to GSoC 2015 - overview of slot assignments To: OSGeo Discussions , OSGeo-SoC < soc at lists.osgeo.org> Dear All, it is our pleasure to announce that *OSGeo has been accepted as mentoring organization* also this year! [1] The OSGeo GSoC Team has been reshaped with respect to former communications, and it's now composed by myself (Madi) in the role of primary admin and the experienced Anne Ghisla in the role of co-admin. Now it's time for prospecting students to carefully browse the list of ideas and contact developers team of their interest. Mentor registration is not yet open and will be announced in due time. Students can officially apply on Melange from 16th to 27th of March. All, do keep an eye (and a calendar client reminder) on all *GSoC 2015 dates* [2]! This year, we will be using slightly different *procedure for assigning slots* to selected projects. The experience from previous years made it possible to define the criteria that will be applied this year, and hopefully will be improved in the future: 1. Each project requires at least *two mentors*. The soundness of the project, the selection of reliable mentors and student is responsibility of its community. However, this year we strongly encourage the community to assign to the wannabe-GSoC-student some small programming tasks or bug fixes, in order to be sure that (s)he is familiar with the selected software, the programming environment, version control system, mailing list, etc and can code. Particular attention should be paid in the selection of mentors that *won't disappear* in the course of the GSoC. 2. Each OSGeo software will have *one* slot assigned, provided that the conditions at point 1 are met. 3. Like previous years, OSGeo will host some like-minded projects that requested it, and will assign *1* slot to each guest, provided that the conditions at point 1 are met. 4. This year we want to encourage projects that entail the* integration between two or more OSGeo software*. For this reason, one extra slot will be assigned to (sound) projects that aim at integrating two or more software, provided that mentors of respective communities are involved. 5. If the number of slots will allow it, extra slots can be assigned to projects that have gained a good *rate of success* in the course of past years (reliable -not disappearing- mentors, student success, etc). Further discussion on specific slot assignments will take place among mentors in due time. This is the admins outline of this year's criteria. Please send answers to this announcement* to soc [3] list*, and forward this mail to all relevant mailing lists of your knowledge. *And now, let s do this thing!* *http://tinyurl.com/l32yzgp * Yours enthusiastically, Madi and Anne OSGeo GSoC Admins 2015 [1] http://google-opensource.blogspot.it/2015/03/mentoring-organizations-for-google.html [2] https://www.google-melange.com/gsoc/events/google/gsoc2015 [3] http://lists.osgeo.org/mailman/listinfo/soc -- Best regards, Dr. Margherita DI LEO Scientific / technical project officer European Commission - DG JRC Institute for Environment and Sustainability (IES) Via Fermi, 2749 I-21027 Ispra (VA) - Italy - TP 261 Tel. +39 0332 78 3600 margherita.di-leo at jrc.ec.europa.eu Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission. _______________________________________________ Discuss mailing list Discuss at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stefan.Blumentrath at nina.no Tue Mar 3 02:13:10 2015 From: Stefan.Blumentrath at nina.no (Blumentrath, Stefan) Date: Tue, 3 Mar 2015 10:13:10 +0000 Subject: [GRASS-dev] Fwd: [OSGeo-Discuss] OSGeo accepted to GSoC 2015 - overview of slot assignments In-Reply-To: References: Message-ID: <317669c481b246a4a0eb12214a3c00d9@NINSRV23.nina.no> Good to hear. As for the ?GRASS GIS locations created from public data? idea, I might be able to provide some shell scripts to start with and I guess many others have something similar too. A central question there would be likely licensing of the data which is not always clear I am afraid?! Cheers Stefan From: grass-dev-bounces at lists.osgeo.org [mailto:grass-dev-bounces at lists.osgeo.org] On Behalf Of Markus Neteler Sent: 3. mars 2015 10:59 To: GRASS developers list Subject: [GRASS-dev] Fwd: [OSGeo-Discuss] OSGeo accepted to GSoC 2015 - overview of slot assignments FYI ---------- Forwarded message ---------- From: Margherita Di Leo > Date: Tue, Mar 3, 2015 at 10:41 AM Subject: [OSGeo-Discuss] OSGeo accepted to GSoC 2015 - overview of slot assignments To: OSGeo Discussions >, OSGeo-SoC > Dear All, it is our pleasure to announce that OSGeo has been accepted as mentoring organization also this year! [1] The OSGeo GSoC Team has been reshaped with respect to former communications, and it's now composed by myself (Madi) in the role of primary admin and the experienced Anne Ghisla in the role of co-admin. Now it's time for prospecting students to carefully browse the list of ideas and contact developers team of their interest. Mentor registration is not yet open and will be announced in due time. Students can officially apply on Melange from 16th to 27th of March. All, do keep an eye (and a calendar client reminder) on all GSoC 2015 dates [2]! This year, we will be using slightly different procedure for assigning slots to selected projects. The experience from previous years made it possible to define the criteria that will be applied this year, and hopefully will be improved in the future: 1. Each project requires at least two mentors. The soundness of the project, the selection of reliable mentors and student is responsibility of its community. However, this year we strongly encourage the community to assign to the wannabe-GSoC-student some small programming tasks or bug fixes, in order to be sure that (s)he is familiar with the selected software, the programming environment, version control system, mailing list, etc and can code. Particular attention should be paid in the selection of mentors that won't disappear in the course of the GSoC. 2. Each OSGeo software will have one slot assigned, provided that the conditions at point 1 are met. 3. Like previous years, OSGeo will host some like-minded projects that requested it, and will assign 1 slot to each guest, provided that the conditions at point 1 are met. 4. This year we want to encourage projects that entail the integration between two or more OSGeo software. For this reason, one extra slot will be assigned to (sound) projects that aim at integrating two or more software, provided that mentors of respective communities are involved. 5. If the number of slots will allow it, extra slots can be assigned to projects that have gained a good rate of success in the course of past years (reliable -not disappearing- mentors, student success, etc). Further discussion on specific slot assignments will take place among mentors in due time. This is the admins outline of this year's criteria. Please send answers to this announcement to soc [3] list, and forward this mail to all relevant mailing lists of your knowledge. And now, let s do this thing! http://tinyurl.com/l32yzgp Yours enthusiastically, Madi and Anne OSGeo GSoC Admins 2015 [1] http://google-opensource.blogspot.it/2015/03/mentoring-organizations-for-google.html [2] https://www.google-melange.com/gsoc/events/google/gsoc2015 [3] http://lists.osgeo.org/mailman/listinfo/soc -- Best regards, Dr. Margherita DI LEO Scientific / technical project officer European Commission - DG JRC Institute for Environment and Sustainability (IES) Via Fermi, 2749 I-21027 Ispra (VA) - Italy - TP 261 Tel. +39 0332 78 3600 margherita.di-leo at jrc.ec.europa.eu Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission. _______________________________________________ Discuss mailing list Discuss at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Tue Mar 3 04:07:23 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 03 Mar 2015 12:07:23 -0000 Subject: [GRASS-dev] [GRASS GIS] #2602: GUI preferences dialog fails to open In-Reply-To: <040.6509d418a3f553976db6ecf3b6e2fd2a@osgeo.org> References: <040.6509d418a3f553976db6ecf3b6e2fd2a@osgeo.org> Message-ID: <049.62c4ae7d548cee48a1320065293b288c@osgeo.org> #2602: GUI preferences dialog fails to open -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: 7.0.0 Keywords: | Platform: MSWindows XP Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by marisn): It is caused by a faulty translation to Latvian language (shame on me). Issue is fixed in trunk with r64789 Leaving open, as r64789 needs to be backported to release branch. -- Ticket URL: GRASS GIS From trac at osgeo.org Tue Mar 3 04:30:14 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 03 Mar 2015 12:30:14 -0000 Subject: [GRASS-dev] [GRASS GIS] #2602: GUI preferences dialog fails to open In-Reply-To: <040.6509d418a3f553976db6ecf3b6e2fd2a@osgeo.org> References: <040.6509d418a3f553976db6ecf3b6e2fd2a@osgeo.org> Message-ID: <049.2221aa2048857c2469698679eaf2ca2f@osgeo.org> #2602: GUI preferences dialog fails to open ---------------------------+------------------------------------------------ Reporter: marisn | Owner: grass-dev@? Type: defect | Status: closed Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: 7.0.0 Resolution: fixed | Keywords: Platform: MSWindows XP | Cpu: Unspecified ---------------------------+------------------------------------------------ Changes (by neteler): * status: new => closed * resolution: => fixed Comment: Replying to [comment:3 marisn]: > Leaving open, as r64789 needs to be backported to release branch. Backported, closing. -- Ticket URL: GRASS GIS From landa.martin at gmail.com Tue Mar 3 05:38:42 2015 From: landa.martin at gmail.com (Martin Landa) Date: Tue, 3 Mar 2015 14:38:42 +0100 Subject: [GRASS-dev] Select vector feature - Error In-Reply-To: <54F574BF.5050807@club.worldonline.be> References: <54F574BF.5050807@club.worldonline.be> Message-ID: Hi, 2015-03-03 9:45 GMT+01:00 Moritz Lennert : [...] > BTW, two remarks for enhancement: > > - It would be nice if the tool allowed to select also by drawing a polygon, > not only by clicking. right, it's in TODO. > - There is no close button on the little window listing the selected > features. Sending in copy to the author (Matej Krejci), thanks for testing. Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From massimodisasha at gmail.com Tue Mar 3 07:23:40 2015 From: massimodisasha at gmail.com (epi) Date: Tue, 3 Mar 2015 10:23:40 -0500 Subject: [GRASS-dev] display monitor (how to everlay 2 layers) In-Reply-To: References: Message-ID: <6F245A1A-A2E1-41B4-AA1E-5BB184036E82@gmail.com> Hi, i?m trying to generate a png from python using the the d.mon / d. last / d.vect commands in the past (grass70) this code worked fine : GRASS_TRANSPARENT=TRUE GRASS_TRUECOLOR=TRUE GRASS_PNG_COMPRESSION=9 GRASS_PNG_AUTO_WRITE=TRUE export GRASS_TRANSPARENT GRASS_TRUECOLOR GRASS_PNG_COMPRESSION GRASS_PNG_AUTO_WRITE d.mon start=cairo --q output={mapname}.png g.region rast={mapname} n={n} s={s} w={w} e={e} -a --q d.rast map={mapname} --q d.vect map={mapname} color={vcolor} size={vsize} icon={icon} --q d.mon stop=cairo --q but now is not generating any png :( browsing the add ons i saw v.out.png is no more in trunk and i gave it a try : ### import os import sys from grass.script import core as grass from grass.script import gisenv from grass.pygrass.modules.shortcuts import display as d from grass.pygrass.modules.shortcuts import general as g os.environ['GRASS_RENDER_IMMEDIATE'] = 'png' os.environ['GRASS_RENDER_FILE'] = 'pfile3.png' os.environ['GRASS_RENDER_FILE_COMPRESSION'] = '9' os.environ['GRASS_RENDER_WIDTH'] = '640' os.environ['GRASS_RENDER_HEIGHT'] = '480' os.environ['GRASS_RENDER_TRANSPARENT']='TRUE' monitor_old = None genv = gisenv() if 'MONITOR' in genv: monitor_old = genv['MONITOR'] g.gisenv(unset='MONITOR') d.vect(map='p') d.rast(map='basemap') ### this time the png is generated, but i?m no more able to overlay 2 different layers to compose my map ? Have you any thoughts on what?s wrong in those procedures ? I tried on the osgeolive, the first approach works for grass70. building grass71 and try it again ? no png is generated. Thanks for any advice. Massimo. From landa.martin at gmail.com Tue Mar 3 07:30:27 2015 From: landa.martin at gmail.com (Martin Landa) Date: Tue, 3 Mar 2015 16:30:27 +0100 Subject: [GRASS-dev] display monitor (how to everlay 2 layers) In-Reply-To: <6F245A1A-A2E1-41B4-AA1E-5BB184036E82@gmail.com> References: <6F245A1A-A2E1-41B4-AA1E-5BB184036E82@gmail.com> Message-ID: Hi, 2015-03-03 16:23 GMT+01:00 epi : > GRASS_TRANSPARENT=TRUE > GRASS_TRUECOLOR=TRUE > GRASS_PNG_COMPRESSION=9 > GRASS_PNG_AUTO_WRITE=TRUE > export GRASS_TRANSPARENT GRASS_TRUECOLOR GRASS_PNG_COMPRESSION GRASS_PNG_AUTO_WRITE render-related variables has been renamed to GRASS_RENDER_, see [1]. > os.environ['GRASS_RENDER_IMMEDIATE'] = 'png' > os.environ['GRASS_RENDER_FILE'] = 'pfile3.png' > os.environ['GRASS_RENDER_FILE_COMPRESSION'] = '9' > os.environ['GRASS_RENDER_WIDTH'] = '640' > os.environ['GRASS_RENDER_HEIGHT'] = '480' > os.environ['GRASS_RENDER_TRANSPARENT']='TRUE' > > monitor_old = None > genv = gisenv() > if 'MONITOR' in genv: > monitor_old = genv['MONITOR'] > g.gisenv(unset='MONITOR') > > d.vect(map='p') > d.rast(map='basemap') > ### > > this time the png is generated, but i'm no more able to overlay 2 different layers to compose my map ... You need to define GRASS_RENDER_READ_FILE='TRUE'. Martin [1] http://grass.osgeo.org/grass70/manuals/variables.html#list-of-selected-grass-environment-variables-for-rendering -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From massimodisasha at gmail.com Tue Mar 3 08:13:29 2015 From: massimodisasha at gmail.com (epi) Date: Tue, 3 Mar 2015 11:13:29 -0500 Subject: [GRASS-dev] display monitor (how to everlay 2 layers) In-Reply-To: References: <6F245A1A-A2E1-41B4-AA1E-5BB184036E82@gmail.com> Message-ID: Thank Martin, I tried with this : http://nbviewer.ipython.org/gist/anonymous/e72c4a3b311370ade0db but I still have the same behavior Thanks a lot to for looking into this! Massimo. > On Mar 3, 2015, at 10:30 AM, Martin Landa wrote: > > Hi, > > 2015-03-03 16:23 GMT+01:00 epi : >> GRASS_TRANSPARENT=TRUE >> GRASS_TRUECOLOR=TRUE >> GRASS_PNG_COMPRESSION=9 >> GRASS_PNG_AUTO_WRITE=TRUE >> export GRASS_TRANSPARENT GRASS_TRUECOLOR GRASS_PNG_COMPRESSION GRASS_PNG_AUTO_WRITE > > render-related variables has been renamed to GRASS_RENDER_, see [1]. > >> os.environ['GRASS_RENDER_IMMEDIATE'] = 'png' >> os.environ['GRASS_RENDER_FILE'] = 'pfile3.png' >> os.environ['GRASS_RENDER_FILE_COMPRESSION'] = '9' >> os.environ['GRASS_RENDER_WIDTH'] = '640' >> os.environ['GRASS_RENDER_HEIGHT'] = '480' >> os.environ['GRASS_RENDER_TRANSPARENT']='TRUE' >> >> monitor_old = None >> genv = gisenv() >> if 'MONITOR' in genv: >> monitor_old = genv['MONITOR'] >> g.gisenv(unset='MONITOR') >> >> d.vect(map='p') >> d.rast(map='basemap') >> ### >> >> this time the png is generated, but i'm no more able to overlay 2 different layers to compose my map ... > > You need to define GRASS_RENDER_READ_FILE='TRUE'. Martin > > [1] http://grass.osgeo.org/grass70/manuals/variables.html#list-of-selected-grass-environment-variables-for-rendering > > -- > Martin Landa > http://geo.fsv.cvut.cz/gwiki/Landa > http://gismentors.cz/mentors/landa -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Tue Mar 3 10:02:25 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 03 Mar 2015 18:02:25 -0000 Subject: [GRASS-dev] [GRASS GIS] #2598: g.extension compilation fails In-Reply-To: <042.ea4d2b813a6fcad1e54c96e268892240@osgeo.org> References: <042.ea4d2b813a6fcad1e54c96e268892240@osgeo.org> Message-ID: <051.fec1f0b40377f90ae3e12c2b3af4eec4@osgeo.org> #2598: g.extension compilation fails ----------------------+----------------------------------------------------- Reporter: ewcgrass | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Default | Version: svn-releasebranch70 Keywords: | Platform: Linux Cpu: x86-64 | ----------------------+----------------------------------------------------- Comment(by ewcgrass): I have managed to get g.extension to compile several (but not all) addon modules. I did this by copying (as root user) all files located inside the grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/include/grass and /include/Make, grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/tools, and grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/lib directories, into the respective sub-directories inside grass7.0.1svn-x86_64-unknown- linux-gnu-21_02_2015/dist.x86_64-unknown-linux-gnu. It would appear that the requirement for the /dist.x86_64-unknown-linux-gnu directory may have somehow found it's way into a make or other file somewhere, perhaps as a remnant from past development work? I suggest this because I found reference to that directory in the /include/Make/Platform.make.orig file. My search for references to this directory were not extensive, so perhaps it is present elsewhere too? I am not a coder, but I do not view what I have done to get g.extension to compile to be a proper fix (it is a band-aid fix only). However, I am hoping this information may help those who are more familiar with the code related to g.extension, or to other compilation activities within GRASS, to find the source of this problem? The modules that still refuse to compile appear to be doing so because of some issues related to file permissions (??) and/or missing header files. For example, I have not been able to find geos_c.h anywhere within the /grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015 directory, which is needed to compile r.stream.order, r.stream.snap, v.surf.mass, v.centerpoint, etc. Also, some errors appear to maybe be related to syntax errors; for example for modules v.transects and r.stream.basins. I intend to report back with more information as/if time permits for me to "explore" more deeply into the remaining compilation problems. -- Ticket URL: GRASS GIS From kratochanna at gmail.com Tue Mar 3 10:48:50 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Tue, 3 Mar 2015 13:48:50 -0500 Subject: [GRASS-dev] display monitor (how to everlay 2 layers) In-Reply-To: References: <6F245A1A-A2E1-41B4-AA1E-5BB184036E82@gmail.com> Message-ID: On Tue, Mar 3, 2015 at 11:13 AM, epi wrote: > Thank Martin, > > I tried with this : > > http://nbviewer.ipython.org/gist/anonymous/e72c4a3b311370ade0db > > but I still have the same behavior > I think it's GRASS_RENDER_FILE_READ, not GRASS_RENDER_READ_FILE. http://grass.osgeo.org/grass71/manuals/cairodriver.html Anna > Thanks a lot to for looking into this! > > Massimo. > > > On Mar 3, 2015, at 10:30 AM, Martin Landa wrote: > > Hi, > > 2015-03-03 16:23 GMT+01:00 epi : > > GRASS_TRANSPARENT=TRUE > GRASS_TRUECOLOR=TRUE > GRASS_PNG_COMPRESSION=9 > GRASS_PNG_AUTO_WRITE=TRUE > export GRASS_TRANSPARENT GRASS_TRUECOLOR GRASS_PNG_COMPRESSION > GRASS_PNG_AUTO_WRITE > > > render-related variables has been renamed to GRASS_RENDER_, see [1]. > > os.environ['GRASS_RENDER_IMMEDIATE'] = 'png' > os.environ['GRASS_RENDER_FILE'] = 'pfile3.png' > os.environ['GRASS_RENDER_FILE_COMPRESSION'] = '9' > os.environ['GRASS_RENDER_WIDTH'] = '640' > os.environ['GRASS_RENDER_HEIGHT'] = '480' > os.environ['GRASS_RENDER_TRANSPARENT']='TRUE' > > monitor_old = None > genv = gisenv() > if 'MONITOR' in genv: > monitor_old = genv['MONITOR'] > g.gisenv(unset='MONITOR') > > d.vect(map='p') > d.rast(map='basemap') > ### > > this time the png is generated, but i'm no more able to overlay 2 > different layers to compose my map ... > > > You need to define GRASS_RENDER_READ_FILE='TRUE'. Martin > > [1] > http://grass.osgeo.org/grass70/manuals/variables.html#list-of-selected-grass-environment-variables-for-rendering > > -- > Martin Landa > http://geo.fsv.cvut.cz/gwiki/Landa > http://gismentors.cz/mentors/landa > > > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From landa.martin at gmail.com Tue Mar 3 10:53:43 2015 From: landa.martin at gmail.com (Martin Landa) Date: Tue, 3 Mar 2015 19:53:43 +0100 Subject: [GRASS-dev] display monitor (how to everlay 2 layers) In-Reply-To: References: <6F245A1A-A2E1-41B4-AA1E-5BB184036E82@gmail.com> Message-ID: 2015-03-03 19:48 GMT+01:00 Anna Petr??ov? : > I think it's GRASS_RENDER_FILE_READ, not GRASS_RENDER_READ_FILE. > http://grass.osgeo.org/grass71/manuals/cairodriver.html you are right, Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From trac at osgeo.org Tue Mar 3 12:59:47 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 03 Mar 2015 20:59:47 -0000 Subject: [GRASS-dev] [GRASS GIS] #2598: g.extension compilation fails In-Reply-To: <042.ea4d2b813a6fcad1e54c96e268892240@osgeo.org> References: <042.ea4d2b813a6fcad1e54c96e268892240@osgeo.org> Message-ID: <051.2bbd7769786565c78557431524f5d833@osgeo.org> #2598: g.extension compilation fails ----------------------+----------------------------------------------------- Reporter: ewcgrass | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Default | Version: svn-releasebranch70 Keywords: | Platform: Linux Cpu: x86-64 | ----------------------+----------------------------------------------------- Comment(by ewcgrass): Have resolved the geos_c.h header file issue by installing the geos-devel package system-wide. Geos-devel should be added to the optional requirements.html list. -- Ticket URL: GRASS GIS From hmitaso at ncsu.edu Tue Mar 3 17:55:15 2015 From: hmitaso at ncsu.edu (Helena Mitasova) Date: Tue, 3 Mar 2015 20:55:15 -0500 Subject: [GRASS-dev] [GRASS-PSC] RFC 4: Release procedure In-Reply-To: <54F5714E.4090401@club.worldonline.be> References: <539821A5.4010109@club.worldonline.be> <54F5714E.4090401@club.worldonline.be> Message-ID: I agree with the suggested modification by Moritz, Helena Helena Mitasova Professor at the Department of Marine, Earth, and Atmospheric Sciences and Center for Geospatial Analytics North Carolina State University Raleigh, NC 27695-8208 hmitaso at ncsu.edu http://geospatial.ncsu.edu/osgeorel/ "All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.? On Mar 3, 2015, at 3:31 AM, Moritz Lennert wrote: > On 01/03/15 19:02, Markus Neteler wrote: >> Hi, >> >> On Tue, Feb 17, 2015 at 1:54 PM, Markus Neteler wrote: >>> On Fri, Jun 20, 2014 at 3:39 AM, Scott Mitchell wrote: >>>> Agreed, and I like Markus? idea of testing it on an upcoming release. >>> >>> (just a low priority comment here) >>> >>> While doing so it turns out that one week between RC2 and final is a bit short. >>> And some urgent fixes came in only during the RC procedure. We need to >>> [add] a phrase if this requires a new RC (not this time though!) or not >>> or depends. >> >> Overall, we got the release out :-) >> Any opinions on above remaining issue? > > I think that with time we will get better at this procedure and the one week limit should be ok, but I have no objections to add a phrase to step 6 such as > > "A final, concerted bug squashing effort by all developers of no more than one week. During that same time the release announcement is drafted. If an important bug is discovered for which a fix needs some more testing, an RC3 can exceptionally be published, with another week of testing before final release." > > Moritz > _______________________________________________ > grass-psc mailing list > grass-psc at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-psc From Michael.Barton at asu.edu Tue Mar 3 18:57:26 2015 From: Michael.Barton at asu.edu (Michael Barton) Date: Wed, 4 Mar 2015 02:57:26 +0000 Subject: [GRASS-dev] [GRASS-PSC] RFC 4: Release procedure In-Reply-To: References: <539821A5.4010109@club.worldonline.be> <54F5714E.4090401@club.worldonline.be> Message-ID: <1E9DAE96-ADCD-4465-A8C4-BD2D5693462C@asu.edu> I agree. Michael ____________________ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Head, Graduate Faculty in Complex Adaptive Systems Science Arizona State University voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC) www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu > On Mar 3, 2015, at 6:55 PM, Helena Mitasova wrote: > > I agree with the suggested modification by Moritz, > > Helena > > Helena Mitasova > Professor at the Department of Marine, > Earth, and Atmospheric Sciences > and Center for Geospatial Analytics > North Carolina State University > Raleigh, NC 27695-8208 > hmitaso at ncsu.edu > http://geospatial.ncsu.edu/osgeorel/ > "All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.? > > On Mar 3, 2015, at 3:31 AM, Moritz Lennert wrote: > >> On 01/03/15 19:02, Markus Neteler wrote: >>> Hi, >>> >>> On Tue, Feb 17, 2015 at 1:54 PM, Markus Neteler wrote: >>>> On Fri, Jun 20, 2014 at 3:39 AM, Scott Mitchell wrote: >>>>> Agreed, and I like Markus? idea of testing it on an upcoming release. >>>> >>>> (just a low priority comment here) >>>> >>>> While doing so it turns out that one week between RC2 and final is a bit short. >>>> And some urgent fixes came in only during the RC procedure. We need to >>>> [add] a phrase if this requires a new RC (not this time though!) or not >>>> or depends. >>> >>> Overall, we got the release out :-) >>> Any opinions on above remaining issue? >> >> I think that with time we will get better at this procedure and the one week limit should be ok, but I have no objections to add a phrase to step 6 such as >> >> "A final, concerted bug squashing effort by all developers of no more than one week. During that same time the release announcement is drafted. If an important bug is discovered for which a fix needs some more testing, an RC3 can exceptionally be published, with another week of testing before final release." >> >> Moritz >> _______________________________________________ >> grass-psc mailing list >> grass-psc at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/grass-psc > > _______________________________________________ > grass-psc mailing list > grass-psc at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-psc From massimodisasha at gmail.com Tue Mar 3 20:40:50 2015 From: massimodisasha at gmail.com (epi) Date: Tue, 3 Mar 2015 23:40:50 -0500 Subject: [GRASS-dev] display monitor (how to everlay 2 layers) In-Reply-To: References: <6F245A1A-A2E1-41B4-AA1E-5BB184036E82@gmail.com> Message-ID: <00E39C10-061B-47EF-96F2-06F39894F2E9@gmail.com> Martin, Anna, Thank you so much, it works great. Massimo. > On Mar 3, 2015, at 1:53 PM, Martin Landa wrote: > > 2015-03-03 19:48 GMT+01:00 Anna Petr??ov? : >> I think it's GRASS_RENDER_FILE_READ, not GRASS_RENDER_READ_FILE. >> http://grass.osgeo.org/grass71/manuals/cairodriver.html > > you are right, Martin > > -- > Martin Landa > http://geo.fsv.cvut.cz/gwiki/Landa > http://gismentors.cz/mentors/landa From landa.martin at gmail.com Wed Mar 4 00:19:34 2015 From: landa.martin at gmail.com (Martin Landa) Date: Wed, 4 Mar 2015 09:19:34 +0100 Subject: [GRASS-dev] [GRASS-PSC] RFC 4: Release procedure In-Reply-To: <54F5714E.4090401@club.worldonline.be> References: <539821A5.4010109@club.worldonline.be> <54F5714E.4090401@club.worldonline.be> Message-ID: Hi, 2015-03-03 9:31 GMT+01:00 Moritz Lennert : > "A final, concerted bug squashing effort by all developers of no more than > one week. During that same time the release announcement is drafted. If an > important bug is discovered for which a fix needs some more testing, an RC3 > can exceptionally be published, with another week of testing before final > release." make sense to me, Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From radim.blazek at gmail.com Wed Mar 4 01:11:40 2015 From: radim.blazek at gmail.com (Radim Blazek) Date: Wed, 4 Mar 2015 10:11:40 +0100 Subject: [GRASS-dev] [GRASS GIS] #1628: segfault in r.walk In-Reply-To: <21367.40277.93194.362247@cerise.gclements.plus.com> References: <042.cd10e8d2eb8b89369d63f56a9e1f5d41@osgeo.org> <051.a36efe773ba5400a995e27aad9a5408b@osgeo.org> <21367.40277.93194.362247@cerise.gclements.plus.com> Message-ID: Sorry for not responding earlier, I missed somehow this mail. On Sat, May 17, 2014 at 7:33 PM, Glynn Clements wrote: > Is there any reason to retain lib/sites as a separate library, rather > than simply merging it into v.in.sites? There isn't a ctypes wrapper > for it, so I'm reasonably sure it isn't used elsewhere in GRASS. > > [Radim: does QGIS use it?] No, QGIS does not use lib/sites. I appreciate a lot that you asked me and I'll always do in such cases. I probably missed the email because I was 'cc' only and not 'to'. Thanks Radim From peter.zamb at gmail.com Wed Mar 4 06:14:07 2015 From: peter.zamb at gmail.com (Pietro) Date: Wed, 4 Mar 2015 15:14:07 +0100 Subject: [GRASS-dev] vector group by based on attribute table Message-ID: Dear all, I'm looking for a GRASS module that unify the geometries and the values, If I have a configuration like: geo features | cat | id | A | B geofeature1 => cat1, id1, a1, b1 geofeature2 => cat2, id1, a2, b2 geofeature3 => cat3, id2, a3, b3 geofeature4 => cat4, id2, a4, b4 geofeature5 => cat5, id2, a5, b5 I would like to have something like: SELECT id, mean(A) as meanA, mean(B) as meanB FROM table GROUP BY id; geo features | cat | meanA | meanB geo1, geo2 => id1, mean(a1, a2), mean(b1, b2) geo3, geo4, geo5 => id2, mean(a3, a4, a5), mean(b3, b4, b5) There is already something to do this simple operation? Do you have any suggestions? Thank you Pietro From mlennert at club.worldonline.be Wed Mar 4 07:29:03 2015 From: mlennert at club.worldonline.be (Moritz Lennert) Date: Wed, 04 Mar 2015 16:29:03 +0100 Subject: [GRASS-dev] vector group by based on attribute table In-Reply-To: References: Message-ID: <54F724BF.9040104@club.worldonline.be> On 04/03/15 15:14, Pietro wrote: > Dear all, > > I'm looking for a GRASS module that unify the geometries and the > values, If I have a configuration like: > > geo features | cat | id | A | B > geofeature1 => cat1, id1, a1, b1 > geofeature2 => cat2, id1, a2, b2 > geofeature3 => cat3, id2, a3, b3 > geofeature4 => cat4, id2, a4, b4 > geofeature5 => cat5, id2, a5, b5 > > I would like to have something like: > > SELECT id, mean(A) as meanA, mean(B) as meanB FROM table GROUP BY id; > > geo features | cat | meanA | meanB > geo1, geo2 => id1, mean(a1, a2), mean(b1, b2) > geo3, geo4, geo5 => id2, mean(a3, a4, a5), mean(b3, b4, b5) > > There is already something to do this simple operation? > Do you have any suggestions? > Does this mean you want to fusion the geofeatures (thus imlying that they are adjacent) or do you want to group them in a sort of typology ? If the first, then it should probably be possible to integrate this into v.dissolve. If the second, I could imagine a combination of v.reclass / v.category to create a new/second layer and then your SQL query to populate the table of that layer. Moritz From peter.zamb at gmail.com Wed Mar 4 07:35:44 2015 From: peter.zamb at gmail.com (Pietro) Date: Wed, 4 Mar 2015 16:35:44 +0100 Subject: [GRASS-dev] vector group by based on attribute table In-Reply-To: <54F724BF.9040104@club.worldonline.be> References: <54F724BF.9040104@club.worldonline.be> Message-ID: On Wed, Mar 4, 2015 at 4:29 PM, Moritz Lennert wrote: > On 04/03/15 15:14, Pietro wrote: >> >> Dear all, >> >> I'm looking for a GRASS module that unify the geometries and the >> values, If I have a configuration like: >> >> geo features | cat | id | A | B >> geofeature1 => cat1, id1, a1, b1 >> geofeature2 => cat2, id1, a2, b2 >> geofeature3 => cat3, id2, a3, b3 >> geofeature4 => cat4, id2, a4, b4 >> geofeature5 => cat5, id2, a5, b5 >> >> I would like to have something like: >> >> SELECT id, mean(A) as meanA, mean(B) as meanB FROM table GROUP BY id; >> >> geo features | cat | meanA | meanB >> geo1, geo2 => id1, mean(a1, a2), mean(b1, b2) >> geo3, geo4, geo5 => id2, mean(a3, a4, a5), mean(b3, b4, b5) >> >> There is already something to do this simple operation? >> Do you have any suggestions? > > > Does this mean you want to fusion the geofeatures (thus imlying that they > are adjacent) or do you want to group them in a sort of typology ? No, I don't want the fusion of the geometry features, I like the idea of different/distinct geometry features with the same category. > If the second, I could imagine a combination of v.reclass / v.category to > create a new/second layer and then your SQL query to populate the table of > that layer. Ok, I will look into it, thanks for the suggestion. Pietro From mlennert at club.worldonline.be Wed Mar 4 09:03:01 2015 From: mlennert at club.worldonline.be (Moritz Lennert) Date: Wed, 04 Mar 2015 18:03:01 +0100 Subject: [GRASS-dev] [GRASS-PSC] RFC 4: Release procedure In-Reply-To: References: <539821A5.4010109@club.worldonline.be> <54F5714E.4090401@club.worldonline.be> Message-ID: <54F73AC5.3080002@club.worldonline.be> On 04/03/15 09:19, Martin Landa wrote: > Hi, > > 2015-03-03 9:31 GMT+01:00 Moritz Lennert : >> "A final, concerted bug squashing effort by all developers of no more than >> one week. During that same time the release announcement is drafted. If an >> important bug is discovered for which a fix needs some more testing, an RC3 >> can exceptionally be published, with another week of testing before final >> release." > > make sense to me, Martin > Ok, I've added the change. In any case we are a small enough team to handle things flexibly if needed. For me, the idea of elaborating a release procedure is mostly to make the process more explicit and thus ease communication, not to hammer laws into stone Moritz From trac at osgeo.org Wed Mar 4 09:12:27 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 04 Mar 2015 17:12:27 -0000 Subject: [GRASS-dev] [GRASS GIS] #2607: Python shell hint results in OSError error(None): None Message-ID: <040.3971a1a2a8e964a352aaac26d5a40d5c@osgeo.org> #2607: Python shell hint results in OSError error(None): None -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: Component: wxGUI | Version: 7.0.0 Keywords: | Platform: MSWindows Vista Cpu: Unspecified | -------------------------+-------------------------------------------------- In Python shell type in: {{{ from grass.pygrass.modules.shortcuts import raster as r r. }}} and observe how it gets filled with gazzilion of error messages: "OSError error(None): None" Due to this error, it is impossible to use Python shell, as it is trying to execute error message as a command instead of just providing it as an "error text that messes up CLI". -- Ticket URL: GRASS GIS From p.vanbreugel at gmail.com Wed Mar 4 09:49:02 2015 From: p.vanbreugel at gmail.com (Paulo van Breugel) Date: Wed, 4 Mar 2015 18:49:02 +0100 Subject: [GRASS-dev] raster digitizer Message-ID: When editing a raster using the raster digitizer, the resolution is changes (lower resolution) after saving the edits. Is this the intended behaviour, and if so, what is determining the resolution? My prefered behaviour would be that the resolution used follows that of the region settings. -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Wed Mar 4 09:54:32 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 04 Mar 2015 17:54:32 -0000 Subject: [GRASS-dev] [GRASS GIS] #2608: Launching Python script on Windows fails with missing freeze_support Message-ID: <040.7de23d5903674d9ee8157dfeff0a04e2@osgeo.org> #2608: Launching Python script on Windows fails with missing freeze_support -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: Component: Python | Version: 7.0.0 Keywords: | Platform: MSWindows Vista Cpu: Unspecified | -------------------------+-------------------------------------------------- Launch the following script on Windows: {{{ from grass.pygrass.modules.shortcuts import raster as r r.mapcalc("rand0 = round(rand(0,1))", s=True) r.neighbors(input="rand0", output="count", method="count") r.mapcalc("rand1 = if (count > 3, 1, null())") r.mapcalc("rand2 = if (count < 1, 1, null())") }}} and observe an error: {{{ C:\Users\tests\Documents\rand.py Traceback (most recent call last): File "", line 1, in File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\multiprocessing\forking.py", line 380, in main prepare(preparation_data) File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\multiprocessing\forking.py", line 495, in prepare '__parents_main__', file, path_name, etc File "C:\Users\tests\Documents\rand.py", line 2, in r.mapcalc("rand0 = round(rand(0,1))", s=True) File "C:\Program Files\GRASS GIS 7.0.0\etc\python\grass\pygrass\modules\interface\module.py", line 616, in __call__ return self.run() File "C:\Program Files\GRASS GIS 7.0.0\etc\python\grass\pygrass\modules\interface\module.py", line 714, in run get_msgr().debug(1, self.get_bash()) File "C:\Program Files\GRASS GIS 7.0.0\etc\python\grass\pygrass\messages\__init__.py", line 352, in get_msgr _instance[0] = Messenger(*args, **kwargs) File "C:\Program Files\GRASS GIS 7.0.0\etc\python\grass\pygrass\messages\__init__.py", line 175, in __init__ self.start_server() File "C:\Program Files\GRASS GIS 7.0.0\etc\python\grass\pygrass\messages\__init__.py", line 185, in start_server self.server.start() File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\multiprocessing\process.py", line 130, in start self._popen = Popen(self) File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\multiprocessing\forking.py", line 258, in __init__ cmd = get_command_line() + [rhandle] File "C:\Program Files\GRASS GIS 7.0.0\Python27\lib\multiprocessing\forking.py", line 358, in get_command_line is not going to be frozen to produce a Windows executable.''') RuntimeError: Attempt to start a new process before the current process has finished its bootstrapping phase. This probably means that you are on Windows and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... The "freeze_support()" line can be omitted if the program is not going to be frozen to produce a Windows executable. }}} -- Ticket URL: GRASS GIS From kratochanna at gmail.com Wed Mar 4 10:36:14 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Wed, 4 Mar 2015 13:36:14 -0500 Subject: [GRASS-dev] raster digitizer In-Reply-To: References: Message-ID: On Wed, Mar 4, 2015 at 12:49 PM, Paulo van Breugel wrote: > When editing a raster using the raster digitizer, the resolution is > changes (lower resolution) after saving the edits. Is this the intended > behaviour, and if so, what is determining the resolution? > > My prefered behaviour would be that the resolution used follows that of > the region settings. > Hm, that's how it should behave. Are you sure it's not doing that? I don't change region anywhere in the code so it must use the computational region. Anna > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.vanbreugel at gmail.com Wed Mar 4 11:07:54 2015 From: p.vanbreugel at gmail.com (Paulo van Breugel) Date: Wed, 4 Mar 2015 20:07:54 +0100 Subject: [GRASS-dev] raster digitizer In-Reply-To: References: Message-ID: Hi Anna, OK, I did some further testing in another mapset, and it seems it was a problem with the region settings. After setting the region using 'set computational region from selected map(s)' the region wasn't set correctly. It seems to work fine now though. Sorry for the buzz. On Wed, Mar 4, 2015 at 7:36 PM, Anna Petr??ov? wrote: > > > On Wed, Mar 4, 2015 at 12:49 PM, Paulo van Breugel > wrote: > >> When editing a raster using the raster digitizer, the resolution is >> changes (lower resolution) after saving the edits. Is this the intended >> behaviour, and if so, what is determining the resolution? >> >> My prefered behaviour would be that the resolution used follows that of >> the region settings. >> > > Hm, that's how it should behave. Are you sure it's not doing that? I don't > change region anywhere in the code so it must use the computational region. > > Anna > >> >> _______________________________________________ >> grass-dev mailing list >> grass-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/grass-dev >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kratochanna at gmail.com Wed Mar 4 11:12:43 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Wed, 4 Mar 2015 14:12:43 -0500 Subject: [GRASS-dev] raster digitizer In-Reply-To: References: Message-ID: On Wed, Mar 4, 2015 at 2:07 PM, Paulo van Breugel wrote: > Hi Anna, > > OK, I did some further testing in another mapset, and it seems it was a > problem with the region settings. After setting the region using 'set > computational region from selected map(s)' the region wasn't set correctly. > It seems to work fine now though. Sorry for the buzz. > > > no problem Anna > > > > > > > > > > > > > > > On Wed, Mar 4, 2015 at 7:36 PM, Anna Petr??ov? > wrote: > >> >> >> On Wed, Mar 4, 2015 at 12:49 PM, Paulo van Breugel < >> p.vanbreugel at gmail.com> wrote: >> >>> When editing a raster using the raster digitizer, the resolution is >>> changes (lower resolution) after saving the edits. Is this the intended >>> behaviour, and if so, what is determining the resolution? >>> >>> My prefered behaviour would be that the resolution used follows that of >>> the region settings. >>> >> >> Hm, that's how it should behave. Are you sure it's not doing that? I >> don't change region anywhere in the code so it must use the computational >> region. >> >> Anna >> >>> >>> _______________________________________________ >>> grass-dev mailing list >>> grass-dev at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/grass-dev >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Wed Mar 4 11:16:22 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 04 Mar 2015 19:16:22 -0000 Subject: [GRASS-dev] [GRASS GIS] #2608: Launching Python script on Windows fails with missing freeze_support In-Reply-To: <040.7de23d5903674d9ee8157dfeff0a04e2@osgeo.org> References: <040.7de23d5903674d9ee8157dfeff0a04e2@osgeo.org> Message-ID: <049.e845f095d924884c532e93687a4f96be@osgeo.org> #2608: Launching Python script on Windows fails with missing freeze_support -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Python | Version: 7.0.0 Keywords: | Platform: MSWindows Vista Cpu: Unspecified | -------------------------+-------------------------------------------------- Changes (by martinl): * milestone: => 7.0.1 -- Ticket URL: GRASS GIS From neteler at osgeo.org Wed Mar 4 11:29:39 2015 From: neteler at osgeo.org (Markus Neteler) Date: Wed, 4 Mar 2015 20:29:39 +0100 Subject: [GRASS-dev] [GRASS-PSC] RFC 4: Release procedure In-Reply-To: <54F73AC5.3080002@club.worldonline.be> References: <539821A5.4010109@club.worldonline.be> <54F5714E.4090401@club.worldonline.be> <54F73AC5.3080002@club.worldonline.be> Message-ID: On Wed, Mar 4, 2015 at 6:03 PM, Moritz Lennert wrote: > On 04/03/15 09:19, Martin Landa wrote: >> >> Hi, >> >> 2015-03-03 9:31 GMT+01:00 Moritz Lennert : >>> >>> "A final, concerted bug squashing effort by all developers of no more >>> than one week. During that same time the release announcement is drafted. If >>> an important bug is discovered for which a fix needs some more testing, an >>> RC3 can exceptionally be published, with another week of testing before final >>> release." >> >> >> make sense to me, Martin >> > > Ok, I've added the change. In any case we are a small enough team to handle > things flexibly if needed. For me, the idea of elaborating a release > procedure is mostly to make the process more explicit and thus ease > communication, not to hammer laws into stone Great, so I'll make a motion on this in the next days unless any objection pops up before. Markus From trac at osgeo.org Wed Mar 4 13:09:21 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 04 Mar 2015 21:09:21 -0000 Subject: [GRASS-dev] [GRASS GIS] #2609: Upload raster category labels to a point file Message-ID: <044.72574e7d5b6799a757f34748a8bdd2b7@osgeo.org> #2609: Upload raster category labels to a point file -------------------------+-------------------------------------------------- Reporter: pvanbosgeo | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Default | Version: unspecified Keywords: | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- An option in r.what.rast to upload raster category labels to a point file -- Ticket URL: GRASS GIS From ychemin at gmail.com Wed Mar 4 16:38:25 2015 From: ychemin at gmail.com (Yann Chemin) Date: Thu, 5 Mar 2015 06:08:25 +0530 Subject: [GRASS-dev] GRASS GIS spectral analysis status Message-ID: Hi Devs, Just looking at what GRASS does in the spectral domain, as a planetary scientist asked me how far GRASS could go to replace ENVI capabilities in that matter. i.spec.unmix i.spec.sam i.spectral is there any other tool that directly relate to spectral analysis? Thx Yann PS: would there be a potential for GSoC or the ESA equivalent? From trac at osgeo.org Thu Mar 5 01:22:46 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 05 Mar 2015 09:22:46 -0000 Subject: [GRASS-dev] [GRASS GIS] #2610: GRASS Gis v 6.4.4. KeyError: 'version' when start Message-ID: <048.a8977d3604979bbcf759e28b3a6c4981@osgeo.org> #2610: GRASS Gis v 6.4.4. KeyError: 'version' when start ----------------------------+----------------------------------------------- Reporter: gisandforestry | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 6.4.4 Keywords: | Platform: Linux Cpu: x86-64 | ----------------------------+----------------------------------------------- I use manjaro linux, I have one ssd for my primary disk and a second disk for my data. I store the Grass Data on my second drive. When I try to start Grass I get the following error. {{{ GRASS 6.4.4 (Hellas):~ > ERROR: MAPSET Hellas - permission denied Traceback (most recent call last): File "/opt/grass64/etc/wxpython/wxgui.py", line 140, in sys.exit(main()) File "/opt/grass64/etc/wxpython/wxgui.py", line 133, in main app = GMApp(workspaceFile) File "/opt/grass64/etc/wxpython/wxgui.py", line 45, in __init__ wx.App.__init__(self, False) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/opt/grass64/etc/wxpython/wxgui.py", line 79, in OnInit workspace = self.workspaceFile) File "/opt/grass64/etc/wxpython/lmgr/frame.py", line 83, in __init__ self.baseTitle = _("GRASS GIS %s Layer Manager") % grass.version()['version'] KeyError: 'version' }}} -- Ticket URL: GRASS GIS From trac at osgeo.org Thu Mar 5 01:31:04 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 05 Mar 2015 09:31:04 -0000 Subject: [GRASS-dev] [GRASS GIS] #2610: GRASS Gis v 6.4.4. KeyError: 'version' when start In-Reply-To: <048.a8977d3604979bbcf759e28b3a6c4981@osgeo.org> References: <048.a8977d3604979bbcf759e28b3a6c4981@osgeo.org> Message-ID: <057.6ba812fec5f8171cacf37b59d59207fc@osgeo.org> #2610: GRASS Gis v 6.4.4. KeyError: 'version' when start ----------------------------+----------------------------------------------- Reporter: gisandforestry | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 6.4.5 Component: Startup | Version: 6.4.4 Keywords: | Platform: Linux Cpu: x86-64 | ----------------------------+----------------------------------------------- Changes (by martinl): * milestone: 7.0.1 => 6.4.5 -- Ticket URL: GRASS GIS From trac at osgeo.org Thu Mar 5 01:33:18 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 05 Mar 2015 09:33:18 -0000 Subject: [GRASS-dev] [GRASS GIS] #2610: GRASS Gis v 6.4.4. KeyError: 'version' when start In-Reply-To: <048.a8977d3604979bbcf759e28b3a6c4981@osgeo.org> References: <048.a8977d3604979bbcf759e28b3a6c4981@osgeo.org> Message-ID: <057.9d2a267f7cd3ae28e9694d86a38fd460@osgeo.org> #2610: GRASS Gis v 6.4.4. KeyError: 'version' when start ----------------------------+----------------------------------------------- Reporter: gisandforestry | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 6.4.5 Component: Startup | Version: 6.4.4 Keywords: | Platform: Linux Cpu: x86-64 | ----------------------------+----------------------------------------------- Comment(by martinl): It should be already fixed in SVN, probably it's time for 6.4.5RC1... -- Ticket URL: GRASS GIS From neteler at osgeo.org Thu Mar 5 02:17:08 2015 From: neteler at osgeo.org (Markus Neteler) Date: Thu, 5 Mar 2015 11:17:08 +0100 Subject: [GRASS-dev] Planning GRASS GIS 6.4.5 release Message-ID: Hi devs, we have accumulated some relevant fixes in the 6.4 release branch. Time to publish a new minor release. FYI: The last release happened before r60974 (25 June 2014) Following our proposed http://trac.osgeo.org/grass/wiki/RFC/4_ReleaseProcedure the release procedure would be: Step 1 - Proposal of release: Done. Step 2 (day X) - Soft freeze of release branch: suggestion 20 March 2015 Step 3 (X+30 days) - Hard freeze & RC1: [important at least for the winGRASS package] ... etc according to RFC4. Coordination to be done here: http://trac.osgeo.org/grass/wiki/Grass6Planning Any objections? Best, Markus From landa.martin at gmail.com Thu Mar 5 02:27:26 2015 From: landa.martin at gmail.com (Martin Landa) Date: Thu, 5 Mar 2015 11:27:26 +0100 Subject: [GRASS-dev] Planning GRASS GIS 6.4.5 release In-Reply-To: References: Message-ID: 2015-03-05 11:17 GMT+01:00 Markus Neteler : > Step 2 (day X) - Soft freeze of release branch: suggestion 20 March 2015 why not soft freeze since today? Are expecting some heavy changes in this branch? Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From mlennert at club.worldonline.be Thu Mar 5 02:30:23 2015 From: mlennert at club.worldonline.be (Moritz Lennert) Date: Thu, 05 Mar 2015 11:30:23 +0100 Subject: [GRASS-dev] Planning GRASS GIS 6.4.5 release In-Reply-To: References: Message-ID: <54F8303F.2050609@club.worldonline.be> On 05/03/15 11:17, Markus Neteler wrote: > Hi devs, > > we have accumulated some relevant fixes in the 6.4 release branch. > Time to publish a new minor release. > FYI: The last release happened before r60974 (25 June 2014) > > Following our proposed > http://trac.osgeo.org/grass/wiki/RFC/4_ReleaseProcedure > the release procedure would be: > > Step 1 - Proposal of release: Done. > > Step 2 (day X) - Soft freeze of release branch: suggestion 20 March 2015 > > Step 3 (X+30 days) - Hard freeze & RC1: As there has not been that much recent development and thus, AFAIK, not that much to backport, maybe +30 is a bit too much in this case. Just applying the flexibility I wrote about... ;-) Moritz From neteler at osgeo.org Thu Mar 5 06:04:00 2015 From: neteler at osgeo.org (Markus Neteler) Date: Thu, 5 Mar 2015 15:04:00 +0100 Subject: [GRASS-dev] Planning GRASS GIS 6.4.5 release In-Reply-To: References: Message-ID: On Thu, Mar 5, 2015 at 11:27 AM, Martin Landa wrote: > 2015-03-05 11:17 GMT+01:00 Markus Neteler : >> Step 2 (day X) - Soft freeze of release branch: suggestion 20 March 2015 > > why not soft freeze since today? Are expecting some heavy changes in > this branch? AFAIK the backport of the topology fixes. Markus From trac at osgeo.org Thu Mar 5 14:39:51 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 05 Mar 2015 22:39:51 -0000 Subject: [GRASS-dev] [GRASS GIS] #2611: add stream power index to GRASS GIS Message-ID: <040.d8a5e654f7b1ff5a7eff3bc9c8df06ce@osgeo.org> #2611: add stream power index to GRASS GIS -------------------------+-------------------------------------------------- Reporter: hellik | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: svn-releasebranch70 Keywords: | Platform: All Cpu: All | -------------------------+-------------------------------------------------- related to this discussion: http://osgeo-org.1560.x6.nabble.com/Stream-power-Index-calculation- td5190756.html add stream power index to GRASS GIS. as calculation parameters are already there, candidates for including are: r.watershed r.topidx thanks -- Ticket URL: GRASS GIS From markus.metz.giswork at gmail.com Thu Mar 5 23:26:59 2015 From: markus.metz.giswork at gmail.com (Markus Metz) Date: Fri, 6 Mar 2015 08:26:59 +0100 Subject: [GRASS-dev] Planning GRASS GIS 6.4.5 release In-Reply-To: References: Message-ID: On Thu, Mar 5, 2015 at 3:04 PM, Markus Neteler wrote: > On Thu, Mar 5, 2015 at 11:27 AM, Martin Landa wrote: >> 2015-03-05 11:17 GMT+01:00 Markus Neteler : >>> Step 2 (day X) - Soft freeze of release branch: suggestion 20 March 2015 >> >> why not soft freeze since today? Are expecting some heavy changes in >> this branch? > > AFAIK the backport of the topology fixes. Yes. I want to do the backports next week. Markus M > > Markus > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev From trac at osgeo.org Fri Mar 6 00:56:08 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 06 Mar 2015 08:56:08 -0000 Subject: [GRASS-dev] [GRASS GIS] #2612: pygrass: grid module still contains references to old type names Message-ID: <042.45e974d3da78726cfdc4dcb922c262d9@osgeo.org> #2612: pygrass: grid module still contains references to old type names -------------------------------+-------------------------------------------- Reporter: mlennert | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Default | Version: svn-trunk Keywords: pygrass grid type | Platform: Unspecified Cpu: Unspecified | -------------------------------+-------------------------------------------- The grid module in pygrass still calls types as 'rast' and 'vect', instead of 'raster' and 'vector'. IIUC, the attached patch should solve this, but as I'm not sure of possible consequences, I'd rather have someone who knows pygrass better look over it. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 6 01:36:45 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 06 Mar 2015 09:36:45 -0000 Subject: [GRASS-dev] [GRASS GIS] #2613: Polygons disappear after v.overlay AND operation Message-ID: <038.3d311469ca1dbe4a0ede16cf2013e11f@osgeo.org> #2613: Polygons disappear after v.overlay AND operation --------------------------------------------+------------------------------- Reporter: dido | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: Component: Vector | Version: 7.0.0 Keywords: v.overlay and polygons damaged | Platform: MSWindows 7 Cpu: x86-64 | --------------------------------------------+------------------------------- A shapefile polygon set A has been cut using a grid polygon B using a v.overlay AND operation. The result is expected to contain all the A polygons that are enclosed within the grid polygon B. The output is almost as expected but several A polygons within the B rectangle are missing. GRASS version is 7.0.0.RC1. Here is the io console log: (Fri Mar 06 11:07:12 2015) v.overlay ainput=K3445_NEW_FISH at BGM_POLY_UTM binput=GRID_K34058 at BGM_POLY_UTM operator=and output=K34058_NEW Copying vector features from ... Copying vector features from ... Snapping boundaries with 1e-008 ... Breaking lines... Removing duplicates... Cleaning boundaries at nodes... Breaking lines... Removing duplicates... Cleaning boundaries at nodes... Breaking lines... Removing duplicates... Cleaning boundaries at nodes... WARNING: Number of incorrect boundaries: 949 Merging lines... Attaching islands... Building areas... 25262 areas built 7375 isles built Attaching islands... Number of nodes: 41280 Number of primitives: 60697 Number of points: 0 Number of lines: 0 Number of boundaries: 60697 Number of centroids: 0 Number of areas: 25262 Number of isles: 7375 Querying vector map ... Querying vector map ... Writing centroids... WARNING: Unable to delete file 'E:\mapping\GRASS7DB/BGM_POLY_UTM/BGM_POLY_UTM/.tmp/unknown/vector/tmp_7316/coor' Building topology for vector map ... Registering primitives... 42630 primitives registered 642388 vertices registered Building areas... 12823 areas built 2888 isles built Attaching islands... Attaching centroids... Number of nodes: 19873 Number of primitives: 42630 Number of points: 0 Number of lines: 0 Number of boundaries: 29808 Number of centroids: 12822 Number of areas: 12823 Number of isles: 2888 v.overlay complete. (Fri Mar 06 11:07:46 2015) Command finished (34 sec) Files can be provided upon request (~50 Mb). -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 6 01:44:40 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 06 Mar 2015 09:44:40 -0000 Subject: [GRASS-dev] [GRASS GIS] #2614: wxgui Output save fails with UnicodeEncodeError Message-ID: <040.3584a91afab86a8e09c8e9e81bfb69ca@osgeo.org> #2614: wxgui Output save fails with UnicodeEncodeError -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: 7.0.1 Component: wxGUI | Version: 7.0.0 Keywords: | Platform: MSWindows Vista Cpu: Unspecified | -------------------------+-------------------------------------------------- Steps to reproduce: * in Command console tab click on "save button" * choose any file where to save output * observe an error printed in command console: {{{ Traceback (most recent call last): File "C:\Program Files\GRASS GIS 7.0.0\gui\wxpython\gui_core\goutput.py", line 387, in OnOutputSave output.write(text) UnicodeEncodeError : 'ascii' codec can't encode character u'\u012b' in position 273: ordinal not in range(128) }}} Priority is Major, as it creates 0 byte size files. I lost another error message due to not checking file contents after save :( -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 6 01:53:36 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 06 Mar 2015 09:53:36 -0000 Subject: [GRASS-dev] [GRASS GIS] #2613: Polygons disappear after v.overlay AND operation In-Reply-To: <038.3d311469ca1dbe4a0ede16cf2013e11f@osgeo.org> References: <038.3d311469ca1dbe4a0ede16cf2013e11f@osgeo.org> Message-ID: <047.4e54b33bdf6473a364a2e6ded3813ad9@osgeo.org> #2613: Polygons disappear after v.overlay AND operation --------------------------------------------+------------------------------- Reporter: dido | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: Component: Vector | Version: 7.0.0 Keywords: v.overlay and polygons damaged | Platform: MSWindows 7 Cpu: x86-64 | --------------------------------------------+------------------------------- Comment(by mmetz): A number of bugs related to vector topology have been found in 7.0.0RC1 and fixed in the final release of 7.0.0. Please try gain with the final release. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 6 02:08:36 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 06 Mar 2015 10:08:36 -0000 Subject: [GRASS-dev] [GRASS GIS] #2615: r.univar: allow choice of statistics Message-ID: <042.3f6f0bbb444da2912072f191d174668b@osgeo.org> #2615: r.univar: allow choice of statistics ---------------------------------+------------------------------------------ Reporter: mlennert | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.1.0 Component: Raster | Version: svn-trunk Keywords: r.univar statistics | Platform: Unspecified Cpu: Unspecified | ---------------------------------+------------------------------------------ It would be nice if r.univar allowed to chose which statistics are produced (in line with what v.rast.stats) especially when run with the '-t' flag. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 6 02:09:05 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 06 Mar 2015 10:09:05 -0000 Subject: [GRASS-dev] [GRASS GIS] #2612: pygrass: grid module still contains references to old type names In-Reply-To: <042.45e974d3da78726cfdc4dcb922c262d9@osgeo.org> References: <042.45e974d3da78726cfdc4dcb922c262d9@osgeo.org> Message-ID: <051.dc5ec5bcb5afe6c6fa424276a845b0c8@osgeo.org> #2612: pygrass: grid module still contains references to old type names -------------------------------+-------------------------------------------- Reporter: mlennert | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Python | Version: svn-trunk Keywords: pygrass grid type | Platform: Unspecified Cpu: Unspecified | -------------------------------+-------------------------------------------- Changes (by mlennert): * component: Default => Python -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 6 02:11:52 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 06 Mar 2015 10:11:52 -0000 Subject: [GRASS-dev] [GRASS GIS] #2503: wxdigit: wrong undo & redo In-Reply-To: <042.e87fbd1f1de7870e68b27c064778903e@osgeo.org> References: <042.e87fbd1f1de7870e68b27c064778903e@osgeo.org> Message-ID: <051.3c9cf76d781b25685c2bdcf6110aeace@osgeo.org> #2503: wxdigit: wrong undo & redo --------------------------+------------------------------------------------- Reporter: mlennert | Owner: grass-dev@? Type: defect | Status: closed Priority: normal | Milestone: 7.0.0 Component: wxGUI | Version: svn-trunk Resolution: fixed | Keywords: digitizer Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Comment(by mlennert): Martin, Any opinion on the question concerning the ifdef'ed out code ? For the rest we can close this ticket. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 6 02:12:32 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 06 Mar 2015 10:12:32 -0000 Subject: [GRASS-dev] [GRASS GIS] #2502: wxdigit: "don't save" is not respected In-Reply-To: <042.39c70bee26a2f88c3d0210b078ebcb9e@osgeo.org> References: <042.39c70bee26a2f88c3d0210b078ebcb9e@osgeo.org> Message-ID: <051.334f3a9bb75b651e7a5ccf285510c394@osgeo.org> #2502: wxdigit: "don't save" is not respected --------------------------+------------------------------------------------- Reporter: mlennert | Owner: grass-dev@? Type: defect | Status: closed Priority: normal | Milestone: 7.0.0 Component: wxGUI | Version: svn-trunk Resolution: fixed | Keywords: digitizer Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Changes (by mlennert): * status: new => closed * resolution: => fixed -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 6 05:35:49 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 06 Mar 2015 13:35:49 -0000 Subject: [GRASS-dev] [GRASS GIS] #2613: Polygons disappear after v.overlay AND operation In-Reply-To: <038.3d311469ca1dbe4a0ede16cf2013e11f@osgeo.org> References: <038.3d311469ca1dbe4a0ede16cf2013e11f@osgeo.org> Message-ID: <047.2ffbffe6ca1e70f53ccbf2d55f43dd7f@osgeo.org> #2613: Polygons disappear after v.overlay AND operation --------------------------------------------+------------------------------- Reporter: dido | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: Component: Vector | Version: 7.0.0 Keywords: v.overlay and polygons damaged | Platform: MSWindows 7 Cpu: x86-64 | --------------------------------------------+------------------------------- Comment(by dido): Hi, I've checked the same workflow on the stable 7.0.0 release and it seems to be OK. You may close the issue. Best regards, Deyan. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 6 06:30:17 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 06 Mar 2015 14:30:17 -0000 Subject: [GRASS-dev] [GRASS GIS] #2613: Polygons disappear after v.overlay AND operation In-Reply-To: <038.3d311469ca1dbe4a0ede16cf2013e11f@osgeo.org> References: <038.3d311469ca1dbe4a0ede16cf2013e11f@osgeo.org> Message-ID: <047.a4117296e9c30e145cab7af3f9fcd89c@osgeo.org> #2613: Polygons disappear after v.overlay AND operation --------------------------+------------------------------------------------- Reporter: dido | Owner: grass-dev@? Type: defect | Status: closed Priority: major | Milestone: Component: Vector | Version: 7.0.0 Resolution: fixed | Keywords: v.overlay and polygons damaged Platform: MSWindows 7 | Cpu: x86-64 --------------------------+------------------------------------------------- Changes (by martinl): * status: new => closed * resolution: => fixed Old description: > A shapefile polygon set A has been cut using a grid polygon B using a > v.overlay AND operation. The result is expected to contain all the A > polygons that are enclosed within the grid polygon B. > > The output is almost as expected but several A polygons within the B > rectangle are missing. GRASS version is 7.0.0.RC1. Here is the io console > log: > > (Fri Mar 06 11:07:12 2015) > v.overlay ainput=K3445_NEW_FISH at BGM_POLY_UTM > binput=GRID_K34058 at BGM_POLY_UTM operator=and output=K34058_NEW > Copying vector features from ... > Copying vector features from ... > Snapping boundaries with 1e-008 ... > Breaking lines... > Removing duplicates... > Cleaning boundaries at nodes... > Breaking lines... > Removing duplicates... > Cleaning boundaries at nodes... > Breaking lines... > Removing duplicates... > Cleaning boundaries at nodes... > WARNING: Number of incorrect boundaries: 949 > Merging lines... > Attaching islands... > Building areas... > 25262 areas built > 7375 isles built > Attaching islands... > Number of nodes: 41280 > Number of primitives: 60697 > Number of points: 0 > Number of lines: 0 > Number of boundaries: 60697 > Number of centroids: 0 > Number of areas: 25262 > Number of isles: 7375 > Querying vector map ... > Querying vector map ... > Writing centroids... > WARNING: Unable to delete file > 'E:\mapping\GRASS7DB/BGM_POLY_UTM/BGM_POLY_UTM/.tmp/unknown/vector/tmp_7316/coor' > Building topology for vector map ... > Registering primitives... > 42630 primitives registered > 642388 vertices registered > Building areas... > 12823 areas built > 2888 isles built > Attaching islands... > Attaching centroids... > Number of nodes: 19873 > Number of primitives: 42630 > Number of points: 0 > Number of lines: 0 > Number of boundaries: 29808 > Number of centroids: 12822 > Number of areas: 12823 > Number of isles: 2888 > v.overlay complete. > (Fri Mar 06 11:07:46 2015) Command finished (34 sec) > > Files can be provided upon request (~50 Mb). New description: A shapefile polygon set A has been cut using a grid polygon B using a v.overlay AND operation. The result is expected to contain all the A polygons that are enclosed within the grid polygon B. The output is almost as expected but several A polygons within the B rectangle are missing. GRASS version is 7.0.0.RC1. Here is the io console log: {{{ (Fri Mar 06 11:07:12 2015) v.overlay ainput=K3445_NEW_FISH at BGM_POLY_UTM binput=GRID_K34058 at BGM_POLY_UTM operator=and output=K34058_NEW Copying vector features from ... Copying vector features from ... Snapping boundaries with 1e-008 ... Breaking lines... Removing duplicates... Cleaning boundaries at nodes... Breaking lines... Removing duplicates... Cleaning boundaries at nodes... Breaking lines... Removing duplicates... Cleaning boundaries at nodes... WARNING: Number of incorrect boundaries: 949 Merging lines... Attaching islands... Building areas... 25262 areas built 7375 isles built Attaching islands... Number of nodes: 41280 Number of primitives: 60697 Number of points: 0 Number of lines: 0 Number of boundaries: 60697 Number of centroids: 0 Number of areas: 25262 Number of isles: 7375 Querying vector map ... Querying vector map ... Writing centroids... WARNING: Unable to delete file 'E:\mapping\GRASS7DB/BGM_POLY_UTM/BGM_POLY_UTM/.tmp/unknown/vector/tmp_7316/coor' Building topology for vector map ... Registering primitives... 42630 primitives registered 642388 vertices registered Building areas... 12823 areas built 2888 isles built Attaching islands... Attaching centroids... Number of nodes: 19873 Number of primitives: 42630 Number of points: 0 Number of lines: 0 Number of boundaries: 29808 Number of centroids: 12822 Number of areas: 12823 Number of isles: 2888 v.overlay complete. (Fri Mar 06 11:07:46 2015) Command finished (34 sec) }}} Files can be provided upon request (~50 Mb). -- -- Ticket URL: GRASS GIS From neteler at osgeo.org Fri Mar 6 10:25:29 2015 From: neteler at osgeo.org (Markus Neteler) Date: Fri, 6 Mar 2015 19:25:29 +0100 Subject: [GRASS-dev] port of v.points.cog to python In-Reply-To: <20150301160115.GA25881@free.fr> References: <20150301160115.GA25881@free.fr> Message-ID: Hello Patrice, On Sun, Mar 1, 2015 at 5:01 PM, Patrice Dumas wrote: > Hello, > > Here is a rewrite of the v.points.cog module in python. I tried > translating code only, keeping the code organization, variables names as it > was previously to help those who would want to review the differences > with the shell script. I also did the few changes required for changes > in grass7, but there weren't that much since python function already > abstract some commands. > > I did a svn copy of the grass6 module before doing the modifications. > > I cannot (and don't want to...) claim any copyright on a code translation. > > I didn't test thoroughly, but since it is code translation, I don't expect > big surprises. Thanks for your efforts. What about you gaining access to the SVN Addon repo for easier code management? It then would become available for "g.extension" as well. See for details: http://grass.osgeo.org/get-involved/ --> Developing new Add-ons best Markus From trac at osgeo.org Fri Mar 6 18:39:10 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 07 Mar 2015 02:39:10 -0000 Subject: [GRASS-dev] [GRASS GIS] #2616: grass.script.array cannot write raster Message-ID: <042.4e762a6fae37dcf72e1b4fbfbb5020f8@osgeo.org> #2616: grass.script.array cannot write raster -------------------------+-------------------------------------------------- Reporter: annakrat | Owner: grass-dev@? Type: defect | Status: new Priority: critical | Milestone: 7.0.1 Component: Python | Version: svn-trunk Keywords: array | Platform: All Cpu: Unspecified | -------------------------+-------------------------------------------------- It seems the r64426 (backported in r64614) broke writing the array. Tested [http://grass.osgeo.org/grass70/manuals/libpython/script.html example] with 1.8.2 !NumPy, the temporary file disappears once calling this line: {{{ map2d_1[y][x] = y + x # and then this fails map2d_1.write(mapname="map2d_1", overwrite=True) ERROR: Unable to open }}} -- Ticket URL: GRASS GIS From markus.metz.giswork at gmail.com Sat Mar 7 01:43:38 2015 From: markus.metz.giswork at gmail.com (Markus Metz) Date: Sat, 7 Mar 2015 10:43:38 +0100 Subject: [GRASS-dev] port of v.points.cog to python In-Reply-To: <20150301160115.GA25881@free.fr> References: <20150301160115.GA25881@free.fr> Message-ID: On Sun, Mar 1, 2015 at 5:01 PM, Patrice Dumas wrote: > Hello, > > Here is a rewrite of the v.points.cog module in python. I think v.points.cog is superseded by v.centerpoint which offers cog as well as other kinds of centerpoints. Markus M > I tried > translating code only, keeping the code organization, variables names as it > was previously to help those who would want to review the differences > with the shell script. I also did the few changes required for changes > in grass7, but there weren't that much since python function already > abstract some commands. > > I did a svn copy of the grass6 module before doing the modifications. > > I cannot (and don't want to...) claim any copyright on a code translation. > > I didn't test thoroughly, but since it is code translation, I don't expect > big surprises. > > -- > Pat > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev From pertusus at free.fr Sat Mar 7 03:38:51 2015 From: pertusus at free.fr (Patrice Dumas) Date: Sat, 7 Mar 2015 12:38:51 +0100 Subject: [GRASS-dev] port of v.points.cog to python In-Reply-To: <3300117cce00f4dfc4e5620118fdbbf5@posteo.de> References: <20150301160115.GA25881@free.fr> <3300117cce00f4dfc4e5620118fdbbf5@posteo.de> Message-ID: <20150307113851.GB22151@free.fr> On Sat, Mar 07, 2015 at 11:16:21AM +0100, Moritz Lennert wrote: > Am 07.03.2015 10:43 schrieb Markus Metz: > >On Sun, Mar 1, 2015 at 5:01 PM, Patrice Dumas wrote: > >>Hello, > >> > >>Here is a rewrite of the v.points.cog module in python. > > > >I think v.points.cog is superseded by v.centerpoint which offers cog > >as well as other kinds of centerpoints. > > AFAIR, v.points.cog offers the possibility to get cog for clusters > of points defined by an attribute. v.centerpoint does not offer > this. So, either it might be interesting to add this to > v.centerpoint, or to rewrite v.points.cog as a wrapper around > v.centerpoint. I think that using v.centerpoint in v.points.cog would be the best, as it would then be possible to add a pcenter= option to v.points.cog to be able to use v.centerpoint other possibilities. I can do that, but I think that it is best to first commit the translation of v.points.cog as is and in a second step add the call to v.centerpoints instead of duplicating in v.points.cog what v.centerpoints does. Is it ok? -- Pat From kratochanna at gmail.com Sat Mar 7 05:06:37 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Sat, 7 Mar 2015 08:06:37 -0500 Subject: [GRASS-dev] port of v.points.cog to python In-Reply-To: References: <20150301160115.GA25881@free.fr> Message-ID: On Sat, Mar 7, 2015 at 4:43 AM, Markus Metz wrote: > On Sun, Mar 1, 2015 at 5:01 PM, Patrice Dumas wrote: > > Hello, > > > > Here is a rewrite of the v.points.cog module in python. > > I think v.points.cog is superseded by v.centerpoint which offers cog > as well as other kinds of centerpoints. > > BTW, is there any reason to keep v.centerpoint as addon? It seems to be quite popular. Anna > Markus M > > > > I tried > > translating code only, keeping the code organization, variables names as > it > > was previously to help those who would want to review the differences > > with the shell script. I also did the few changes required for changes > > in grass7, but there weren't that much since python function already > > abstract some commands. > > > > I did a svn copy of the grass6 module before doing the modifications. > > > > I cannot (and don't want to...) claim any copyright on a code > translation. > > > > I didn't test thoroughly, but since it is code translation, I don't > expect > > big surprises. > > > > -- > > Pat > > > > _______________________________________________ > > grass-dev mailing list > > grass-dev at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/grass-dev > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Sat Mar 7 10:02:41 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 07 Mar 2015 18:02:41 -0000 Subject: [GRASS-dev] [GRASS GIS] #2614: wxgui Output save fails with UnicodeEncodeError In-Reply-To: <040.3584a91afab86a8e09c8e9e81bfb69ca@osgeo.org> References: <040.3584a91afab86a8e09c8e9e81bfb69ca@osgeo.org> Message-ID: <049.80f94cbc64554316a13f4d31bc706e64@osgeo.org> #2614: wxgui Output save fails with UnicodeEncodeError -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: 7.0.1 Component: wxGUI | Version: 7.0.0 Keywords: | Platform: MSWindows Vista Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by annakrat): Could you try r64809 in trunk? -- Ticket URL: GRASS GIS From trac at osgeo.org Sun Mar 8 03:07:28 2015 From: trac at osgeo.org (GRASS GIS) Date: Sun, 08 Mar 2015 10:07:28 -0000 Subject: [GRASS-dev] [GRASS GIS] #2614: wxgui Output save fails with UnicodeEncodeError In-Reply-To: <040.3584a91afab86a8e09c8e9e81bfb69ca@osgeo.org> References: <040.3584a91afab86a8e09c8e9e81bfb69ca@osgeo.org> Message-ID: <049.c8f67367b643a56613de8d9b3aaa5245@osgeo.org> #2614: wxgui Output save fails with UnicodeEncodeError -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: 7.0.1 Component: wxGUI | Version: 7.0.0 Keywords: | Platform: MSWindows Vista Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by marisn): Replying to [comment:1 annakrat]: > Could you try r64809 in trunk? Yes, now it works just fine on my Vista VM and no bad side effects on GNU/Linux. Needs backporting. -- Ticket URL: GRASS GIS From trac at osgeo.org Sun Mar 8 03:32:30 2015 From: trac at osgeo.org (GRASS GIS) Date: Sun, 08 Mar 2015 10:32:30 -0000 Subject: [GRASS-dev] [GRASS GIS] #2617: wxgui Raster query redirect to console UnicodeDecodeError Message-ID: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> #2617: wxgui Raster query redirect to console UnicodeDecodeError -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: | Platform: MSWindows Vista Cpu: Unspecified | -------------------------+-------------------------------------------------- Steps to reproduce: * use raster query tool to query raster * check "redirect to console" {{{ Vaic?juma rezult?ti: Traceback (most recent call last): File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\gui_core\query.py", line 65, in self.redirect.Bind(wx.EVT_CHECKBOX, lambda evt: self._onRedirect(evt.IsChecked())) File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\gui_core\query.py", line 143, in _onRedirect self.redirectOutput.emit(output=self._textToRedirect()) File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\gui_core\query.py", line 148, in _textToRedirect text = printResults(self._model, self._colNames[1]) File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\gui_core\query.py", line 215, in printResults return '\n'.join(textList) UnicodeDecodeError : 'ascii' codec can't decode byte 0xc4 in position 4: ordinal not in range(128) }}} Also reported as a part of #2120; 7.0.0 is also affected. -- Ticket URL: GRASS GIS From trac at osgeo.org Sun Mar 8 03:44:09 2015 From: trac at osgeo.org (GRASS GIS) Date: Sun, 08 Mar 2015 10:44:09 -0000 Subject: [GRASS-dev] [GRASS GIS] #2120: wxgui: encoding errors In-Reply-To: <042.c0a12926c00048872ebe69ccc0cfe6ae@osgeo.org> References: <042.c0a12926c00048872ebe69ccc0cfe6ae@osgeo.org> Message-ID: <051.031afd5fcacf5e01569c8e6d0ddfa422@osgeo.org> #2120: wxgui: encoding errors -----------------------------+---------------------------------------------- Reporter: mlennert | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: 7.0.1 Component: wxGUI | Version: 7.0.0 Keywords: locale encoding | Platform: All Cpu: All | -----------------------------+---------------------------------------------- Changes (by marisn): * version: svn-releasebranch64 => 7.0.0 * milestone: 6.4.4 => 7.0.1 Comment: As fixing all issues would involve too invasive changes in GRASS 6.x maintenance releases, bumping up versions to 7. Reporters: please fill a separate bug report for each case, as it is hard to track progress by comments alone. Add bug # here for easier tracking. As most of issues are spotted on Windows running non-english GRASS version, do NOT close any of them before testing with (insert your favourite language) translated version of GRASS on Windows. * Raster query redirection to console issue reported as #2617 * Raster query (no redirection) #2601 * Save console output #2614 * Command console fails if username is not ascii only #2390 * Network analysis tool fails to start #2145 -- Ticket URL: GRASS GIS From trac at osgeo.org Sun Mar 8 03:49:36 2015 From: trac at osgeo.org (GRASS GIS) Date: Sun, 08 Mar 2015 10:49:36 -0000 Subject: [GRASS-dev] [GRASS GIS] #2607: Python shell hint results in OSError error(None): None In-Reply-To: <040.3971a1a2a8e964a352aaac26d5a40d5c@osgeo.org> References: <040.3971a1a2a8e964a352aaac26d5a40d5c@osgeo.org> Message-ID: <049.f823e448104e3625031189469d40a8a7@osgeo.org> #2607: Python shell hint results in OSError error(None): None -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: Component: wxGUI | Version: 7.0.0 Keywords: | Platform: All Cpu: Unspecified | -------------------------+-------------------------------------------------- Changes (by marisn): * platform: MSWindows Vista => All Comment: Same happens with 7.1 SVN on GNU/Linux, still error message is a bit different: "OSError error(2): No such file or directory" -- Ticket URL: GRASS GIS From trac at osgeo.org Sun Mar 8 13:00:28 2015 From: trac at osgeo.org (GRASS GIS) Date: Sun, 08 Mar 2015 20:00:28 -0000 Subject: [GRASS-dev] [GRASS GIS] #2614: wxgui Output save fails with UnicodeEncodeError In-Reply-To: <040.3584a91afab86a8e09c8e9e81bfb69ca@osgeo.org> References: <040.3584a91afab86a8e09c8e9e81bfb69ca@osgeo.org> Message-ID: <049.31c8d582da2262a9e11cb21cb9fa89b7@osgeo.org> #2614: wxgui Output save fails with UnicodeEncodeError ------------------------------+--------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: closed Priority: major | Milestone: 7.0.1 Component: wxGUI | Version: 7.0.0 Resolution: fixed | Keywords: Platform: MSWindows Vista | Cpu: Unspecified ------------------------------+--------------------------------------------- Changes (by annakrat): * status: new => closed * resolution: => fixed Comment: Replying to [comment:2 marisn]: > Replying to [comment:1 annakrat]: > > Could you try r64809 in trunk? > Yes, now it works just fine on my Vista VM and no bad side effects on GNU/Linux. Needs backporting. Done in r64817. -- Ticket URL: GRASS GIS From trac at osgeo.org Sun Mar 8 13:49:02 2015 From: trac at osgeo.org (GRASS GIS) Date: Sun, 08 Mar 2015 20:49:02 -0000 Subject: [GRASS-dev] [GRASS GIS] #2617: wxgui Raster query redirect to console UnicodeDecodeError In-Reply-To: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> References: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> Message-ID: <049.c230930bf0879d8967b162389ab4f181@osgeo.org> #2617: wxgui Raster query redirect to console UnicodeDecodeError -----------------------------+---------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: query, encoding | Platform: MSWindows Vista Cpu: Unspecified | -----------------------------+---------------------------------------------- Changes (by annakrat): * keywords: => query, encoding Comment: Please try r64818 in trunk. Any chance it would solve #2601? -- Ticket URL: GRASS GIS From trac at osgeo.org Sun Mar 8 13:55:17 2015 From: trac at osgeo.org (GRASS GIS) Date: Sun, 08 Mar 2015 20:55:17 -0000 Subject: [GRASS-dev] [GRASS GIS] #2607: Python shell hint results in OSError error(None): None In-Reply-To: <040.3971a1a2a8e964a352aaac26d5a40d5c@osgeo.org> References: <040.3971a1a2a8e964a352aaac26d5a40d5c@osgeo.org> Message-ID: <049.8b17b53234c8dd5f2c0a4baed1506580@osgeo.org> #2607: Python shell hint results in OSError error(None): None -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: Component: wxGUI | Version: 7.0.0 Keywords: | Platform: All Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by annakrat): Replying to [comment:1 marisn]: > Same happens with 7.1 SVN on GNU/Linux, still error message is a bit different: "OSError error(2): No such file or directory" It works fine for me using Ubuntu. Does it happen only in the Python shell in wxGUI? -- Ticket URL: GRASS GIS From radim.blazek at gmail.com Sun Mar 8 14:32:54 2015 From: radim.blazek at gmail.com (Radim Blazek) Date: Sun, 8 Mar 2015 22:32:54 +0100 Subject: [GRASS-dev] [Qgis-developer] QGIS and GRASS 7.0.0 In-Reply-To: <54EC3F8D.3000101@faunalia.it> References: <54EACB74.80307@faunalia.it> <54EC3F8D.3000101@faunalia.it> Message-ID: The new GRASS vector editing tool preview screencast: https://www.youtube.com/watch?v=PPno1aLYHFE Radim On Tue, Feb 24, 2015 at 10:08 AM, Paolo Cavallini wrote: > Hi Radim, > thanks a lot for this. > > Il 24/02/2015 09:28, Radim Blazek ha scritto: > >> - modules GUI - my idea is to throw away the qgm and qgc definitions >> and auto generate GUI for modules with all options based on >> --interface-description only, also the list of modules would be auto >> generated for all modules. The reason is my impression that there are >> no volunteers willing to maintain qgm and qgc. If there are volunteers >> to do that (no programming, xml editing only) let me know and I'll >> include keeping of current system in the proposal. > > IMHO having the possibility of making simplified modules is a bi plus, > and would better not be missed. > > Thanks again. > -- > Paolo Cavallini - www.faunalia.eu > QGIS & PostGIS courses: http://www.faunalia.eu/training.html From pedrongvenancio at gmail.com Sun Mar 8 16:38:49 2015 From: pedrongvenancio at gmail.com (=?UTF-8?Q?Pedro_Ven=C3=A2ncio?=) Date: Sun, 8 Mar 2015 23:38:49 +0000 Subject: [GRASS-dev] [Qgis-developer] QGIS and GRASS 7.0.0 In-Reply-To: References: <54EACB74.80307@faunalia.it> <54EC3F8D.3000101@faunalia.it> Message-ID: Hi Radim, The new GRASS vector editing tool preview screencast: > https://www.youtube.com/watch?v=PPno1aLYHFE > > It looks really really great! Best regards, Pedro -------------- pr?xima parte ---------- Um anexo em HTML foi limpo... URL: From trac at osgeo.org Sun Mar 8 23:46:23 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 09 Mar 2015 06:46:23 -0000 Subject: [GRASS-dev] [GRASS GIS] #2616: grass.script.array cannot write raster In-Reply-To: <042.4e762a6fae37dcf72e1b4fbfbb5020f8@osgeo.org> References: <042.4e762a6fae37dcf72e1b4fbfbb5020f8@osgeo.org> Message-ID: <051.5f7f961bef1d2a973be35676e67d5e2e@osgeo.org> #2616: grass.script.array cannot write raster -------------------------+-------------------------------------------------- Reporter: annakrat | Owner: grass-dev@? Type: defect | Status: new Priority: critical | Milestone: 7.0.1 Component: Python | Version: svn-trunk Keywords: array | Platform: All Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by glynn): Replying to [ticket:2616 annakrat]: > It seems the r64426 (backported in r64614) broke writing the array. > Tested [http://grass.osgeo.org/grass70/manuals/libpython/script.html example] with 1.8.2 !NumPy, the temporary file disappears once calling this line: It appears that __del__ gets called on the original array instance for every slice. Note that changing `map2d_1[y][x]=` to `map2d_1[y,x]=` (which is to be preferred) avoids the issue, but there are situations where slicing will be appropriate, so this needs to be dealt with. The docstring for numpy.memmap says: {{{ This subclass of ndarray has some unpleasant interactions with some operations, because it doesn't quite fit properly as a subclass. }}} r64819 wraps the temporary file in an object, avoiding the need for a __del__ method in the array/array3d class. This appears to solve the issue. r64820 fixes the examples to use multi-dimensional indexing rather than slicing. -- Ticket URL: GRASS GIS From sdpan21 at gmail.com Mon Mar 9 01:33:38 2015 From: sdpan21 at gmail.com (Dp Docs) Date: Mon, 9 Mar 2015 14:03:38 +0530 Subject: [GRASS-dev] "Complete basic cartography suite in GRASS GIS wxGUI Map Display" Message-ID: Hi, I Am an undergrad. student from IIIT Hyderabad,India. I believe I have good Programming Knowledge in languages like Python, C/C++. I have Already Done Some Projects in these Languages. I have practical knowledge in wxPython. I want to work on this Project as a pat of GSOC 2015. I want to know whether someone is already committed to this Project or not? I also want to know how to get the mentor's contact regarding this Project. I have some Technical Doubts which I would like to ask them. Thanks Durgesh Pandey. From cavallini at faunalia.it Mon Mar 9 01:56:43 2015 From: cavallini at faunalia.it (Paolo Cavallini) Date: Mon, 09 Mar 2015 09:56:43 +0100 Subject: [GRASS-dev] [Qgis-developer] QGIS and GRASS 7.0.0 In-Reply-To: References: <54EACB74.80307@faunalia.it> <54EC3F8D.3000101@faunalia.it> Message-ID: <54FD604B.6010600@faunalia.it> Il 09/03/2015 00:38, Pedro Ven?ncio ha scritto: > It looks really really great! Awesome, chapeau! Looking forward to see the crowdfunding. All the best. -- Paolo Cavallini - www.faunalia.eu QGIS & PostGIS courses: http://www.faunalia.eu/training.html From mlennert at club.worldonline.be Mon Mar 9 02:57:18 2015 From: mlennert at club.worldonline.be (Moritz Lennert) Date: Mon, 09 Mar 2015 10:57:18 +0100 Subject: [GRASS-dev] "Complete basic cartography suite in GRASS GIS wxGUI Map Display" In-Reply-To: References: Message-ID: <54FD6E7E.8050906@club.worldonline.be> Hello and welcome ! On 09/03/15 09:33, Dp Docs wrote: > Hi, > I Am an undergrad. student from IIIT Hyderabad,India. I believe I have > good Programming Knowledge in languages like Python, C/C++. I have > Already Done Some Projects in these Languages. I have practical > knowledge in wxPython. I want to work on this Project as a pat of GSOC > 2015. I want to know whether someone is already committed to this > Project or not? I also want to know how to get the mentor's contact > regarding this Project. I have some Technical Doubts which I would > like to ask them. I think the best would be to keep this on this list. Others might contribute as well, then, not only the mentors. Mortiz From ad.laza32 at gmail.com Mon Mar 9 07:37:45 2015 From: ad.laza32 at gmail.com (=?UTF-8?Q?Adam_La=C5=BEa?=) Date: Mon, 9 Mar 2015 15:37:45 +0100 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS Message-ID: Hi devs, I study geoinformatics at CTU in Prague and I get interested in some of your topics for GSoC. I have basic knowledge in C/C++ and I've already written some code in Python for GRASS Add-Ons. I'd like to focus on Mapnik engine, actual display drivers and graphic outputs. Let me know if this topic is still free to pick-up and what I shlould do for the next step. Thanks. Adam Laza -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Mon Mar 9 07:40:17 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 09 Mar 2015 14:40:17 -0000 Subject: [GRASS-dev] [GRASS GIS] #2618: v.vector option=transfer does not copy multiple cat values Message-ID: <037.f9a61c7ce33c217b47e6d4982e5f2a86@osgeo.org> #2618: v.vector option=transfer does not copy multiple cat values ---------------------------------+------------------------------------------ Reporter: ulf | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Vector | Version: 7.0.0 Keywords: v.category transfer | Platform: Linux Cpu: x86-64 | ---------------------------------+------------------------------------------ v.vector with option=transfer only copies one category value when a feature has multiple category values in the same layer. An example to explain what I mean: {{{ echo "100|100|1" | v.in.ascii output=test input=- fid=$(v.edit --quiet layer=1 map=test tool=select cat=1) v.edit map=test layer=1 tool=catadd ids=${fid} cats=2 }}} Now, {{{ v.category option=print layer=1 input=test2 }}} outputs "1/2", but {{{ v.category option=print layer=2 input=test2 }}} outputs "1". I would expect "1/2"... -- Ticket URL: GRASS GIS From kratochanna at gmail.com Mon Mar 9 09:02:52 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Mon, 9 Mar 2015 12:02:52 -0400 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS In-Reply-To: References: Message-ID: On Mon, Mar 9, 2015 at 10:37 AM, Adam La?a wrote: > Hi devs, > > I study geoinformatics at CTU in Prague and I get interested in some of > your topics for GSoC. I have basic knowledge in C/C++ and I've already > written some code in Python for GRASS Add-Ons. > I'd like to focus on Mapnik engine, actual display drivers and graphic > outputs. > > Let me know if this topic is still free to pick-up and what I shlould do > for the next step. > Welcome, for start, could you please link here all your contributions so that we don't have to search for it? As far as I know, the topic is still free. Cheers, Anna > > Thanks. > Adam Laza > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Mon Mar 9 11:19:31 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 09 Mar 2015 18:19:31 -0000 Subject: [GRASS-dev] [GRASS GIS] #2617: wxgui Raster query redirect to console UnicodeDecodeError In-Reply-To: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> References: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> Message-ID: <049.2f8833a3fb364139b81a4350c7057ea4@osgeo.org> #2617: wxgui Raster query redirect to console UnicodeDecodeError -----------------------------+---------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: query, encoding | Platform: MSWindows Vista Cpu: Unspecified | -----------------------------+---------------------------------------------- Comment(by marisn): No, this is not a solution - it is still broken. I appended a following print in query.py L185: {{{ print 'k: %s (%s) v: %s (%s)' % (k, type(k), v, type(v)) }}} And here is output: {{{ k: east, north () v: 622578.672986, 6399325.43444 () k: dores_idw at kalistrats () v: {'nosaukums': '', 'kr\xc4\x81sa': '255:202:000', 'v\xc4\x93rt\xc4\xabba': '71.6390742964988'} () k: nosaukums () v: () k: kr?sa () v: 255:202:000 () Traceback (most recent call last): File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\mapwin\buffered.py", line 1230, in MouseActions self.OnLeftUp(event) File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\mapwin\buffered.py", line 1407, in OnLeftUp self.mapQueried.emit(x=self.mouse['end'][0], y=self.mouse['end'][1]) File "C:\Program Files\GRASS GIS 7.1.svn\etc\python\grass\pydispatch\signal.py", line 229, in emit dispatcher.send(signal=self, *args, **kwargs) File "C:\Program Files\GRASS GIS 7.1.svn\etc\python\grass\pydispatch\dispatcher.py", line 349, in send **named File "C:\Program Files\GRASS GIS 7.1.svn\etc\python\grass\pydispatch\robustapply.py", line 60, in robustApply return receiver(*arguments, **named) File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\mapdisp\frame.py", line 868, in Query self.QueryMap(east, north, qdist, rast, vect) File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\mapdisp\frame.py", line 922, in QueryMap self.dialogs['query'] = QueryDialog(parent = self, data = result) File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\gui_core\query.py", line 46, in __init__ self._model = QueryTreeBuilder(self.data, column=self._colNames[1]) File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\gui_core\query.py", line 201, in QueryTreeBuilder addNode(parent=model.root, data=part, model=model) File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\gui_core\query.py", line 190, in addNode addNode(parent=node, data=v, model=model) File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\gui_core\query.py", line 187, in addNode k = DecodeString(k) File "C:\Program Files\GRASS GIS 7.1.svn\gui\wxpython\core\gcmd.py", line 76, in DecodeString return string.decode(_enc) File "C:\Program Files\GRASS GIS 7.1.svn\Python27\lib\encodings\cp1257.py", line 15, in decode return codecs.charmap_decode(input,errors,decoding_table) UnicodeDecodeError : 'charmap' codec can't decode byte 0x81 in position 3: character maps to }}} As it is visible from the output, on the second line v contains UTF-8 encoded text. Lines 3 and 4 report it to be a str and thus a DecodeString is called. So far - nothing bad, but there kicks in DecodeString - it is using GetSystemEncoding to decode string. On this system _enc variable is set to cp1257 - this is definitely not UTF-8 and thus decoding fails. The string in question (kr?sa) is coming form the GRASS translation to Latvian language - to reproduce the issue on your system, you must translate "color" to a word with non-ascii letters in it (zbarven?) and, of course, encode translation file (PO) as UTF-8. The source of problem is r47310 where instead of installing unicode version of gettext a bytestring version is installed. This should work fine, but now in every place where a _() call is made, it returns str for unicode translations. Reverting r47310 fixes this bug (and probably others too!) without any problems, still I would like to hear Glynn's rationale why it was necessary in the first place (preferably with patches that solve _() issue if r47310 is to stay). Not using unicode version of gettext is really strange, as Slovenian is the only language NOT using UTF-8 in their PO files and it has seen the last update in 2005, thus GRASS PO files ARE unicode-ready. -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 9 11:33:34 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 09 Mar 2015 18:33:34 -0000 Subject: [GRASS-dev] [GRASS GIS] #2618: v.vector option=transfer does not copy multiple cat values In-Reply-To: <037.f9a61c7ce33c217b47e6d4982e5f2a86@osgeo.org> References: <037.f9a61c7ce33c217b47e6d4982e5f2a86@osgeo.org> Message-ID: <046.30974fdadeba77d55c113cf6b2e44390@osgeo.org> #2618: v.vector option=transfer does not copy multiple cat values ---------------------------------+------------------------------------------ Reporter: ulf | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Vector | Version: 7.0.0 Keywords: v.category transfer | Platform: Linux Cpu: x86-64 | ---------------------------------+------------------------------------------ Comment(by ulf): One row disappeared from my example - to create map {{{test2}}} i did the following: {{{ echo "100|100|1" | v.in.ascii output=test input=- fid=$(v.edit --quiet layer=1 map=test tool=select cat=1) v.edit map=test layer=1 tool=catadd ids=${fid} cats=2 v.category option=transfer layer=1,2 input=test output=test2 }}} Sorry about that, Ulf -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 9 12:30:16 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 09 Mar 2015 19:30:16 -0000 Subject: [GRASS-dev] [GRASS GIS] #2080: wxGUI: changing properties of barscale or legend In-Reply-To: <041.8e4308b0c88db2dc75c1e934e692fad3@osgeo.org> References: <041.8e4308b0c88db2dc75c1e934e692fad3@osgeo.org> Message-ID: <050.f2db3e17d41891a9a276a144a2bce75c@osgeo.org> #2080: wxGUI: changing properties of barscale or legend --------------------------+------------------------------------------------- Reporter: martinl | Owner: grass-dev@? Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.0 Component: wxGUI | Version: svn-trunk Resolution: fixed | Keywords: decorations, d.barscale, d.legend, d.northarrow Platform: All | Cpu: All --------------------------+------------------------------------------------- Changes (by wenzeslaus): * status: new => closed * resolution: => fixed Comment: Replying to [comment:13 martinl]: > Replying to [comment:12 annakrat]: > > > much much more better! There is only one limitation - you cannot add multiple barscales, legends, or northarrows, right? > > > > Yes, but this limitation was there even before. The workaround is to add the command layer which then behaves little differently (no moving around). But I guess this is not the common requirement. > > right, the correct sentence is "There is *still* one limitation". Original issue is solved. Closing. Please, open a new enhancement ticket if you want track this limitation. See also [wiki:GSoC/2015#CompletebasiccartographysuiteinGRASSGISwxGUIMapDisplay GSoC 2015] ideas page. -- Ticket URL: GRASS GIS From wenzeslaus at gmail.com Mon Mar 9 13:06:41 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Mon, 9 Mar 2015 16:06:41 -0400 Subject: [GRASS-dev] "Complete basic cartography suite in GRASS GIS wxGUI Map Display" In-Reply-To: References: Message-ID: On Mon, Mar 9, 2015 at 4:33 AM, Dp Docs wrote: > > Hi, > I Am an undergrad. student from IIIT Hyderabad,India. I believe I have > good Programming Knowledge in languages like Python, C/C++. I have > Already Done Some Projects in these Languages. I have practical > knowledge in wxPython. I want to work on this Project as a pat of GSOC > 2015. Hi, this sounds great. As you perhaps noticed students are encouraged [1] to show their skills by contributing to the project before applications are evaluated. OSGeo recommends [2] to do some bug fixing or implementation of small features. You can even try to implement some smaller things from the GSoC idea itself [3]. I selected some options which might be appropriate: * Store legend, scale bar, north arrow and text (and potentially others objects if added) in the workspace (ticket #2369). * Add units to legend as parameter to d.legend. Optionally add also title and description. Optionally also put units after each number, not just to one place in title area as it is now. * Add possibility to add any image to Map Display (as in Animation Tool, `g.gui.animation`). Use cases are organization logo and overview maps (insets). * Add background color to d.legend. Currently the legend has transparent background. Background rectangle should include all parts of the legend including (possible) title. Additional features include rounded corners, border and opacity settings. You can select whatever you want but it should be something you are actually able to finish soon. You can also browse through bug tracker, components wxGUI and Dispaly [5, 6], to see other options to select from. Vaclav [1] http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students [2] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html [3] http://trac.osgeo.org/grass/wiki/GSoC/2015#CompletebasiccartographysuiteinGRASSGISwxGUIMapDisplay [4] http://trac.osgeo.org/grass/ticket/2369 [5] http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=wxGUI&order=priority&col=id&col=summary&col=status&col=type&col=priority&col=milestone&col=component [6] http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=Display&order=priority&col=id&col=summary&col=component&col=status&col=type&col=priority&col=milestone > > I want to know whether someone is already committed to this > Project or not? I also want to know how to get the mentor's contact > regarding this Project. I have some Technical Doubts which I would > like to ask them. > Thanks > Durgesh Pandey. > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From wenzeslaus at gmail.com Mon Mar 9 14:11:32 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Mon, 9 Mar 2015 17:11:32 -0400 Subject: [GRASS-dev] "Complete basic cartography suite in GRASS GIS wxGUI Map Display" In-Reply-To: References: Message-ID: On Mon, Mar 9, 2015 at 4:12 PM, Dp Docs wrote: > I would like to work on this " Add background color to d.legend.". Can > you please provide some approach and repository related to problem. > Once you have GRASS GIS source code from Subversion repository [1], you will find d.legend source code in `display/d.legend` directory [2]. You should compile GRASS GIS, so you have everything you need for development [3]. d.legend is using GRASS Display library [4]. It would be best if you find some display (d.*) module which is already drawing some rectangle, polygon or area and get inspiration from there. Please keep communication on the mailing list so other can contribute or read it too. Vaclav [1] http://trac.osgeo.org/grass/wiki/DownloadSource [2] http://trac.osgeo.org/grass/browser/grass/trunk/display/d.legend [3] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents [4] http://grass.osgeo.org/programming7/displaylib.html > > Durgesh Pandey. > > On Tue, Mar 10, 2015 at 1:36 AM, Vaclav Petras > wrote: > >> >> >> On Mon, Mar 9, 2015 at 4:33 AM, Dp Docs wrote: >> > >> > Hi, >> > I Am an undergrad. student from IIIT Hyderabad,India. I believe I have >> > good Programming Knowledge in languages like Python, C/C++. I have >> > Already Done Some Projects in these Languages. I have practical >> > knowledge in wxPython. I want to work on this Project as a pat of GSOC >> > 2015. >> >> Hi, >> >> this sounds great. As you perhaps noticed students are encouraged [1] to >> show their skills by contributing to the project before applications are >> evaluated. OSGeo recommends [2] to do some bug fixing or implementation of >> small features. You can even try to implement some smaller things from the >> GSoC idea itself [3]. I selected some options which might be appropriate: >> >> * Store legend, scale bar, north arrow and text (and potentially others >> objects if added) in the workspace (ticket #2369). >> >> * Add units to legend as parameter to d.legend. Optionally add also title >> and description. Optionally also put units after each number, not just to >> one place in title area as it is now. >> >> * Add possibility to add any image to Map Display (as in Animation Tool, >> `g.gui.animation`). Use cases are organization logo and overview maps >> (insets). >> >> * Add background color to d.legend. Currently the legend has transparent >> background. Background rectangle should include all parts of the legend >> including (possible) title. Additional features include rounded corners, >> border and opacity settings. >> >> You can select whatever you want but it should be something you are >> actually able to finish soon. You can also browse through bug tracker, >> components wxGUI and Dispaly [5, 6], to see other options to select from. >> >> Vaclav >> >> [1] >> http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students >> [2] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html >> [3] >> http://trac.osgeo.org/grass/wiki/GSoC/2015#CompletebasiccartographysuiteinGRASSGISwxGUIMapDisplay >> [4] http://trac.osgeo.org/grass/ticket/2369 >> [5] >> http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=wxGUI&order=priority&col=id&col=summary&col=status&col=type&col=priority&col=milestone&col=component >> [6] >> http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=Display&order=priority&col=id&col=summary&col=component&col=status&col=type&col=priority&col=milestone >> >> > >> > I want to know whether someone is already committed to this >> > Project or not? I also want to know how to get the mentor's contact >> > regarding this Project. I have some Technical Doubts which I would >> > like to ask them. >> > Thanks >> > Durgesh Pandey. >> > _______________________________________________ >> > grass-dev mailing list >> > grass-dev at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/grass-dev >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdpan21 at gmail.com Mon Mar 9 14:19:32 2015 From: sdpan21 at gmail.com (Dp Docs) Date: Tue, 10 Mar 2015 02:49:32 +0530 Subject: [GRASS-dev] "Complete basic cartography suite in GRASS GIS wxGUI Map Display" In-Reply-To: References: Message-ID: Thank you sir for such a nice response. I will look forward to work on this. Thanks again Durgesh Pandey. On Tue, Mar 10, 2015 at 2:41 AM, Vaclav Petras wrote: > > > On Mon, Mar 9, 2015 at 4:12 PM, Dp Docs wrote: > >> I would like to work on this " Add background color to d.legend.". Can >> you please provide some approach and repository related to problem. >> > Once you have GRASS GIS source code from Subversion repository [1], you > will find d.legend source code in `display/d.legend` directory [2]. You > should compile GRASS GIS, so you have everything you need for development > [3]. > > d.legend is using GRASS Display library [4]. It would be best if you find > some display (d.*) module which is already drawing some rectangle, polygon > or area and get inspiration from there. > > Please keep communication on the mailing list so other can contribute or > read it too. > > Vaclav > > [1] http://trac.osgeo.org/grass/wiki/DownloadSource > [2] http://trac.osgeo.org/grass/browser/grass/trunk/display/d.legend > [3] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents > [4] http://grass.osgeo.org/programming7/displaylib.html > > > >> >> Durgesh Pandey. >> >> On Tue, Mar 10, 2015 at 1:36 AM, Vaclav Petras >> wrote: >> >>> >>> >>> On Mon, Mar 9, 2015 at 4:33 AM, Dp Docs wrote: >>> > >>> > Hi, >>> > I Am an undergrad. student from IIIT Hyderabad,India. I believe I have >>> > good Programming Knowledge in languages like Python, C/C++. I have >>> > Already Done Some Projects in these Languages. I have practical >>> > knowledge in wxPython. I want to work on this Project as a pat of GSOC >>> > 2015. >>> >>> Hi, >>> >>> this sounds great. As you perhaps noticed students are encouraged [1] to >>> show their skills by contributing to the project before applications are >>> evaluated. OSGeo recommends [2] to do some bug fixing or implementation of >>> small features. You can even try to implement some smaller things from the >>> GSoC idea itself [3]. I selected some options which might be appropriate: >>> >>> * Store legend, scale bar, north arrow and text (and potentially others >>> objects if added) in the workspace (ticket #2369). >>> >>> * Add units to legend as parameter to d.legend. Optionally add also >>> title and description. Optionally also put units after each number, not >>> just to one place in title area as it is now. >>> >>> * Add possibility to add any image to Map Display (as in Animation Tool, >>> `g.gui.animation`). Use cases are organization logo and overview maps >>> (insets). >>> >>> * Add background color to d.legend. Currently the legend has transparent >>> background. Background rectangle should include all parts of the legend >>> including (possible) title. Additional features include rounded corners, >>> border and opacity settings. >>> >>> You can select whatever you want but it should be something you are >>> actually able to finish soon. You can also browse through bug tracker, >>> components wxGUI and Dispaly [5, 6], to see other options to select from. >>> >>> Vaclav >>> >>> [1] >>> http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students >>> [2] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html >>> [3] >>> http://trac.osgeo.org/grass/wiki/GSoC/2015#CompletebasiccartographysuiteinGRASSGISwxGUIMapDisplay >>> [4] http://trac.osgeo.org/grass/ticket/2369 >>> [5] >>> http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=wxGUI&order=priority&col=id&col=summary&col=status&col=type&col=priority&col=milestone&col=component >>> [6] >>> http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=Display&order=priority&col=id&col=summary&col=component&col=status&col=type&col=priority&col=milestone >>> >>> > >>> > I want to know whether someone is already committed to this >>> > Project or not? I also want to know how to get the mentor's contact >>> > regarding this Project. I have some Technical Doubts which I would >>> > like to ask them. >>> > Thanks >>> > Durgesh Pandey. >>> > _______________________________________________ >>> > grass-dev mailing list >>> > grass-dev at lists.osgeo.org >>> > http://lists.osgeo.org/mailman/listinfo/grass-dev >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdpan21 at gmail.com Mon Mar 9 14:38:21 2015 From: sdpan21 at gmail.com (Dp Docs) Date: Tue, 10 Mar 2015 03:08:21 +0530 Subject: [GRASS-dev] "Complete basic cartography suite in GRASS GIS wxGUI Map Display" In-Reply-To: References: Message-ID: Sir, I am getting one problem while accessing the subversion repo. Can you please help me with this? the problem is attached in this email. Thanks Durgesh Pandey. On Tue, Mar 10, 2015 at 2:49 AM, Dp Docs wrote: > Thank you sir for such a nice response. I will look forward to work on > this. > Thanks again > > Durgesh Pandey. > > On Tue, Mar 10, 2015 at 2:41 AM, Vaclav Petras > wrote: > >> >> >> On Mon, Mar 9, 2015 at 4:12 PM, Dp Docs wrote: >> >>> I would like to work on this " Add background color to d.legend.". Can >>> you please provide some approach and repository related to problem. >>> >> Once you have GRASS GIS source code from Subversion repository [1], you >> will find d.legend source code in `display/d.legend` directory [2]. You >> should compile GRASS GIS, so you have everything you need for development >> [3]. >> >> d.legend is using GRASS Display library [4]. It would be best if you find >> some display (d.*) module which is already drawing some rectangle, polygon >> or area and get inspiration from there. >> >> Please keep communication on the mailing list so other can contribute or >> read it too. >> >> Vaclav >> >> [1] http://trac.osgeo.org/grass/wiki/DownloadSource >> [2] http://trac.osgeo.org/grass/browser/grass/trunk/display/d.legend >> [3] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents >> [4] http://grass.osgeo.org/programming7/displaylib.html >> >> >> >>> >>> Durgesh Pandey. >>> >>> On Tue, Mar 10, 2015 at 1:36 AM, Vaclav Petras >>> wrote: >>> >>>> >>>> >>>> On Mon, Mar 9, 2015 at 4:33 AM, Dp Docs wrote: >>>> > >>>> > Hi, >>>> > I Am an undergrad. student from IIIT Hyderabad,India. I believe I have >>>> > good Programming Knowledge in languages like Python, C/C++. I have >>>> > Already Done Some Projects in these Languages. I have practical >>>> > knowledge in wxPython. I want to work on this Project as a pat of GSOC >>>> > 2015. >>>> >>>> Hi, >>>> >>>> this sounds great. As you perhaps noticed students are encouraged [1] >>>> to show their skills by contributing to the project before applications are >>>> evaluated. OSGeo recommends [2] to do some bug fixing or implementation of >>>> small features. You can even try to implement some smaller things from the >>>> GSoC idea itself [3]. I selected some options which might be appropriate: >>>> >>>> * Store legend, scale bar, north arrow and text (and potentially others >>>> objects if added) in the workspace (ticket #2369). >>>> >>>> * Add units to legend as parameter to d.legend. Optionally add also >>>> title and description. Optionally also put units after each number, not >>>> just to one place in title area as it is now. >>>> >>>> * Add possibility to add any image to Map Display (as in Animation >>>> Tool, `g.gui.animation`). Use cases are organization logo and overview maps >>>> (insets). >>>> >>>> * Add background color to d.legend. Currently the legend has >>>> transparent background. Background rectangle should include all parts of >>>> the legend including (possible) title. Additional features include rounded >>>> corners, border and opacity settings. >>>> >>>> You can select whatever you want but it should be something you are >>>> actually able to finish soon. You can also browse through bug tracker, >>>> components wxGUI and Dispaly [5, 6], to see other options to select from. >>>> >>>> Vaclav >>>> >>>> [1] >>>> http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students >>>> [2] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html >>>> [3] >>>> http://trac.osgeo.org/grass/wiki/GSoC/2015#CompletebasiccartographysuiteinGRASSGISwxGUIMapDisplay >>>> [4] http://trac.osgeo.org/grass/ticket/2369 >>>> [5] >>>> http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=wxGUI&order=priority&col=id&col=summary&col=status&col=type&col=priority&col=milestone&col=component >>>> [6] >>>> http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=Display&order=priority&col=id&col=summary&col=component&col=status&col=type&col=priority&col=milestone >>>> >>>> > >>>> > I want to know whether someone is already committed to this >>>> > Project or not? I also want to know how to get the mentor's contact >>>> > regarding this Project. I have some Technical Doubts which I would >>>> > like to ask them. >>>> > Thanks >>>> > Durgesh Pandey. >>>> > _______________________________________________ >>>> > grass-dev mailing list >>>> > grass-dev at lists.osgeo.org >>>> > http://lists.osgeo.org/mailman/listinfo/grass-dev >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error Type: application/octet-stream Size: 30623 bytes Desc: not available URL: From Michael.Barton at asu.edu Mon Mar 9 14:47:59 2015 From: Michael.Barton at asu.edu (Michael Barton) Date: Mon, 9 Mar 2015 21:47:59 +0000 Subject: [GRASS-dev] what happened to r.out.arc? Message-ID: <47B94B1E-0B90-4994-B645-4E1116CEE710@asu.edu> r.out.arc has disappeared from GRASS 7 and it is not at all clear what other module will output ESRI ASCII format. We need that to feed into NetLogo but it is also a pseudo-standard. Any suggestions? Michael ______________________________ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Head, Graduate Faculty in Complex Adaptive Systems Science Arizona State University Tempe, AZ 85287-2402 USA voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) fax: 480-965-7671(SHESC), 480-727-0709 (CSDC) www: http://csdc.asu.edu, http://shesc.asu.edu http://www.public.asu.edu/~cmbarton -------------- next part -------------- An HTML attachment was scrubbed... URL: From kratochanna at gmail.com Mon Mar 9 14:50:57 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Mon, 9 Mar 2015 17:50:57 -0400 Subject: [GRASS-dev] what happened to r.out.arc? In-Reply-To: <47B94B1E-0B90-4994-B645-4E1116CEE710@asu.edu> References: <47B94B1E-0B90-4994-B645-4E1116CEE710@asu.edu> Message-ID: On Mon, Mar 9, 2015 at 5:47 PM, Michael Barton wrote: > r.out.arc has disappeared from GRASS 7 and it is not at all clear what > other module will output ESRI ASCII format. We need that to feed into > NetLogo but it is also a pseudo-standard. > > r.out.gdal does not do that? Anna Any suggestions? > > Michael > ______________________________ > C. Michael Barton > Director, Center for Social Dynamics & Complexity > Professor of Anthropology, School of Human Evolution & Social Change > Head, Graduate Faculty in Complex Adaptive Systems Science > Arizona State University > Tempe, AZ 85287-2402 > USA > > voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) > fax: 480-965-7671(SHESC), 480-727-0709 (CSDC) > www: http://csdc.asu.edu, http://shesc.asu.edu > http://www.public.asu.edu/~cmbarton > > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From neteler at osgeo.org Mon Mar 9 14:52:12 2015 From: neteler at osgeo.org (Markus Neteler) Date: Mon, 9 Mar 2015 22:52:12 +0100 Subject: [GRASS-dev] what happened to r.out.arc? In-Reply-To: <47B94B1E-0B90-4994-B645-4E1116CEE710@asu.edu> References: <47B94B1E-0B90-4994-B645-4E1116CEE710@asu.edu> Message-ID: On Mon, Mar 9, 2015 at 10:47 PM, Michael Barton wrote: > r.out.arc has disappeared from GRASS 7 and it is not at all clear what other > module will output ESRI ASCII format. We need that to feed into NetLogo but > it is also a pseudo-standard. Please see http://trac.osgeo.org/grass/wiki/Grass7/NewFeatures#Replacedandremovedmodules -> r.out.arc: use r.out.gdal Markus From wenzeslaus at gmail.com Mon Mar 9 14:54:21 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Mon, 9 Mar 2015 17:54:21 -0400 Subject: [GRASS-dev] "Complete basic cartography suite in GRASS GIS wxGUI Map Display" In-Reply-To: References: Message-ID: On Mon, Mar 9, 2015 at 5:38 PM, Dp Docs wrote: > Sir, I am getting one problem while accessing the subversion repo. Can you > please help me with this? > I don't know why svn says "Connection refused". checkout works for me now. Aren't you behind some firewall? Do other Subversion repositories work for you (e.g. from Source Forge and GitHub)? > the problem is attached in this email. > Please, if you have error messages which are short text, just include the text in the email. Only if you have something which cannot be copy-pasted, or saved to a plain text file, use screenshots. For screenshots, create them as small as possible and include file extension to the file name. Vaclav Thanks > > Durgesh Pandey. > > On Tue, Mar 10, 2015 at 2:49 AM, Dp Docs wrote: > >> Thank you sir for such a nice response. I will look forward to work on >> this. >> Thanks again >> >> Durgesh Pandey. >> >> On Tue, Mar 10, 2015 at 2:41 AM, Vaclav Petras >> wrote: >> >>> >>> >>> On Mon, Mar 9, 2015 at 4:12 PM, Dp Docs wrote: >>> >>>> I would like to work on this " Add background color to d.legend.". Can >>>> you please provide some approach and repository related to problem. >>>> >>> Once you have GRASS GIS source code from Subversion repository [1], you >>> will find d.legend source code in `display/d.legend` directory [2]. You >>> should compile GRASS GIS, so you have everything you need for development >>> [3]. >>> >>> d.legend is using GRASS Display library [4]. It would be best if you >>> find some display (d.*) module which is already drawing some rectangle, >>> polygon or area and get inspiration from there. >>> >>> Please keep communication on the mailing list so other can contribute or >>> read it too. >>> >>> Vaclav >>> >>> [1] http://trac.osgeo.org/grass/wiki/DownloadSource >>> [2] http://trac.osgeo.org/grass/browser/grass/trunk/display/d.legend >>> [3] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents >>> [4] http://grass.osgeo.org/programming7/displaylib.html >>> >>> >>> >>>> >>>> Durgesh Pandey. >>>> >>>> On Tue, Mar 10, 2015 at 1:36 AM, Vaclav Petras >>>> wrote: >>>> >>>>> >>>>> >>>>> On Mon, Mar 9, 2015 at 4:33 AM, Dp Docs wrote: >>>>> > >>>>> > Hi, >>>>> > I Am an undergrad. student from IIIT Hyderabad,India. I believe I >>>>> have >>>>> > good Programming Knowledge in languages like Python, C/C++. I have >>>>> > Already Done Some Projects in these Languages. I have practical >>>>> > knowledge in wxPython. I want to work on this Project as a pat of >>>>> GSOC >>>>> > 2015. >>>>> >>>>> Hi, >>>>> >>>>> this sounds great. As you perhaps noticed students are encouraged [1] >>>>> to show their skills by contributing to the project before applications are >>>>> evaluated. OSGeo recommends [2] to do some bug fixing or implementation of >>>>> small features. You can even try to implement some smaller things from the >>>>> GSoC idea itself [3]. I selected some options which might be appropriate: >>>>> >>>>> * Store legend, scale bar, north arrow and text (and potentially >>>>> others objects if added) in the workspace (ticket #2369). >>>>> >>>>> * Add units to legend as parameter to d.legend. Optionally add also >>>>> title and description. Optionally also put units after each number, not >>>>> just to one place in title area as it is now. >>>>> >>>>> * Add possibility to add any image to Map Display (as in Animation >>>>> Tool, `g.gui.animation`). Use cases are organization logo and overview maps >>>>> (insets). >>>>> >>>>> * Add background color to d.legend. Currently the legend has >>>>> transparent background. Background rectangle should include all parts of >>>>> the legend including (possible) title. Additional features include rounded >>>>> corners, border and opacity settings. >>>>> >>>>> You can select whatever you want but it should be something you are >>>>> actually able to finish soon. You can also browse through bug tracker, >>>>> components wxGUI and Dispaly [5, 6], to see other options to select from. >>>>> >>>>> Vaclav >>>>> >>>>> [1] >>>>> http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students >>>>> [2] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html >>>>> [3] >>>>> http://trac.osgeo.org/grass/wiki/GSoC/2015#CompletebasiccartographysuiteinGRASSGISwxGUIMapDisplay >>>>> [4] http://trac.osgeo.org/grass/ticket/2369 >>>>> [5] >>>>> http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=wxGUI&order=priority&col=id&col=summary&col=status&col=type&col=priority&col=milestone&col=component >>>>> [6] >>>>> http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=Display&order=priority&col=id&col=summary&col=component&col=status&col=type&col=priority&col=milestone >>>>> >>>>> > >>>>> > I want to know whether someone is already committed to this >>>>> > Project or not? I also want to know how to get the mentor's contact >>>>> > regarding this Project. I have some Technical Doubts which I would >>>>> > like to ask them. >>>>> > Thanks >>>>> > Durgesh Pandey. >>>>> > _______________________________________________ >>>>> > grass-dev mailing list >>>>> > grass-dev at lists.osgeo.org >>>>> > http://lists.osgeo.org/mailman/listinfo/grass-dev >>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdpan21 at gmail.com Mon Mar 9 14:59:54 2015 From: sdpan21 at gmail.com (Dp Docs) Date: Tue, 10 Mar 2015 03:29:54 +0530 Subject: [GRASS-dev] "Complete basic cartography suite in GRASS GIS wxGUI Map Display" In-Reply-To: References: Message-ID: Durgesh Pandey. On Tue, Mar 10, 2015 at 3:24 AM, Vaclav Petras wrote: > > > On Mon, Mar 9, 2015 at 5:38 PM, Dp Docs wrote: > >> Sir, I am getting one problem while accessing the subversion repo. Can >> you please help me with this? >> > > I don't know why svn says "Connection refused". checkout works for me now. > Aren't you behind some firewall? Do other Subversion repositories work for > you (e.g. from Source Forge and GitHub)? > ?Ok. It's Not working any one of them. I think there are some blocked ports from proxy. First I will need to handle with it.? > > >> the problem is attached in this email. >> > > Please, if you have error messages which are short text, just include the > text in the email. Only if you have something which cannot be copy-pasted, > or saved to a plain text file, use screenshots. For screenshots, create > them as small as possible and include file extension to the file name. > ?I will do it from next time. ? > > > Vaclav > > Thanks >> >> Durgesh Pandey. >> >> On Tue, Mar 10, 2015 at 2:49 AM, Dp Docs wrote: >> >>> Thank you sir for such a nice response. I will look forward to work on >>> this. >>> Thanks again >>> >>> Durgesh Pandey. >>> >>> On Tue, Mar 10, 2015 at 2:41 AM, Vaclav Petras >>> wrote: >>> >>>> >>>> >>>> On Mon, Mar 9, 2015 at 4:12 PM, Dp Docs wrote: >>>> >>>>> I would like to work on this " Add background color to d.legend.". >>>>> Can you please provide some approach and repository related to problem. >>>>> >>>> Once you have GRASS GIS source code from Subversion repository [1], you >>>> will find d.legend source code in `display/d.legend` directory [2]. You >>>> should compile GRASS GIS, so you have everything you need for development >>>> [3]. >>>> >>>> d.legend is using GRASS Display library [4]. It would be best if you >>>> find some display (d.*) module which is already drawing some rectangle, >>>> polygon or area and get inspiration from there. >>>> >>>> Please keep communication on the mailing list so other can contribute >>>> or read it too. >>>> >>>> Vaclav >>>> >>>> [1] http://trac.osgeo.org/grass/wiki/DownloadSource >>>> [2] http://trac.osgeo.org/grass/browser/grass/trunk/display/d.legend >>>> [3] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents >>>> [4] http://grass.osgeo.org/programming7/displaylib.html >>>> >>>> >>>> >>>>> >>>>> Durgesh Pandey. >>>>> >>>>> On Tue, Mar 10, 2015 at 1:36 AM, Vaclav Petras >>>>> wrote: >>>>> >>>>>> >>>>>> >>>>>> On Mon, Mar 9, 2015 at 4:33 AM, Dp Docs wrote: >>>>>> > >>>>>> > Hi, >>>>>> > I Am an undergrad. student from IIIT Hyderabad,India. I believe I >>>>>> have >>>>>> > good Programming Knowledge in languages like Python, C/C++. I have >>>>>> > Already Done Some Projects in these Languages. I have practical >>>>>> > knowledge in wxPython. I want to work on this Project as a pat of >>>>>> GSOC >>>>>> > 2015. >>>>>> >>>>>> Hi, >>>>>> >>>>>> this sounds great. As you perhaps noticed students are encouraged [1] >>>>>> to show their skills by contributing to the project before applications are >>>>>> evaluated. OSGeo recommends [2] to do some bug fixing or implementation of >>>>>> small features. You can even try to implement some smaller things from the >>>>>> GSoC idea itself [3]. I selected some options which might be appropriate: >>>>>> >>>>>> * Store legend, scale bar, north arrow and text (and potentially >>>>>> others objects if added) in the workspace (ticket #2369). >>>>>> >>>>>> * Add units to legend as parameter to d.legend. Optionally add also >>>>>> title and description. Optionally also put units after each number, not >>>>>> just to one place in title area as it is now. >>>>>> >>>>>> * Add possibility to add any image to Map Display (as in Animation >>>>>> Tool, `g.gui.animation`). Use cases are organization logo and overview maps >>>>>> (insets). >>>>>> >>>>>> * Add background color to d.legend. Currently the legend has >>>>>> transparent background. Background rectangle should include all parts of >>>>>> the legend including (possible) title. Additional features include rounded >>>>>> corners, border and opacity settings. >>>>>> >>>>>> You can select whatever you want but it should be something you are >>>>>> actually able to finish soon. You can also browse through bug tracker, >>>>>> components wxGUI and Dispaly [5, 6], to see other options to select from. >>>>>> >>>>>> Vaclav >>>>>> >>>>>> [1] >>>>>> http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students >>>>>> [2] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html >>>>>> [3] >>>>>> http://trac.osgeo.org/grass/wiki/GSoC/2015#CompletebasiccartographysuiteinGRASSGISwxGUIMapDisplay >>>>>> [4] http://trac.osgeo.org/grass/ticket/2369 >>>>>> [5] >>>>>> http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=wxGUI&order=priority&col=id&col=summary&col=status&col=type&col=priority&col=milestone&col=component >>>>>> [6] >>>>>> http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=Display&order=priority&col=id&col=summary&col=component&col=status&col=type&col=priority&col=milestone >>>>>> >>>>>> > >>>>>> > I want to know whether someone is already committed to this >>>>>> > Project or not? I also want to know how to get the mentor's contact >>>>>> > regarding this Project. I have some Technical Doubts which I would >>>>>> > like to ask them. >>>>>> > Thanks >>>>>> > Durgesh Pandey. >>>>>> > _______________________________________________ >>>>>> > grass-dev mailing list >>>>>> > grass-dev at lists.osgeo.org >>>>>> > http://lists.osgeo.org/mailman/listinfo/grass-dev >>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Barton at asu.edu Mon Mar 9 15:20:13 2015 From: Michael.Barton at asu.edu (Michael Barton) Date: Mon, 9 Mar 2015 22:20:13 +0000 Subject: [GRASS-dev] what happened to r.out.arc? In-Reply-To: References: <47B94B1E-0B90-4994-B645-4E1116CEE710@asu.edu> <97994CFC-496D-4A17-A874-8CC4C29A64AB@asu.edu> Message-ID: So AAIGrid is the newish name for ESRI in gdal I guess. In tests today, it has the same problem as before. The null values need to be specified as -9999. This is not a big problem. Just a little annoyance. Sometimes it exports different headers that are not compatible with NetLogo raster ingest. Perhaps this is the only program that has a problem but maybe not. Sometimes it exports a header with a single ?cellsize? line (which is what r.out.arc always did and what NetLogo expects) and other times it exports 2 lines ?dx? and ?dy?. Of course someone can go in and edit the header but it makes for confusing output that sometimes works and sometimes does not. Michael ______________________________ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Head, Graduate Faculty in Complex Adaptive Systems Science Arizona State University Tempe, AZ 85287-2402 USA voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) fax: 480-965-7671(SHESC), 480-727-0709 (CSDC) www: http://csdc.asu.edu, http://shesc.asu.edu http://www.public.asu.edu/~cmbarton On Mar 9, 2015, at 2:59 PM, Anna Petr??ov? > wrote: On Mon, Mar 9, 2015 at 5:55 PM, Michael Barton > wrote: It did not do it well before and we are having trouble finding what to pick to get this (it doesn?t help that the list of output formats is not sorted for some reason). We don?t see an ESRI ASCII or ASC format. AAIGrid (rw): Arc/Info ASCII Grid? Michael ______________________________ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Head, Graduate Faculty in Complex Adaptive Systems Science Arizona State University Tempe, AZ 85287-2402 USA voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) fax: 480-965-7671(SHESC), 480-727-0709 (CSDC) www: http://csdc.asu.edu, http://shesc.asu.edu http://www.public.asu.edu/~cmbarton On Mar 9, 2015, at 2:50 PM, Anna Petr??ov? > wrote: On Mon, Mar 9, 2015 at 5:47 PM, Michael Barton > wrote: r.out.arc has disappeared from GRASS 7 and it is not at all clear what other module will output ESRI ASCII format. We need that to feed into NetLogo but it is also a pseudo-standard. r.out.gdal does not do that? Anna Any suggestions? Michael ______________________________ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Head, Graduate Faculty in Complex Adaptive Systems Science Arizona State University Tempe, AZ 85287-2402 USA voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) fax: 480-965-7671(SHESC), 480-727-0709 (CSDC) www: http://csdc.asu.edu, http://shesc.asu.edu http://www.public.asu.edu/~cmbarton _______________________________________________ grass-dev mailing list grass-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From neteler at osgeo.org Mon Mar 9 15:32:58 2015 From: neteler at osgeo.org (Markus Neteler) Date: Mon, 9 Mar 2015 23:32:58 +0100 Subject: [GRASS-dev] what happened to r.out.arc? In-Reply-To: References: <47B94B1E-0B90-4994-B645-4E1116CEE710@asu.edu> <97994CFC-496D-4A17-A874-8CC4C29A64AB@asu.edu> Message-ID: On Mon, Mar 9, 2015 at 11:20 PM, Michael Barton wrote: > So AAIGrid is the newish name for ESRI in gdal I guess. In tests today, it > has the same problem as before. > > The null values need to be specified as -9999. This is not a big problem. > Just a little annoyance. I would expect that r.out.gdal can take care of that. > Sometimes it exports different headers that are not compatible with NetLogo > raster ingest. Perhaps this is the only program that has a problem but maybe > not. > > Sometimes it exports a header with a single ?cellsize? line (which is what > r.out.arc always did and what NetLogo expects) and other times it exports 2 > lines ?dx? and ?dy?. This happens in case of non-square pixels: http://www.gdal.org/frmt_various.html "If pixels being written are not square (the width and height of a pixel in georeferenced units differ) then DX and DY parameters will be output instead of CELLSIZE." So you may control that with g.region prior to r.out.gdal. Markus From sarthak.a at research.iiit.ac.in Mon Mar 9 15:50:02 2015 From: sarthak.a at research.iiit.ac.in (Sarthak Agarwal) Date: Tue, 10 Mar 2015 04:20:02 +0530 (IST) Subject: [GRASS-dev] GSOC project proposal Message-ID: <1758820884.4386370.1425941402587.JavaMail.zimbra@research.iiit.ac.in> Dear Sir/Madam, Myself Sarthak currently working under Dr. KS Rajan as a research student in Spatial Informatics Lab, IIIT hyderabad . I am currently working in spatial databases by optimizing the performance of mongoDb for spatial databases. Previously i have worked on Billboard placement optimization problem considering the spatial ,temporal and traffic features. I am interested in working with grass org under the project "New easy-to-use command line interface for GRASS GIS". The problem looks interesting to me. I am familiar with the technologies needed for this project.As i have already worked in c++ and python . Can you please provide me with some more literature and links to understand the underlying concept behind the problem and a direction to solve it. Also I want to know whether someone is already committed to this Project or not? Regards, Sarthak Agarwal Btech and Ms by research in Spatial Informatics International Institute Of Information Technology ,Hyderabad From trac at osgeo.org Mon Mar 9 19:15:53 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 10 Mar 2015 02:15:53 -0000 Subject: [GRASS-dev] [GRASS GIS] #2437: order parameters in g.remove window In-Reply-To: <044.49b8b0259ab741c03c1bfc8c8a2b3925@osgeo.org> References: <044.49b8b0259ab741c03c1bfc8c8a2b3925@osgeo.org> Message-ID: <053.e2ec52c85e4e12e03e16edcefac0733b@osgeo.org> #2437: order parameters in g.remove window --------------------------+------------------------------------------------- Reporter: pvanbosgeo | Owner: grass-dev@? Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.1 Component: Default | Version: unspecified Resolution: fixed | Keywords: g.list, g.remove, g.mlist, g.mremove Platform: All | Cpu: Unspecified --------------------------+------------------------------------------------- Changes (by wenzeslaus): * status: new => closed * resolution: => fixed * milestone: 7.1.0 => 7.0.1 Comment: Original issue is solved and the interface changed for 7.0.0. Closing. (Trac forces milestone 7.0.1 but this should have been closed for 7.0.0.) Open a new ticket if you have further concerns. -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 9 19:21:32 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 10 Mar 2015 02:21:32 -0000 Subject: [GRASS-dev] [GRASS GIS] #2557: a few new monochrome color tables (should they be backported) ? In-Reply-To: <042.4fdb45f45e87264f27de4009c548d69e@osgeo.org> References: <042.4fdb45f45e87264f27de4009c548d69e@osgeo.org> Message-ID: <051.5316da791cc56f2553545f55871c631b@osgeo.org> #2557: a few new monochrome color tables (should they be backported) ? --------------------------+------------------------------------------------- Reporter: mlennert | Owner: grass-dev@? Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.0 Component: LibGIS | Version: svn-releasebranch70 Resolution: fixed | Keywords: colortables Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Changes (by wenzeslaus): * status: new => closed * resolution: => fixed Comment: This is part of 7.0.0, so closing as fixed. -- Ticket URL: GRASS GIS From wenzeslaus at gmail.com Mon Mar 9 20:28:02 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Mon, 9 Mar 2015 23:28:02 -0400 Subject: [GRASS-dev] GSOC project proposal In-Reply-To: References: Message-ID: On Mon, Mar 9, 2015 at 6:32 PM, sarthak agarwal wrote: > Dear Sir/Madam, > > Myself Sarthak currently working under Dr. KS Rajan as a research student > in Spatial Informatics Lab, IIIT hyderabad . I am currently working in > spatial databases by optimizing the performance of mongoDb for spatial > databases. Previously i have worked on Billboard placement optimization > problem considering the spatial ,temporal and traffic features. > > I am interested in working with grass org under the project "New > easy-to-use command line interface for GRASS GIS*". *The problem looks > interesting to me. I am familiar with the technologies needed for this > project.As i have already worked in c++ and python . > > Hi, this sounds good. You should find some enhancement or bug in GRASS GIS bug tracker [1] and implement or fix before the application evaluation it to show level of you proficiency [2, 3]. For example an enhancement ticket #1204 related to invoking GRASS. The wish is to start grass7 command with a wxGUI workspace file as a parameter [4]. Another option is to continue in implementing of related #2579, enhancement to provide command line parameter to execute modules. However, the big issue there is more the discussion about the interface rather then the implementation itself which is partially done already. More challenging option is to implement some part of the GSoC project, e.g. for rasters or for PostGIS vectors. This is of course highly related task but it can be tricky and what you need is something which is working well before the application evaluation. More smaller tasks might a better idea. To understand how projections (coordinate systems) work in GRASS GIS (see below), it might be advantageous for you to implement r3.proj module which would project 3D rasters from one GRASS Location to another. r.proj module is in C but for start r3.proj module could be in Python and would use r.proj in the background (similar idea can be ussed for GRASS imagery groups and temporal datasets which also don't have their "proj" module). Further, you could try to write r3.in.proj module which would import 3D raster data in one projection to GRASS Database with another projection (see source code of r.in.proj). See below for more resources on this topic. Writing tests for related things such as #2579, or modules r.in.proj, v.in.proj or the other modules mentioned below might be quite good introduction to the topic but to show your skill you might want to combine it with some other task which would involve actual coding. However, you can explore the open issues on GRASS GIS bug tracker yourself. Just keep in mind that this GSoC project would be in Python, so the thing you select be in Python. In any case, start with compiling GRASS GIS from source code from Subversion repository [6]. [1] https://trac.osgeo.org/grass/query [2] http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students [3] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html [4] https://trac.osgeo.org/grass/ticket/1204 [5] http://trac.osgeo.org/grass/ticket/2579 [6] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents > Can you please provide me with some more literature and links to > understand the underlying concept behind the problem and a direction to > solve it. > Start with running GRASS GIS and playing with data in different projections in case you are not familiar with GRASS GIS already. Read through the related manual page [7] and/or tutorials online on getting your data into GRASS Database. Definitively read the code from various projects and other things linked in the GSoC idea [8]. Go through the modules related to importing, linking, exporting and projecting data, some of them are linked below. Look also at how GRASS GIS can connect to PostGIS [9]. [7] http://grass.osgeo.org/grass70/manuals/helptext.html [8] http://trac.osgeo.org/grass/wiki/GSoC/2015#Neweasy-to-usecommandlineinterfaceforGRASSGIS [9] http://grasswiki.osgeo.org/wiki/PostGIS Related modules: http://grass.osgeo.org/grass70/manuals/r.in.gdal.html http://grass.osgeo.org/grass70/manuals/v.in.ogr.html http://grass.osgeo.org/grass70/manuals/addons/r.in.proj.html http://grass.osgeo.org/grass70/manuals/addons/v.in.proj.html http://grass.osgeo.org/grass70/manuals/r.proj.html http://grass.osgeo.org/grass70/manuals/v.proj.html http://grass.osgeo.org/grass70/manuals/r.external.html http://grass.osgeo.org/grass70/manuals/v.external.html Source code for r.in.proj and v.in.proj: https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.in.proj https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.in.proj Also I want to know whether someone is already committed to this Project or > not? > > No, at least nobody wrote to the mailing list. Best, Vaclav Regards, > Sarthak Agarwal > Btech and Ms by research in Spatial Informatics > International Institute Of Information Technology ,Hyderabad > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Mon Mar 9 20:34:51 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 10 Mar 2015 03:34:51 -0000 Subject: [GRASS-dev] [GRASS GIS] #2579: Specify command to be exectued as parameter of grass command In-Reply-To: <044.1dbbd61632ffa6aa61ae42740555b3ef@osgeo.org> References: <044.1dbbd61632ffa6aa61ae42740555b3ef@osgeo.org> Message-ID: <053.a21e1485c3ff915f060929922146c141@osgeo.org> #2579: Specify command to be exectued as parameter of grass command ----------------------------------------------+----------------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.1.0 Component: Startup | Version: svn-trunk Keywords: batch job, GRASS_BATCH_JOB, init | Platform: All Cpu: Unspecified | ----------------------------------------------+----------------------------- Comment(by wenzeslaus): See also older ticket with the same idea #1660 (leaving this one open as the discussion is more developed here). -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 9 20:43:10 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 10 Mar 2015 03:43:10 -0000 Subject: [GRASS-dev] [GRASS GIS] #1660: RFE: add new batch= command line option to main grass7 startup script In-Reply-To: <040.f84c91eb33b7dc4a70e01fcaf0bd59ac@osgeo.org> References: <040.f84c91eb33b7dc4a70e01fcaf0bd59ac@osgeo.org> Message-ID: <049.69d1b29d870d25ce5ff377ea729b0662@osgeo.org> #1660: RFE: add new batch= command line option to main grass7 startup script --------------------------+------------------------------------------------- Reporter: hamish | Owner: grass-dev@? Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.0 Component: Startup | Version: svn-trunk Resolution: duplicate | Keywords: GRASS_BATCH_JOB Platform: All | Cpu: All --------------------------+------------------------------------------------- Changes (by wenzeslaus): * status: new => closed * resolution: => duplicate Comment: Replying to [comment:1 wenzeslaus]: > It would be nice if it would support not only scripts but any executable including GRASS modules. > > Also the question is how the parameters would be passed to the process. > > The whole command in one parameter (the question is how quoted parameters would be passed): {{{ grass --batch="g.region -p" }}} Passing parameters is crucial enhancement in comparison to `GRASS_BATCH_JOB`. However, this syntax would not work for more complicated cases due to parsing issues. > > Alternatively, parameters after `--batch=...` can be passed to the subprocess. > {{{ grass --batch=g.region -p }}} This is strange hybrid which is not necessary. `grass7` command is not using syntax with `=` (unlike modules) and separate module parameters would anyway break the rules. See #2579 for better suggestions. > > > > perhaps with that done GRASS_BATCH_JOB could be retired for GRASS 7.0? (or would there still be some reason to keep it as an alternate method?) > > The only reason to keep it would be backward compatibility and it think this is not concern here considering the audience (size and type). Perhaps both can be for some time in trunk but not in release. `GRASS_BATCH_JOB` is part of 7.0.0, so it will stay there. But once this is implemented, I don't see any advantage in `GRASS_BATCH_JOB`. Closing this as a duplicate of #2579 (which I opened not remembering this one). Leaving the other one as primary as the discussion is more developed there (including patch). -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 9 20:46:26 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 10 Mar 2015 03:46:26 -0000 Subject: [GRASS-dev] [GRASS GIS] #2579: Specify command to be exectued as parameter of grass command In-Reply-To: <044.1dbbd61632ffa6aa61ae42740555b3ef@osgeo.org> References: <044.1dbbd61632ffa6aa61ae42740555b3ef@osgeo.org> Message-ID: <053.48145910aa2c0969e5eeeba066370c17@osgeo.org> #2579: Specify command to be exectued as parameter of grass command ----------------------------------------------+----------------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.1.0 Component: Startup | Version: svn-trunk Keywords: batch job, GRASS_BATCH_JOB, init | Platform: All Cpu: Unspecified | ----------------------------------------------+----------------------------- Comment(by wenzeslaus): Replying to [comment:4 martinl]: > Replying to [comment:3 rkrug]: > > > I guess there is no chance that it can be included into GRASS 7? > > I would say no for GRASS 7.0, the issue is focused on GRASS 7.1 I would say. Right, the I've already set the milestone to 7.1.0. Feedback for the command line syntax would be appreciated to move this forward and is necessary before including to trunk (which should be done and before the patch becomes incompatible). -- Ticket URL: GRASS GIS From ad.laza32 at gmail.com Tue Mar 10 00:09:40 2015 From: ad.laza32 at gmail.com (=?UTF-8?Q?Adam_La=C5=BEa?=) Date: Tue, 10 Mar 2015 08:09:40 +0100 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS In-Reply-To: References: Message-ID: Hi, I worked on natural neigbour interpolation and I wrote v.surf.nnbathy and r.surf.nnbathy modules in Python [1]. These modules are dependent on external libraries nn-c and Triangle. For my bachelor thesis I try to get rid of the dependencies and use existing modules v.delaunay and v.voronoi instead. Adam [1] http://trac.osgeo.org/grass/browser/grass-addons/grass7/misc/m.surf.nnbathy?rev=63441 2015-03-09 17:02 GMT+01:00 Anna Petr??ov? : > > > On Mon, Mar 9, 2015 at 10:37 AM, Adam La?a wrote: > >> Hi devs, >> >> I study geoinformatics at CTU in Prague and I get interested in some of >> your topics for GSoC. I have basic knowledge in C/C++ and I've already >> written some code in Python for GRASS Add-Ons. >> I'd like to focus on Mapnik engine, actual display drivers and graphic >> outputs. >> >> Let me know if this topic is still free to pick-up and what I shlould do >> for the next step. >> > > Welcome, for start, could you please link here all your contributions so > that we don't have to search for it? > > As far as I know, the topic is still free. > > Cheers, > > Anna > > >> > >> Thanks. >> Adam Laza >> >> _______________________________________________ >> grass-dev mailing list >> grass-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/grass-dev >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Tue Mar 10 01:04:31 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 10 Mar 2015 08:04:31 -0000 Subject: [GRASS-dev] [GRASS GIS] #2618: v.category option=transfer does not copy multiple cat values (was: v.vector option=transfer does not copy multiple cat values) In-Reply-To: <037.f9a61c7ce33c217b47e6d4982e5f2a86@osgeo.org> References: <037.f9a61c7ce33c217b47e6d4982e5f2a86@osgeo.org> Message-ID: <046.d5beac805d8ff52e1395b532b4724d54@osgeo.org> #2618: v.category option=transfer does not copy multiple cat values ---------------------------------+------------------------------------------ Reporter: ulf | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Vector | Version: 7.0.0 Keywords: v.category transfer | Platform: Linux Cpu: x86-64 | ---------------------------------+------------------------------------------ Comment(by mmetz): Fixed in r64825,6 (trunk, relbr70). -- Ticket URL: GRASS GIS From landa.martin at gmail.com Tue Mar 10 01:14:29 2015 From: landa.martin at gmail.com (Martin Landa) Date: Tue, 10 Mar 2015 09:14:29 +0100 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS In-Reply-To: References: Message-ID: Hi, 2015-03-10 8:09 GMT+01:00 Adam La?a : > I worked on natural neigbour interpolation and I wrote v.surf.nnbathy and > r.surf.nnbathy modules in Python [1]. These modules are dependent on btw, it's old link, the modules have been moved to [1,2]. Martin [1] http://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.surf.nnbathy [2] http://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.surf.nnbathy -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From lucadeluge at gmail.com Tue Mar 10 01:20:30 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Tue, 10 Mar 2015 09:20:30 +0100 Subject: [GRASS-dev] Next GRASS community sprint Message-ID: Hi devs, what do you think about organize next GRASS community sprint in Como after the FOSS4G EU? Starting the Saturday with the FOSS4G EU code sprint [0] and continue for some days, maybe until Wednesday 22 [0] http://wiki.osgeo.org/wiki/Conference-Europe_2015-Como/Code_sprint -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From trac at osgeo.org Tue Mar 10 01:45:37 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 10 Mar 2015 08:45:37 -0000 Subject: [GRASS-dev] [GRASS GIS] #2579: Specify command to be exectued as parameter of grass command In-Reply-To: <044.1dbbd61632ffa6aa61ae42740555b3ef@osgeo.org> References: <044.1dbbd61632ffa6aa61ae42740555b3ef@osgeo.org> Message-ID: <053.82c3b64c56a6b82c0c4e7434856ac125@osgeo.org> #2579: Specify command to be exectued as parameter of grass command ----------------------------------------------+----------------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.1.0 Component: Startup | Version: svn-trunk Keywords: batch job, GRASS_BATCH_JOB, init | Platform: All Cpu: Unspecified | ----------------------------------------------+----------------------------- Comment(by rkrug): Some remarks concerning the syntax: 1) I don't like the idea of having to repeat the mapset each time as it will require quite a bit of typing and possible errors in longer scripts. So the assumption to use the mapset which is in the rc file (i.e., if I am correct, the one used before), would be quite useful. 2) Instead of using the normal `grass` command, I would suggest to introduce a new command(e.g. {{{ggrassbatch}}}), which is taking only one parameter: the command to be executed including the parameter. So it could be used as {{{grassbatch r.info}}} 3) The function {{{grassbatch}}} should accept, in addition to the normal grass commands, one more command named e.g. {{{set.mapset}}} which is only doing one thing, setting the mapset in the rc file, so this would be the mapset to be used for all following {{{grassbatch}}} commands, unless the mapset is changed. So a script could look as followed: {{{ grassbatch set.mapset ~/grassdata/nc_spm_08_grass7/user1 grassbatch .../test_script.sh grassbatch r.info grassbatch r.mapcalc "aaa = 5" }}} -- Ticket URL: GRASS GIS From landa.martin at gmail.com Tue Mar 10 01:47:25 2015 From: landa.martin at gmail.com (Martin Landa) Date: Tue, 10 Mar 2015 09:47:25 +0100 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS In-Reply-To: References: Message-ID: Hi Adam, 2015-03-09 15:37 GMT+01:00 Adam La?a : > I study geoinformatics at CTU in Prague and I get interested in some of your > topics for GSoC. I have basic knowledge in C/C++ and I've already written > some code in Python for GRASS Add-Ons. > I'd like to focus on Mapnik engine, actual display drivers and graphic > outputs. great! The proposal on the wiki [1] is somehow focused on writing alternative rendering engine for ps.map [2] which is currently used by wxGUI Cartographic Composer [3]. It would be probably a good idea also to investigate whether would be possible to write a new GRASS display driver [4] based on Mapnik libraries. In other words replacement for Cairo [5] driver focused on cartographic outputs. Such driver would be written in C and would require C-API for Mapnik, I found something on [6], but I am not sure if it would be possible to use. Martin [1] http://trac.osgeo.org/grass/wiki/GSoC/2015#MapnikrenderingengineforGRASSGIS [2] http://grass.osgeo.org/grass70/manuals/ps.map.html [3] http://grasswiki.osgeo.org/wiki/WxGUI_Cartographic_Composer [4] http://grass.osgeo.org/grass70/manuals/displaydrivers.html [5] http://grass.osgeo.org/grass70/manuals/cairodriver.html [6] https://github.com/springmeyer/mapnik-c-api -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From lucadeluge at gmail.com Tue Mar 10 01:48:34 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Tue, 10 Mar 2015 09:48:34 +0100 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS In-Reply-To: References: Message-ID: On 9 March 2015 at 15:37, Adam La?a wrote: > Hi devs, > Hi Adam, > I study geoinformatics at CTU in Prague and I get interested in some of your > topics for GSoC. I have basic knowledge in C/C++ and I've already written > some code in Python for GRASS Add-Ons. > I'd like to focus on Mapnik engine, actual display drivers and graphic > outputs. > cool! > Let me know if this topic is still free to pick-up and what I shlould do for > the next step. > I think it is still free, nobody wrote in the mailing list > Thanks. > Adam Laza > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From lucadeluge at gmail.com Tue Mar 10 01:56:52 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Tue, 10 Mar 2015 09:56:52 +0100 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS In-Reply-To: References: Message-ID: On 10 March 2015 at 09:47, Martin Landa wrote: > Hi Adam, > Hi Martin, > 2015-03-09 15:37 GMT+01:00 Adam La?a : >> I study geoinformatics at CTU in Prague and I get interested in some of your >> topics for GSoC. I have basic knowledge in C/C++ and I've already written >> some code in Python for GRASS Add-Ons. >> I'd like to focus on Mapnik engine, actual display drivers and graphic >> outputs. > > great! The proposal on the wiki [1] is somehow focused on writing > alternative rendering engine for ps.map [2] which is currently used by > wxGUI Cartographic Composer [3]. It would be probably a good idea also > to investigate whether would be possible to write a new GRASS display > driver [4] based on Mapnik libraries. In other words replacement for > Cairo [5] driver focused on cartographic outputs. Such driver would be > written in C and would require C-API for Mapnik, I found something on > [6], but I am not sure if it would be possible to use. > Good Idea to create a new driver based on Mapnik ;-) I never heard about the C-API for Mapnik but they should be useful. I could ask to Dane what is the stability of the C-API. Is there any way to write the driver in Python (the Mapnik Python API are probably more stable, used and tested than the C-API) > Martin > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From nik at nikosalexandris.net Tue Mar 10 05:04:16 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Tue, 10 Mar 2015 14:04:16 +0200 Subject: [GRASS-dev] Next GRASS community sprint In-Reply-To: References: Message-ID: <4e67ab4141afaaeeb475bd97c8b16ca3@nikosalexandris.net> Luca Delucchi wrote: > Hi devs, > what do you think about organize next GRASS community sprint in Como > after the FOSS4G EU? > Starting the Saturday with the FOSS4G EU code sprint [0] and continue > for some days, maybe until Wednesday 22 > [0] > http://wiki.osgeo.org/wiki/Conference-Europe_2015-Como/Code_sprint Hi Luca. Small typo in "18th July 2014", I hope. Nikos From lucadeluge at gmail.com Tue Mar 10 05:20:40 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Tue, 10 Mar 2015 13:20:40 +0100 Subject: [GRASS-dev] Next GRASS community sprint In-Reply-To: <4e67ab4141afaaeeb475bd97c8b16ca3@nikosalexandris.net> References: <4e67ab4141afaaeeb475bd97c8b16ca3@nikosalexandris.net> Message-ID: On 10 March 2015 at 13:04, Nikos Alexandris wrote: > > Hi Luca. Small typo in "18th July 2014", I hope. > thanks, fixed > Nikos > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From trac at osgeo.org Tue Mar 10 07:14:34 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 10 Mar 2015 14:14:34 -0000 Subject: [GRASS-dev] [GRASS GIS] #2617: wxgui Raster query redirect to console UnicodeDecodeError In-Reply-To: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> References: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> Message-ID: <049.6c89b2dce7915ba1bb7cad11e758ea66@osgeo.org> #2617: wxgui Raster query redirect to console UnicodeDecodeError -----------------------------+---------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: query, encoding | Platform: MSWindows Vista Cpu: Unspecified | -----------------------------+---------------------------------------------- Comment(by glynn): Replying to [comment:2 marisn]: > The source of problem is r47310 where instead of installing unicode version of gettext a bytestring version is installed. This should work fine, but now in every place where a _() call is made, it returns str for unicode translations. Reverting r47310 fixes this bug (and probably others too!) without any problems, still I would like to hear Glynn's rationale why it was necessary in the first place (preferably with patches that solve _() issue if r47310 is to stay). The scripting library only uses byte strings, never unicode. Values returned from _() are typically written to streams (stdout/stderr or files) or used as command-line arguments. These contexts invariably require byte strings, so if _() returned a unicode value it will just get converted to a byte string using the default encoding (not the locale's encoding or filesystem encoding etc), which is usually ASCII. So prior to r47310, any attempt by a script to use a translated string while in a non- English locale was likely to result in the familiar "codec can't encode character ..." error. If there's a bug here, it's wxGUI expecting the grass.script library to cater to it. grass.script doesn't exist for the benefit of wxGUI. If grass.script isn't suitable for wxGUI (e.g. because of wxPython's use of unicode), wxGUI should provide its own alternatives, not break grass.script. But the real question is: where is that UTF-8 coming from? On Windows, nothing should ever see UTF-8, as Windows doesn't support UTF-8 as an actual codepage (cp65001 is a pseudo-codepage which exists to allow certain functions to use UTF-8; but you can't have a locale which uses cp65001 as its codepage). Byte strings which end up in wxGUI should be interpreted as using the locale's codepage (cp1257 in this case), as should anything converted from unicode to a byte string by wxGUI. Anything coming from wxPython (e.g. the contents of a text field) should be unicode values (UTF-16-LE internally). > Not using unicode version of gettext is really strange, as Slovenian is the only language NOT using UTF-8 in their PO files and it has seen the last update in 2005, thus GRASS PO files ARE unicode-ready. The encoding used in PO files doesn't matter on systems which use GNU gettext, which will automatically convert from the encoding used in the PO file to the locale's encoding (so a single PO file can be used for both e.g. en_GB.utf8 and en_GB.iso88591). In fact, the encoding used in PO files shouldn't even be visible to applications (unless they're trying to read the PO file directly rather than using gettext, which would be dumb). Ideally, PO files should use the locale's legacy encoding (e.g ISO-8859-1 for most of Western Europe). Newer systems will translate that to UTF-8 if that's what the locale uses; older systems will just copy the data verbatim, so it needs to use the locale's encoding (which, on older systems, won't be UTF-8). This has the added advantage of restricting what goes into those files to characters which can actually be displayed. -- Ticket URL: GRASS GIS From wenzeslaus at gmail.com Tue Mar 10 07:48:28 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Tue, 10 Mar 2015 10:48:28 -0400 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS In-Reply-To: References: Message-ID: On Tue, Mar 10, 2015 at 4:56 AM, Luca Delucchi wrote: > On 10 March 2015 at 09:47, Martin Landa wrote: > > Hi Adam, > > > > Hi Martin, > > > 2015-03-09 15:37 GMT+01:00 Adam La?a : > >> I study geoinformatics at CTU in Prague and I get interested in some of > your > >> topics for GSoC. I have basic knowledge in C/C++ and I've already > written > >> some code in Python for GRASS Add-Ons. > >> I'd like to focus on Mapnik engine, actual display drivers and graphic > >> outputs. > > > > great! The proposal on the wiki [1] is somehow focused on writing > > alternative rendering engine for ps.map [2] which is currently used by > > wxGUI Cartographic Composer [3]. It would be probably a good idea also > > to investigate whether would be possible to write a new GRASS display > > driver [4] based on Mapnik libraries. In other words replacement for > > Cairo [5] driver focused on cartographic outputs. Such driver would be > > written in C and would require C-API for Mapnik, I found something on > > [6], but I am not sure if it would be possible to use. > > > > Good Idea to create a new driver based on Mapnik ;-) > I never heard about the C-API for Mapnik but they should be useful. I > could ask to Dane what is the stability of the C-API. > Is there any way to write the driver in Python (the Mapnik Python API > are probably more stable, used and tested than the C-API) > > Adam, Luca and Martin, I agree that the cartography in GRASS GIS is limited and I always like the idea of using another project to do the hard work for us. However, as I see the discussion here, I would recommend you to be more specific about the advantages, disadvantages and possible implementation of this proposal. For the idea itself, how it would work with Mapnik dependency once it is implemented especially if the dependency would be through C API? What are the chances that it will be actually used. I have in my mind that there are still problems with Cairo on MS Windows and until recently one had to often use PNG driver on MS Windows. Speaking about ps.map + Cartographic Composer versus display drivers + Map Display, I prefer the latter and I think we should specify our priorities. If I need to start another application (or window), I can also start, for cartography purposes, completely different application such as QGIS. Then GRASS-QGIS connection is the think which should be improved. QGIS map composer also has Python API if I remember correctly and it is highly probable that one has both GRASS GIS and QGIS installed. It is not out of interest that there was a Mapnik plugin for QGIS [1] but it is no longer maintained [2] (ended before version 2.0 [3]). Adam, you should also notice not only that more students can apply for one project (idea) but also that one student can submit multiple applications for different projects. Best, Vaclav [1] http://plugins.qgis.org/plugins/quantumnik/ [2] https://github.com/springmeyer/quantumnik/commits/master [3] http://plugins.qgis.org/plugins/quantumnik/version/0.4.1/ > > Martin > > > > > -- > ciao > Luca > > http://gis.cri.fmach.it/delucchi/ > www.lucadelu.org > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucadeluge at gmail.com Tue Mar 10 08:10:03 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Tue, 10 Mar 2015 16:10:03 +0100 Subject: [GRASS-dev] problem with grass7 package and Ubuntu 12.04 Message-ID: Hi, in Italian mailing list was reported a problem with grass7 package and Ubuntu 12.04. Sorry if the following error is in Italian, during installation of grass7 the package is looking for libnetcdf6 but there is no libnetcdf6 in ubuntu 12.04, but there are some similar (different version) libnetcdff5:i386 libnetcdfc7:i386 libnetcdfc++4:i386 libcf0:i386 libnetcdff5 libnetcdfc7 libnetcdfc++4 libcf0. Is the package broken? Does it need to be rebuilt? sudo apt-get install grass7 grass7-core grass7-gui [sudo] password for daniele: Lettura elenco dei pacchetti... Fatto Generazione albero delle dipendenze Lettura informazioni sullo stato... Fatto Alcuni pacchetti non possono essere installati. Questo pu? voler dire che ? stata richiesta una situazione impossibile oppure, se si sta usando una distribuzione in sviluppo, che alcuni pacchetti richiesti non sono ancora stati creati o sono stati rimossi da Incoming. Le seguenti informazioni possono aiutare a risolvere la situazione: I seguenti pacchetti hanno dipendenze non soddisfatte: grass7-core : Dipende: libnetcdf6 ma non ? installabile E: Impossibile correggere i problemi, ci sono pacchetti danneggiati bloccati. daniele at daniele-desktop ~ $ sudo apt-get install libnetcdf6 Lettura elenco dei pacchetti... Fatto Generazione albero delle dipendenze Lettura informazioni sullo stato... Fatto Il pacchetto libnetcdf6 non ha versioni disponibili, ma ? nominato da un altro pacchetto. Questo potrebbe indicare che il pacchetto ? mancante, obsoleto oppure ? disponibile solo all'interno di un'altra sorgente Tuttavia questi pacchetti lo sostituiscono: libnetcdff5:i386 libnetcdfc7:i386 libnetcdfc++4:i386 libcf0:i386 libnetcdff5 libnetcdfc7 libnetcdfc++4 libcf0 E: Il pacchetto "libnetcdf6" non ha candidati da installare -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From sebastic at xs4all.nl Tue Mar 10 08:16:15 2015 From: sebastic at xs4all.nl (Sebastiaan Couwenberg) Date: Tue, 10 Mar 2015 16:16:15 +0100 Subject: [GRASS-dev] problem with grass7 package and Ubuntu 12.04 In-Reply-To: References: Message-ID: <0f2a4bdde2f6d20a6d769b3bfa157705.squirrel@webmail.xs4all.nl> > Is the package broken? Does it need to be rebuilt? The latter. Kind Regards, Bas From landa.martin at gmail.com Tue Mar 10 08:26:07 2015 From: landa.martin at gmail.com (Martin Landa) Date: Tue, 10 Mar 2015 16:26:07 +0100 Subject: [GRASS-dev] problem with grass7 package and Ubuntu 12.04 In-Reply-To: <0f2a4bdde2f6d20a6d769b3bfa157705.squirrel@webmail.xs4all.nl> References: <0f2a4bdde2f6d20a6d769b3bfa157705.squirrel@webmail.xs4all.nl> Message-ID: 2015-03-10 16:16 GMT+01:00 Sebastiaan Couwenberg : >> Is the package broken? Does it need to be rebuilt? > > The latter. hm, I already tried to install `grass7` on Ubuntu 12.04 and it worked. So how to fix it for the user? Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From sebastic at xs4all.nl Tue Mar 10 08:35:58 2015 From: sebastic at xs4all.nl (Sebastiaan Couwenberg) Date: Tue, 10 Mar 2015 16:35:58 +0100 Subject: [GRASS-dev] problem with grass7 package and Ubuntu 12.04 In-Reply-To: References: <0f2a4bdde2f6d20a6d769b3bfa157705.squirrel@webmail.xs4all.nl> Message-ID: > hm, I already tried to install `grass7` on Ubuntu 12.04 and it worked. > So how to fix it for the user? Martin If package works on plain Ubuntu without PPAs then the user needs to check which PPAs he's using that's causing the dependency problem. Start by disabling all PPAs except GRASS. Kind Regards, Bas From lucadeluge at gmail.com Tue Mar 10 09:12:03 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Tue, 10 Mar 2015 17:12:03 +0100 Subject: [GRASS-dev] problem with grass7 package and Ubuntu 12.04 In-Reply-To: References: <0f2a4bdde2f6d20a6d769b3bfa157705.squirrel@webmail.xs4all.nl> Message-ID: On 10 March 2015 at 16:35, Sebastiaan Couwenberg wrote: >> hm, I already tried to install `grass7` on Ubuntu 12.04 and it worked. >> So how to fix it for the user? Martin > > If package works on plain Ubuntu without PPAs then the user needs to check > which PPAs he's using that's causing the dependency problem. Start by > disabling all PPAs except GRASS. > ok, I also tested in a clean docker ubuntu 12.04. With only GRASS PPA it doesn't work; with ubuntugis-unstable and ubuntugis-stable it works. So I'll suggest to disabling all PPAs except GRASS and ubuntugis-unstable/stable > Kind Regards, > > Bas > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From landa.martin at gmail.com Tue Mar 10 09:46:52 2015 From: landa.martin at gmail.com (Martin Landa) Date: Tue, 10 Mar 2015 17:46:52 +0100 Subject: [GRASS-dev] problem with grass7 package and Ubuntu 12.04 In-Reply-To: References: <0f2a4bdde2f6d20a6d769b3bfa157705.squirrel@webmail.xs4all.nl> Message-ID: 2015-03-10 17:12 GMT+01:00 Luca Delucchi : > ok, I also tested in a clean docker ubuntu 12.04. > With only GRASS PPA it doesn't work; with ubuntugis-unstable and > ubuntugis-stable it works. So I'll suggest to disabling all PPAs > except GRASS and ubuntugis-unstable/stable ubuntugis-unstable is dependency, so it's required. I would also suggest not to mix ubuntugis-unstable and ubuntugis-stable. Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From landa.martin at gmail.com Tue Mar 10 11:07:48 2015 From: landa.martin at gmail.com (Martin Landa) Date: Tue, 10 Mar 2015 19:07:48 +0100 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS In-Reply-To: References: Message-ID: Hi, 2015-03-10 9:47 GMT+01:00 Martin Landa : > driver [4] based on Mapnik libraries. In other words replacement for > Cairo [5] driver focused on cartographic outputs. Such driver would be btw, Mapnik is using Cairo as one of renderers [1]. Martin [1] https://github.com/mapnik/mapnik/wiki/MapnikRenderers -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From jyotimisra.99 at gmail.com Tue Mar 10 12:46:05 2015 From: jyotimisra.99 at gmail.com (jyoti misra) Date: Wed, 11 Mar 2015 01:16:05 +0530 Subject: [GRASS-dev] Fwd: GSOC project proposal In-Reply-To: References: Message-ID: Dear Sir/Madam, Myself Jyoti currently working under Dr. KS Rajan as a research student in Spatial Informatics Lab, IIIT hyderabad . I am currently working in Land Use modelling of Barrack valley region. Previously i have worked on Billboard placement optimization problem considering the spatial ,temporal and traffic features. I am interested in working with grass org under the project "GUI plugin system for GRASS GIS*". *The project is interesting and I have some idea of the technologies requires for the project as i have already worked in Python , c/c++. Please guide me in the project and provide some docs and links where i can proceed with solving it. Also I want to know whether someone is already committed to this Project or not? Regards, Jyoti Misra Btech and Ms by research in Spatial Informatics International Institute Of Information Technology ,Hyderabad -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucadeluge at gmail.com Tue Mar 10 14:03:10 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Tue, 10 Mar 2015 22:03:10 +0100 Subject: [GRASS-dev] problem with grass7 package and Ubuntu 12.04 In-Reply-To: References: <0f2a4bdde2f6d20a6d769b3bfa157705.squirrel@webmail.xs4all.nl> Message-ID: On 10 March 2015 at 17:46, Martin Landa wrote: > 2015-03-10 17:12 GMT+01:00 Luca Delucchi : >> ok, I also tested in a clean docker ubuntu 12.04. >> With only GRASS PPA it doesn't work; with ubuntugis-unstable and >> ubuntugis-stable it works. So I'll suggest to disabling all PPAs >> except GRASS and ubuntugis-unstable/stable > > ubuntugis-unstable is dependency, so it's required. I would also > suggest not to mix ubuntugis-unstable and ubuntugis-stable. Martin > yes, instead I removed ubuntugis-unstable and added ubuntugis-stable ;-) However the Italian guy has really a problem with his ubuntu version repositories; he mixed a lot. Sorry for the noise... -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From matejkrejci at gmail.com Tue Mar 10 17:55:33 2015 From: matejkrejci at gmail.com (Matej Krejci) Date: Wed, 11 Mar 2015 01:55:33 +0100 Subject: [GRASS-dev] GSOC 2015: Improved Metadata for GRASS GIS Message-ID: Hi all, Last GSOC I was working on ISO based metadata management for GRASS. In this term I was created 'package' wx.metadata which is currently available in GRASS add-ons. This part was essential. During playing with possibilities of implementation I did a draft of metadata catalogue which is the main task of current GSOC topic[1]. Moreover to implement additional functions (see list[1]) for current metadata modules is more than suitable. Since last GSOC I am still slightly in coding for GRASS and I like to continue in this topic. Please let me know if the topic is still free. Thanks in advance, Matej [1] http://trac.osgeo.org/grass/wiki/GSoC/2015#ImprovedMetadataforGRASSGIS ------------- dal?? ??st --------------- HTML p??loha byla odstran?na... URL: From trac at osgeo.org Tue Mar 10 23:43:49 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 11 Mar 2015 06:43:49 -0000 Subject: [GRASS-dev] [GRASS GIS] #2617: wxgui Raster query redirect to console UnicodeDecodeError In-Reply-To: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> References: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> Message-ID: <049.7af24ba094b6c8f58a90119a2ab21c99@osgeo.org> #2617: wxgui Raster query redirect to console UnicodeDecodeError -----------------------------+---------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: query, encoding | Platform: MSWindows Vista Cpu: Unspecified | -----------------------------+---------------------------------------------- Comment(by marisn): Just dropping a note here as it needs further investigation: https://docs.python.org/2/library/gettext.html#gettext-vs-lgettext In Python 2.4 the lgettext() family of functions were introduced. The intention of these functions is to provide an alternative which is more compliant with the current implementation of GNU gettext. Unlike '''gettext(), which returns strings encoded with the same codeset used in the translation file''', lgettext() will return strings encoded with the preferred system encoding, as returned by locale.getpreferredencoding(). Also notice that Python 2.4 introduces new functions to explicitly choose the codeset used in translated strings. If a codeset is explicitly set, even lgettext() will return translated strings in the requested codeset, as would be expected in the GNU gettext implementation. Note on "same codeset" explains where the UTF-8 strings are coming from and why it differs from C implementation of gettext. In the aforementioned document is also another one interesting remark: https://docs.python.org/2/library/gettext.html#the-gnutranslations-class Note that the Unicode version of the methods (i.e. ugettext() and ungettext()) are the recommended interface to use for internationalized Python programs. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 11 01:50:53 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 11 Mar 2015 08:50:53 -0000 Subject: [GRASS-dev] [GRASS GIS] #2617: wxgui Raster query redirect to console UnicodeDecodeError In-Reply-To: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> References: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> Message-ID: <049.ea02153941757cc6885aefdf8aaafbd6@osgeo.org> #2617: wxgui Raster query redirect to console UnicodeDecodeError -----------------------------+---------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: query, encoding | Platform: MSWindows Vista Cpu: Unspecified | -----------------------------+---------------------------------------------- Comment(by glynn): Replying to [comment:4 marisn]: > In Python 2.4 the lgettext() family of functions were introduced. The intention of these functions is to provide an alternative which is more compliant with the current implementation of GNU gettext. Unlike '''gettext(), which returns strings encoded with the same codeset used in the translation file''', lgettext() will return strings encoded with the preferred system encoding, as returned by locale.getpreferredencoding(). Right. Unfortunately, gettext.install() binds the _() function to the .gettext() method rather than to the .lgettext() method. Try r64834. > Note that the Unicode version of the methods (i.e. ugettext() and ungettext()) are the recommended interface to use for internationalized Python programs. "Recommended" by someone who isn't going to be doing the (substantial) amount of work involved in adding all the required .encode() calls, or dealing with the bugs which arise whenever someone forgets the .encode() call. Because without those calls, unicode values will be converted using implicit conversions, which fails whenever the unicode value contains non- ASCII characters. As a rough guide, you can (and should) ignore anything the Python developers have to say about Unicode. Their attitude tends to be "everything should use Unicode, and the fact that POSIX (and a lot else) doesn't is your problem and not ours". -- Ticket URL: GRASS GIS From wortmann at pik-potsdam.de Wed Mar 11 01:58:03 2015 From: wortmann at pik-potsdam.de (Michel Wortmann) Date: Wed, 11 Mar 2015 09:58:03 +0100 Subject: [GRASS-dev] compile gdal with grass In-Reply-To: References: Message-ID: <5500039B.60209@pik-potsdam.de> Hi Martin and list, would it be possible to reflect these changes in the Ubuntu packages on the gdal launchpad (ubuntugis-unstable) and making them compatible with the grass7 packages? I tried building gdal 1.11.2 --with-grass against preinstalled grass7 packages (Ubuntu 14.04), but the grass7 (and qgis for that matter) are still depending on gdal-1.11.1. Now just to be able to browse the GRASS database in QGIS it would make it necessary to build all three from source. Or are there any ideas on avoiding that? The gdal-grass plugin unfortunately doesnt work with grass-7. Thanks, Michel On 01/07/2015 12:51 PM, Paulo van Breugel wrote: > Hi Martin, just recompiled GDAL against GRASS, and I can confirm it > works. Thanks for the fix! > > > On Mon, Jan 5, 2015 at 3:50 PM, Martin Landa > wrote: > > Hi, > > 2015-01-05 15:32 GMT+01:00 Markus Neteler >: > > On Mon, Jan 5, 2015 at 12:56 PM, Martin Landa > > wrote: > > ... > >> these errors are related to the recent API changes in GRASS 7. > I fixed > >> that in gdal trunk [1] and later will do backport it to gdal 1.11 > >> branch. > > done in r28291. To compile GDAL against GRASS you need at least GDAL > 1.11 from svn branch [1]. > > Martin > > [1] http://svn.osgeo.org/gdal/branches/1.11/ > > -- > Martin Landa > http://geo.fsv.cvut.cz/gwiki/Landa > http://gismentors.eu/mentors/landa > > > > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Wed Mar 11 02:15:40 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 11 Mar 2015 09:15:40 -0000 Subject: [GRASS-dev] [GRASS GIS] #2617: wxgui Raster query redirect to console UnicodeDecodeError In-Reply-To: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> References: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> Message-ID: <049.50d5c474092b6e5a75c98e7ea5dcb110@osgeo.org> #2617: wxgui Raster query redirect to console UnicodeDecodeError -----------------------------+---------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: query, encoding | Platform: MSWindows Vista Cpu: Unspecified | -----------------------------+---------------------------------------------- Comment(by zarch): Replying to [comment:5 glynn]: > Replying to [comment:4 marisn]: > > Note that the Unicode version of the methods (i.e. ugettext() and ungettext()) are the recommended interface to use for internationalized Python programs. > > "Recommended" by someone who isn't going to be doing the (substantial) amount of work involved in adding all the required .encode() calls, or dealing with the bugs which arise whenever someone forgets the .encode() call. Because without those calls, unicode values will be converted using implicit conversions, which fails whenever the unicode value contains non- ASCII characters. We have to do this work in any case for python3. We can create a function that explicity convert every input to unicode, something like: {{{ import sys PY2 = sys.version[0] == '2' def to_text_string(obj, encoding=None): """Convert `obj` to (unicode) text string""" if PY2: # Python 2 if encoding is None: return unicode(obj) else: return unicode(obj, encoding) else: # Python 3 if encoding is None: return str(obj) elif isinstance(obj, str): # In case this function is not used properly, this could happen return obj else: return str(obj, encoding) }}} > As a rough guide, you can (and should) ignore anything the Python developers have to say about Unicode. Their attitude tends to be "everything should use Unicode, and the fact that POSIX (and a lot else) doesn't is your problem and not ours". Many recent computer languages (i.e. Go, Rust) consider this a good practice... and personally I agree with them. In Python3 they fix this implicit conversion, and this is the reason why I believe we should move to python3. -- Ticket URL: GRASS GIS From sebastic at xs4all.nl Wed Mar 11 02:55:16 2015 From: sebastic at xs4all.nl (Sebastiaan Couwenberg) Date: Wed, 11 Mar 2015 10:55:16 +0100 Subject: [GRASS-dev] compile gdal with grass In-Reply-To: <5500039B.60209@pik-potsdam.de> References: <5500039B.60209@pik-potsdam.de> Message-ID: <22325a09c1f2490378becd710cc06779.squirrel@webmail.xs4all.nl> > Hi Martin and list, > would it be possible to reflect these changes in the Ubuntu packages on > the gdal launchpad (ubuntugis-unstable) and making them compatible with > the grass7 packages? You should direct this question to the UbuntuGIS list. > I tried building gdal 1.11.2 --with-grass against preinstalled grass7 > packages (Ubuntu 14.04), but the grass7 (and qgis for that matter) are > still depending on gdal-1.11.1. Now just to be able to browse the GRASS > database in QGIS it would make it necessary to build all three from > source. Or are there any ideas on avoiding that? The gdal-grass plugin > unfortunately doesnt work with grass-7. The libgdal-grass Debian package has support for GRASS 7, but since UbuntuGIS is highly understaffed, there is hardly anyone actively maintaining the packages there. If you care about GIS software on Ubuntu, consider contributing the UbuntuGIS packaging. It's probably a good idea if the GRASS upstream packagers actively contribute to the GRASS packages in UbuntuGIS like jef does for QGIS. Kind Regards, Bas From wortmann at pik-potsdam.de Wed Mar 11 03:48:34 2015 From: wortmann at pik-potsdam.de (Michel Wortmann) Date: Wed, 11 Mar 2015 11:48:34 +0100 Subject: [GRASS-dev] compile gdal with grass In-Reply-To: <22325a09c1f2490378becd710cc06779.squirrel@webmail.xs4all.nl> References: <5500039B.60209@pik-potsdam.de> <22325a09c1f2490378becd710cc06779.squirrel@webmail.xs4all.nl> Message-ID: <55001D82.4060902@pik-potsdam.de> Ok thanks for info, Bas, and sorry for the Ubuntu noise. I'll get in touch with the ubuntuGIS list then, I'd be happy to build packages at least for the new Ubuntu LTS 14.04 although I'm a packaging newbie. Regards, Michel On 03/11/2015 10:55 AM, Sebastiaan Couwenberg wrote: >> Hi Martin and list, >> would it be possible to reflect these changes in the Ubuntu packages on >> the gdal launchpad (ubuntugis-unstable) and making them compatible with >> the grass7 packages? > You should direct this question to the UbuntuGIS list. > >> I tried building gdal 1.11.2 --with-grass against preinstalled grass7 >> packages (Ubuntu 14.04), but the grass7 (and qgis for that matter) are >> still depending on gdal-1.11.1. Now just to be able to browse the GRASS >> database in QGIS it would make it necessary to build all three from >> source. Or are there any ideas on avoiding that? The gdal-grass plugin >> unfortunately doesnt work with grass-7. > The libgdal-grass Debian package has support for GRASS 7, but since > UbuntuGIS is highly understaffed, there is hardly anyone actively > maintaining the packages there. > > If you care about GIS software on Ubuntu, consider contributing the > UbuntuGIS packaging. It's probably a good idea if the GRASS upstream > packagers actively contribute to the GRASS packages in UbuntuGIS like jef > does for QGIS. > > Kind Regards, > > Bas > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev From neteler at osgeo.org Wed Mar 11 06:14:17 2015 From: neteler at osgeo.org (Markus Neteler) Date: Wed, 11 Mar 2015 14:14:17 +0100 Subject: [GRASS-dev] port of v.points.cog to python In-Reply-To: References: <20150301160115.GA25881@free.fr> Message-ID: On Mar 7, 2015 2:07 PM, "Anna Petr??ov?" wrote: > > > > On Sat, Mar 7, 2015 at 4:43 AM, Markus Metz wrote: >> >> On Sun, Mar 1, 2015 at 5:01 PM, Patrice Dumas wrote: >> > Hello, >> > >> > Here is a rewrite of the v.points.cog module in python. >> >> I think v.points.cog is superseded by v.centerpoint which offers cog >> as well as other kinds of centerpoints. >> > BTW, is there any reason to keep v.centerpoint as addon? It seems to be quite popular. Right. Perhaps move to trunk along with a test case? markusN > Anna > > >> >> Markus M >> >> >> > I tried >> > translating code only, keeping the code organization, variables names as it >> > was previously to help those who would want to review the differences >> > with the shell script. I also did the few changes required for changes >> > in grass7, but there weren't that much since python function already >> > abstract some commands. >> > >> > I did a svn copy of the grass6 module before doing the modifications. >> > >> > I cannot (and don't want to...) claim any copyright on a code translation. >> > >> > I didn't test thoroughly, but since it is code translation, I don't expect >> > big surprises. >> > >> > -- >> > Pat >> > >> > _______________________________________________ >> > grass-dev mailing list >> > grass-dev at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/grass-dev >> _______________________________________________ >> grass-dev mailing list >> grass-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/grass-dev > > > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Wed Mar 11 07:01:53 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 11 Mar 2015 14:01:53 -0000 Subject: [GRASS-dev] [GRASS GIS] #2617: wxgui Raster query redirect to console UnicodeDecodeError In-Reply-To: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> References: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> Message-ID: <049.ce9d427b3ab929fd6743ebac045661a2@osgeo.org> #2617: wxgui Raster query redirect to console UnicodeDecodeError ----------------------------------------------+----------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: query, encoding, python, gettext | Platform: MSWindows Vista Cpu: Unspecified | ----------------------------------------------+----------------------------- Changes (by wenzeslaus): * keywords: query, encoding => query, encoding, python, gettext Comment: Replying to [comment:5 glynn]: > Replying to [comment:4 marisn]: > > > In Python 2.4 the lgettext() family of functions were introduced. The intention of these functions is to provide an alternative which is more compliant with the current implementation of GNU gettext. Unlike '''gettext(), which returns strings encoded with the same codeset used in the translation file''', lgettext() will return strings encoded with the preferred system encoding, as returned by locale.getpreferredencoding(). > > Right. Unfortunately, gettext.install() binds the _() function to the .gettext() method rather than to the .lgettext() method. > Try r64834: {{{ #!python import gettext gettext.install('grasslibs', os.path.join(os.getenv("GISBASE"), 'locale')) import __builtin__ __builtin__.__dict__['_'] = __builtin__.__dict__['_'].im_self.lgettext }}} This solves the problem but the fix is yet another reason for me to believe that translation function should be explicitly imported and changing buildins, explicit or hidden, should be avoided. Compare the code above with the code in GUI (r57219 and r57220): {{{ #!python # gui/wxpython/core/utils.py # _ intended to be used also outside this module try: # intended to be used also outside this module import gettext _ = gettext.translation('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale')).ugettext except IOError: # using no translation silently def null_gettext(string): return string _ = null_gettext }}} Please see the further discussion in #2425. -- Ticket URL: GRASS GIS From wenzeslaus at gmail.com Wed Mar 11 18:16:53 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Wed, 11 Mar 2015 21:16:53 -0400 Subject: [GRASS-dev] GSOC project proposal In-Reply-To: References: Message-ID: On Wed, Mar 11, 2015 at 11:36 AM, sarthak agarwal wrote: > > I have used Grass directly installing from the ppa .. I was trying to compile it from the source and i'm getting error .Below is the error.log content. > > > GRASS GIS 7.0.1svn r64826 compilation log Note that for development you will need trunk, not release branch. > > -- > > Errors in: > > /home/sarthak/grass-7.0.svn/display/d.path > > /home/sarthak/grass-7.0.svn/display/d.vect ... > > /home/sarthak/grass-7.0.svn/vector/v.neighbors ... > > /home/sarthak/grass-7.0.svn/ps/ps.map > -- > > In case of errors please change into the directory with error and run 'make'. > > If you get multiple errors, you need to deal with them in the order they > > appear in the error log. If you get an error building a library, you will > > also get errors from anything which uses the library. > > -- What compilation guide have you used? What it is saying when you do what it wants? > > Can you please suggest me a way to solve it. Also i was looking for r.in.proj' folder in the source code but couldn't find it . It was there on the link you send but not on the svn repo. Should i directly copy the files from there to the local repo. These two modules are in addons. Compare the SVN repo with the Trac URLs and you will find how to get them. >> Source code for r.in.proj and v.in.proj: >> https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.in.proj >> https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.in.proj >> Please, stay on mailing list. -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Wed Mar 11 19:17:51 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 12 Mar 2015 02:17:51 -0000 Subject: [GRASS-dev] [GRASS GIS] #1661: Wish: port the new wxgui histogram plotting tool from grass7 to grass6 In-Reply-To: <042.8b702e8d4134b1503e1a4fc3d2444faf@osgeo.org> References: <042.8b702e8d4134b1503e1a4fc3d2444faf@osgeo.org> Message-ID: <051.3f9b6265c651cdd0cbf1e068edd5d2bf@osgeo.org> #1661: Wish: port the new wxgui histogram plotting tool from grass7 to grass6 --------------------------+------------------------------------------------- Reporter: mlennert | Owner: grass-dev@? Type: enhancement | Status: closed Priority: normal | Milestone: 6.4.5 Component: wxGUI | Version: svn-releasebranch64 Resolution: wontfix | Keywords: histogram Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Changes (by wenzeslaus): * status: new => closed * resolution: => wontfix Comment: Since 7.0.0 was released, this is a wontfix. I anyway suggest thorough testing and also look at the `d.histogram`-based tool. It creates strange labels and you need to change the default font (you need to do that on MS Windows anyway) but the histograms are quite nice. The wxGUI tool has its own advantages of course. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 11 19:43:45 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 12 Mar 2015 02:43:45 -0000 Subject: [GRASS-dev] [GRASS GIS] #1819: problems compiling map swipe, animation, modeler, and r.li.setup In-Reply-To: <042.2174d73ad0bf4eb57763905d03a03341@osgeo.org> References: <042.2174d73ad0bf4eb57763905d03a03341@osgeo.org> Message-ID: <051.a294b167361808fa4d56d38b3e07f08c@osgeo.org> #1819: problems compiling map swipe, animation, modeler, and r.li.setup ----------------------------------------+----------------------------------- Reporter: cmbarton | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: g.gui.* modules, toolboxes | Platform: MacOSX Cpu: OSX/Intel | ----------------------------------------+----------------------------------- Changes (by wenzeslaus): * keywords: g.gui.* modules => g.gui.* modules, toolboxes * milestone: 7.0.0 => 7.0.1 Comment: Michael, can you please update what works from this ticket and from #2498 in 7.0.0 release and in trunk? I lost track what works for you. All should compile well and GUI should start without any addition work thanks to the workarounds (increased robustness in r64664, r64674 and r64677). The changes should be backported but not without knowing that they are actually solving the Mac 64bit issue. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 11 19:49:15 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 12 Mar 2015 02:49:15 -0000 Subject: [GRASS-dev] [GRASS GIS] #2498: yet another problem with GUI toolbox menu In-Reply-To: <042.130336b160c8ca1d6e0d4b8aca2541b1@osgeo.org> References: <042.130336b160c8ca1d6e0d4b8aca2541b1@osgeo.org> Message-ID: <051.2b3bf816a08cbe2563ee2a83969ae1ad@osgeo.org> #2498: yet another problem with GUI toolbox menu ---------------------------------------+------------------------------------ Reporter: cmbarton | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.1.0 Component: wxGUI | Version: svn-trunk Keywords: menu tree, xml, toolboxes | Platform: Unspecified Cpu: OSX/Intel | ---------------------------------------+------------------------------------ Changes (by wenzeslaus): * keywords: menu tree xml => menu tree, xml, toolboxes Comment: This is probably just duplicate or highly overlapping with #1819. It can depend on #2142 but this dependency should be broken by r64677. Hint: To include source code or error messages use `{{{` and `}}}` before and after the included text. Use backticks to include verbatim text inline, e.g. {{{`abc`}}}. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 11 20:06:01 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 12 Mar 2015 03:06:01 -0000 Subject: [GRASS-dev] [GRASS GIS] #665: enable copying from statusbar In-Reply-To: <040.664f1fd239172969a236882ed8a813dc@osgeo.org> References: <040.664f1fd239172969a236882ed8a813dc@osgeo.org> Message-ID: <049.fe02730f9bc0e0d3d3e14e2554405336@osgeo.org> #665: enable copying from statusbar --------------------------+------------------------------------------------- Reporter: timmie | Owner: grass-dev@? Type: enhancement | Status: closed Priority: minor | Milestone: 7.0.1 Component: wxGUI | Version: svn-develbranch6 Resolution: fixed | Keywords: copy coordinates Platform: All | Cpu: x86-32 --------------------------+------------------------------------------------- Changes (by wenzeslaus): * keywords: => copy coordinates * platform: Linux => All * status: new => closed * resolution: => fixed * milestone: 6.5.0 => 7.0.1 Comment: This seems almost impossible to achieve with current implementation which is using standard wxPython (possibly system) status bar. There are also other reasons to not use the standard status bar but this goes far beyond this ticket. As the most useful option is copy coordinates to clipboard is implemented in 7.0, I'm closing this ticket. The implementation is using right click (well this is the only possibility, you cannot go to the status bar with the pointer). Few other things such as region can be obtained in other ways. Please create new tickets if you have further concerns. ''Trac won't allow me 7.0.0 milestone, so that's why 7.0.1.'' -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 11 20:12:02 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 12 Mar 2015 03:12:02 -0000 Subject: [GRASS-dev] [GRASS GIS] #1819: problems compiling map swipe, animation, modeler, and r.li.setup In-Reply-To: <042.2174d73ad0bf4eb57763905d03a03341@osgeo.org> References: <042.2174d73ad0bf4eb57763905d03a03341@osgeo.org> Message-ID: <051.445393ca04da3285875e2b53238f73ed@osgeo.org> #1819: problems compiling map swipe, animation, modeler, and r.li.setup ----------------------------------------+----------------------------------- Reporter: cmbarton | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: g.gui.* modules, toolboxes | Platform: MacOSX Cpu: OSX/Intel | ----------------------------------------+----------------------------------- Comment(by cmbarton): I was able to compile GRASS 7 for the first time in a while without having to recompile from within a GRASS session to get the menu xml files to build. But I don't remember if the 'bogus' errors about mapswipe, etc still showed up. I can check my compiler log next time I'm at the office where I compiled it and let you know. But I can say that it is compelling better now. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 11 20:15:47 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 12 Mar 2015 03:15:47 -0000 Subject: [GRASS-dev] [GRASS GIS] #2489: d.out.file: Add PNG/Cairo support In-Reply-To: <039.00591884de03ab428ec9cc64519f9bca@osgeo.org> References: <039.00591884de03ab428ec9cc64519f9bca@osgeo.org> Message-ID: <048.865f39c302a63319565ae6207a1e40fe@osgeo.org> #2489: d.out.file: Add PNG/Cairo support --------------------------+------------------------------------------------- Reporter: gisix | Owner: grass-dev@? Type: enhancement | Status: closed Priority: normal | Milestone: 6.4.5 Component: Display | Version: unspecified Resolution: wontfix | Keywords: Platform: All | Cpu: Unspecified --------------------------+------------------------------------------------- Changes (by wenzeslaus): * status: new => closed * resolution: => wontfix Comment: This will not change for G6 and for G7 it is an duplicate of #2595 which might be anyway closed as wontfix because the workflow is already possible just using: {{{ d.mon start=cairo output=myfile.png ... d.mon stop=cairo }}} So, using d.out.file for this would be little duplication. On the other hand, `d.out.file` has some popularity perhaps because it is more explicit. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 11 20:32:12 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 12 Mar 2015 03:32:12 -0000 Subject: [GRASS-dev] [GRASS GIS] #2077: implement drop-down menu for barscale styles In-Reply-To: <041.408dd9fcc7466daba8727fdf888ff119@osgeo.org> References: <041.408dd9fcc7466daba8727fdf888ff119@osgeo.org> Message-ID: <050.47ed7539cb53adfd08cdaecf539ee014@osgeo.org> #2077: implement drop-down menu for barscale styles --------------------------+------------------------------------------------- Reporter: martinl | Owner: grass-dev@? Type: enhancement | Status: reopened Priority: major | Milestone: 7.0.0 Component: wxGUI | Version: svn-trunk Resolution: | Keywords: d.barscale Platform: All | Cpu: All --------------------------+------------------------------------------------- Comment(by wenzeslaus): Images in manual work for: * G7:r.colors * G7:r3.colors * G7:v.colors * G7:d.barscale They don't work for: * G7:d.northarrow Although wxGUI dialog for `d.northarrow` shows the arrows. -- Ticket URL: GRASS GIS From wenzeslaus at gmail.com Wed Mar 11 20:40:28 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Wed, 11 Mar 2015 23:40:28 -0400 Subject: [GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS Message-ID: Hello. On Tue, Mar 10, 2015 at 3:46 PM, jyoti misra wrote: > > Dear Sir/Madam, > > Myself Jyoti currently working under Dr. KS Rajan as a research student in Spatial Informatics Lab, IIIT hyderabad . I am currently working in Land Use modelling of Barrack valley region. Previously i have worked on Billboard placement optimization problem considering the spatial ,temporal and traffic features. > > I am interested in working with grass org under the project "GUI plugin system for GRASS GIS". The project is interesting and I have some idea of the technologies requires for the project as i have already worked in Python , c/c++. Good. Now you should find some enhancements or bugs in GRASS GIS bug tracker [1] and implement or fix them before the application evaluation to show level of you proficiency [2, 3]. You can also select from this list: Enhancement: Let users save/load SQL statements in wxGUI attribute table manager http://trac.osgeo.org/grass/ticket/1205 Bug: Quotes not preserved in command after pressing enter in GUI command console http://trac.osgeo.org/grass/ticket/1435 http://trac.osgeo.org/grass/ticket/1437 Enhancement: Store map elements such as legend, text and scale bar in workspace file. http://trac.osgeo.org/grass/ticket/2484 Enhancement: Possibility to automatically load last used workspace when GRASS GIS GUI starts http://trac.osgeo.org/grass/ticket/2604 Enhancement: Store recently used workspaces and offer them in the menu http://trac.osgeo.org/grass/ticket/2604 Enhancement: Implement georeferenced image output for "Save display..." function in GUI and d.out.file module (and its wxGUI implementation) http://trac.osgeo.org/grass/ticket/977 Bug: Undefined settings variable issue in bivariate scatterplot tool http://trac.osgeo.org/grass/ticket/2247 Enhancement: Button, documentation and perhaps something more interactive for finding EPSG codes online rather then in GRASS GIS list http://trac.osgeo.org/grass/ticket/26 However, you can explore the open issues on GRASS GIS bug tracker yourself. Just keep in mind that this GSoC project would be in Python and wxPython. You can attempt to solve more of these tasks, the more the better. In any case, the thing you select and do should be in Python and should sufficiently represent your skills. Draft implementation of non-GUI (model) part of the plugin system would be helpful to understand the issues which you should address in the application. In any case, start with compiling GRASS GIS from source code (trunk) from Subversion repository [4], reading tips for students [5] and going through instructions for other students [6, 7] (you can use Nabble [8] for that). Also read Submitting rules [9] and how-to [10] for wxGUI development. Also learn how to do basic tasks in GRASS GIS graphical user interface (called wxGUI), use e.g. GRASS wiki or the manual as learning resource. Please, always create a new thread on mailing list for distinct topics. Best, Vaclav [1] https://trac.osgeo.org/grass/query [2] http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students [3] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html [4] http://trac.osgeo.org/grass/wiki/DownloadSource [5] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents [6] http://lists.osgeo.org/pipermail/grass-dev/2015-March/074420.html [7] http://lists.osgeo.org/pipermail/grass-dev/2015-March/074433.html [8] http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html [9] http://trac.osgeo.org/grass/wiki/Submitting/wxGUI [10] http://grasswiki.osgeo.org/wiki/WxGUI_Programming_Howto > Please guide me in the project and provide some docs and links where i can proceed with solving it. Also I want to know whether someone is already committed to this Project or not? > > Regards, > Jyoti Misra > Btech and Ms by research in Spatial Informatics > International Institute Of Information Technology ,Hyderabad > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wenzeslaus at gmail.com Wed Mar 11 21:38:19 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Thu, 12 Mar 2015 00:38:19 -0400 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS In-Reply-To: References: Message-ID: I was thinking about this a little bit and I still don't see what would be the advantages of Mapnik over other solutions and how used would be the result considering that the GUI would be still quite limited. For me it seems that if I need some basic outputs, map display with cairo is fine especially if we would have some more improvements [1]. If I need advanced cartography I have to go to QGIS or something like Mapnik or GMT. The idea of using Mapnik as common OSGeo cartographic backend seems dead [2] but perhaps QGIS is here to take this place. Or do you see this also a something like a missing GUI for Mapnik where one could generate just some configuration file which could be later used somewhere else with Mapnik? Yet another direction is Matplotlib [4] which is anyway a dependency. But perhaps this would be just another simple backend which is more advantageous when used as part of API. There was actually an attempt co couple GRASS GIS with Matplotlib map rendering [5]. Just my thoughts, Vaclav [1] http://trac.osgeo.org/grass/wiki/GSoC/2015#CompletebasiccartographysuiteinGRASSGISwxGUIMapDisplay [2] http://wiki.osgeo.org/wiki/OSGeo_Cartographic_Library [3] http://docs.qgis.org/2.6/en/docs/pyqgis_developer_cookbook/composer.html#output-using-map-composer [4] http://matplotlib.org/basemap/users/examples.html [5] http://lists.osgeo.org/pipermail/grass-dev/2013-October/066017.html On Tue, Mar 10, 2015 at 2:07 PM, Martin Landa wrote: > Hi, > > 2015-03-10 9:47 GMT+01:00 Martin Landa : > > driver [4] based on Mapnik libraries. In other words replacement for > > Cairo [5] driver focused on cartographic outputs. Such driver would be > > btw, Mapnik is using Cairo as one of renderers [1]. Martin > > [1] https://github.com/mapnik/mapnik/wiki/MapnikRenderers > > -- > Martin Landa > http://geo.fsv.cvut.cz/gwiki/Landa > http://gismentors.cz/mentors/landa > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Thu Mar 12 01:23:01 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 12 Mar 2015 08:23:01 -0000 Subject: [GRASS-dev] [GRASS GIS] #2617: wxgui Raster query redirect to console UnicodeDecodeError In-Reply-To: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> References: <040.12df66abfa166c2e72147d3a1254254c@osgeo.org> Message-ID: <049.17dd94aa7700339c43a279905e2afbdb@osgeo.org> #2617: wxgui Raster query redirect to console UnicodeDecodeError ----------------------------------------------+----------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: query, encoding, python, gettext | Platform: MSWindows Vista Cpu: Unspecified | ----------------------------------------------+----------------------------- Comment(by glynn): Replying to [comment:6 zarch]: > We have to do this work in any case for python3. If we actually use it. For most scripting tasks, Python 3 offers nothing but inconvenience. And even then, there's a much simpler way to deal with it: convert unicode strings to byte strings at the point they arise (there are far fewer of these compared to the number of places where we will need to write byte strings to streams or pass them as command arguments). > We can create a function that explicity convert every input to unicode, something like: But why bother? At the lowest level, scripts tend to do two things: invoke commands and read/write streams. Both of these deal with byte strings. Converting to unicode then back again just creates unnecessary failure modes; there's no guarantee that data read from a given stream will be in the locale's encoding, or even in any known encoding. wxGUI has to deal with this because wxPython uses Unicode throughout (and look how many wxGUI issues relate to Unicode{Encode,Decode}Error as a result). The scripting library doesn't need to deal with this; there's no inherent reason why most scripts should ever encounter a unicode value. -- Ticket URL: GRASS GIS From lucadeluge at gmail.com Thu Mar 12 02:57:23 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Thu, 12 Mar 2015 10:57:23 +0100 Subject: [GRASS-dev] ubuntu/debian packages missing Platform.make? Message-ID: Hi devs, I just discovered that the "config" option on grass70 script doesn't work with ubuntu/debian packages because Platform.make is missing, anyway to solve it? grass70 --config path Traceback (most recent call last): File "/usr/bin/grass70", line 1345, in parse_cmdline() File "/usr/bin/grass70", line 1281, in parse_cmdline print_params() File "/usr/bin/grass70", line 1194, in print_params fileplat = open(plat) IOError: [Errno 2] No such file or directory: '/usr/lib/grass70/include/Make/Platform.make' Should I open a ticket? -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From ad.laza32 at gmail.com Thu Mar 12 03:07:04 2015 From: ad.laza32 at gmail.com (=?UTF-8?Q?Adam_La=C5=BEa?=) Date: Thu, 12 Mar 2015 11:07:04 +0100 Subject: [GRASS-dev] GSOC: Complete basic cartography suite in GRASS GIS wxGUI Map Display Message-ID: Hi devs, recenlty I expressed my interest in one of your GSoC topic [1]. I was further reading and found out there is another topic Complete basic cartography suite in GRASS GIS wxGUI Map Display that is quite related to maps display. Also I noticed there are requirements of Python, wxPython and C, which are languages I have some experience and in which I'd like to improve. Adam Laza [1] http://lists.osgeo.org/pipermail/grass-dev/2015-March/074413.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From landa.martin at gmail.com Thu Mar 12 03:55:19 2015 From: landa.martin at gmail.com (Martin Landa) Date: Thu, 12 Mar 2015 11:55:19 +0100 Subject: [GRASS-dev] ubuntu/debian packages missing Platform.make? In-Reply-To: References: Message-ID: Hi, 2015-03-12 10:57 GMT+01:00 Luca Delucchi : > grass70 --config path > > Traceback (most recent call last): > File "/usr/bin/grass70", line 1345, in > parse_cmdline() > File "/usr/bin/grass70", line 1281, in parse_cmdline > print_params() > File "/usr/bin/grass70", line 1194, in print_params > fileplat = open(plat) > IOError: [Errno 2] No such file or directory: > '/usr/lib/grass70/include/Make/Platform.make' my suggestion is to fix grass.py and suggest something similar as g.extension does [1]. Martin [1] http://trac.osgeo.org/grass/browser/grass/trunk/scripts/g.extension/g.extension.py#L786 -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From lucadeluge at gmail.com Thu Mar 12 06:13:40 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Thu, 12 Mar 2015 14:13:40 +0100 Subject: [GRASS-dev] ubuntu/debian packages missing Platform.make? In-Reply-To: References: Message-ID: On 12 March 2015 at 11:55, Martin Landa wrote: > Hi, > > 2015-03-12 10:57 GMT+01:00 Luca Delucchi : >> grass70 --config path >> >> Traceback (most recent call last): >> File "/usr/bin/grass70", line 1345, in >> parse_cmdline() >> File "/usr/bin/grass70", line 1281, in parse_cmdline >> print_params() >> File "/usr/bin/grass70", line 1194, in print_params >> fileplat = open(plat) >> IOError: [Errno 2] No such file or directory: >> '/usr/lib/grass70/include/Make/Platform.make' > > my suggestion is to fix grass.py and suggest something similar as > g.extension does [1]. Martin > > [1] http://trac.osgeo.org/grass/browser/grass/trunk/scripts/g.extension/g.extension.py#L786 > done in trunk r64838, could I backport to 7.0 release branch? -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From rakeshdhar at peaktechnical.com Thu Mar 12 08:20:39 2015 From: rakeshdhar at peaktechnical.com (Rakesh Dhar) Date: Thu, 12 Mar 2015 15:20:39 +0000 Subject: [GRASS-dev] GIS Architect for a 2 Months long gig in Melbourne, FL Message-ID: <1C8B0734D9DFB74F8F159C9F575233A90EF3CA31@MBX202.domain.local> Hi All, Good Morning. I am in immediate need of a GIS Architect for a 2 Months long gig in Melbourne, FL. These consultants will be responsible for a R+D project. They will be working to develop an online suite of web-based Exploitation application(s) and services into an enterprise architecture that will be developed in, and optimized for, use in the cloud. The successful candidate will lead as assist in architecture development and refinement on an internal research and development effort on a Geospatial Information System program as a Sr. System Software Engineer. This will be a challenging, multi-faceted position that will expose the candidate to many aspects of the software development lifecycle. Please let me know if you will be interested or know someone who is interested. Compensation is VERY Competitive. Sincerely, Thanks Rakesh Dhar Staffing Manager PEAK Technical Consulting LLC Engineering IT 7 Corporate Park, Suite 125 Irvine, CA 92606 Phone: (562) 472-1633 Fax: (949) 476-7766 E-mail: rakeshdhar at peaktechnical.com www.peaktechnical.com Office Hours: 8:00AM - 5:00PM Pacific Confidentiality Notice: This E-mail and any of its attachments contain proprietary information of PEAK Technical Services, Inc. and its affiliates (collectively "PEAK") that is privileged, confidential or subject to copyright belonging to PEAK. If you have received this E-mail in error or are not the named addressee, please notify the sender immediately and permanently delete the original, any copies and any printout. Thank You. -----Original Message----- From: grass-dev-bounces at lists.osgeo.org [mailto:grass-dev-bounces at lists.osgeo.org] On Behalf Of Luca Delucchi Sent: Thursday, March 12, 2015 6:14 AM To: Martin Landa Cc: GRASS-dev Subject: Re: [GRASS-dev] ubuntu/debian packages missing Platform.make? On 12 March 2015 at 11:55, Martin Landa > wrote: > Hi, > > 2015-03-12 10:57 GMT+01:00 Luca Delucchi >: >> grass70 --config path >> >> Traceback (most recent call last): >> File "/usr/bin/grass70", line 1345, in >> parse_cmdline() >> File "/usr/bin/grass70", line 1281, in parse_cmdline >> print_params() >> File "/usr/bin/grass70", line 1194, in print_params >> fileplat = open(plat) >> IOError: [Errno 2] No such file or directory: >> '/usr/lib/grass70/include/Make/Platform.make' > > my suggestion is to fix grass.py and suggest something similar as > g.extension does [1]. Martin > > [1] > http://trac.osgeo.org/grass/browser/grass/trunk/scripts/g.extension/g. > extension.py#L786 > done in trunk r64838, could I backport to 7.0 release branch? -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org _______________________________________________ grass-dev mailing list grass-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From swap.ghsh at gmail.com Thu Mar 12 08:39:18 2015 From: swap.ghsh at gmail.com (Swapan Ghosh) Date: Thu, 12 Mar 2015 21:09:18 +0530 Subject: [GRASS-dev] GIS Architect for a 2 Months long gig in Melbourne, FL In-Reply-To: <1C8B0734D9DFB74F8F159C9F575233A90EF3CA31@MBX202.domain.local> References: <1C8B0734D9DFB74F8F159C9F575233A90EF3CA31@MBX202.domain.local> Message-ID: Dear Sir, Please see my attached resume. I am very much interested for this opening. I have total 8 yrs exp. in C,C++ and 2.5 yrs in grass gis. I am waiting for your consideration. Thanks & Regards, Swapan Ghosh On 12-Mar-2015 8:56 pm, "Rakesh Dhar" wrote: > Hi All, > > > > Good Morning. > > > > I am in immediate need of a *GIS Architect for a 2 Months long gig in > Melbourne, FL*. These consultants will be responsible for a R+D project. > They will be working to develop an online suite of web-based Exploitation > application(s) and services into an enterprise architecture that will be > developed in, and optimized for, use in the cloud. The successful candidate > will lead as assist in architecture development and refinement on an > internal research and development effort on a Geospatial Information System > program as a Sr. System Software Engineer. This will be a challenging, > multi-faceted position that will expose the candidate to many aspects of > the software development lifecycle. > > > > Please let me know if you will be interested or know someone who is > interested. Compensation is *VERY Competitive.* > > > > > > Sincerely, > > > > Thanks > > > > Rakesh Dhar > > Staffing Manager > > > > PEAK Technical Consulting LLC > > Engineering IT > > > > 7 Corporate Park, Suite 125 > > Irvine, CA 92606 > > Phone: (562) 472-1633 > > Fax: (949) 476-7766 > > E-mail: rakeshdhar at peaktechnical.com > > www.peaktechnical.com > > Office Hours: 8:00AM ? 5:00PM Pacific > > > > > > > > Confidentiality Notice: This E-mail and any of its attachments contain > proprietary information of PEAK Technical Services, Inc. and its affiliates > (collectively "PEAK") that is privileged, confidential or subject to > copyright belonging to PEAK. If you have received this E-mail in error or > are not the named addressee, please notify the sender immediately and > permanently delete the original, any copies and any printout. Thank You. > > > > -----Original Message----- > From: grass-dev-bounces at lists.osgeo.org [mailto: > grass-dev-bounces at lists.osgeo.org] On Behalf Of Luca Delucchi > Sent: Thursday, March 12, 2015 6:14 AM > To: Martin Landa > Cc: GRASS-dev > Subject: Re: [GRASS-dev] ubuntu/debian packages missing Platform.make? > > > > On 12 March 2015 at 11:55, Martin Landa wrote: > > > Hi, > > > > > > 2015-03-12 10:57 GMT+01:00 Luca Delucchi : > > >> grass70 --config path > > >> > > >> Traceback (most recent call last): > > >> File "/usr/bin/grass70", line 1345, in > > >> parse_cmdline() > > >> File "/usr/bin/grass70", line 1281, in parse_cmdline > > >> print_params() > > >> File "/usr/bin/grass70", line 1194, in print_params > > >> fileplat = open(plat) > > >> IOError: [Errno 2] No such file or directory: > > >> '/usr/lib/grass70/include/Make/Platform.make' > > > > > > my suggestion is to fix grass.py and suggest something similar as > > > g.extension does [1]. Martin > > > > > > [1] > > > http://trac.osgeo.org/grass/browser/grass/trunk/scripts/g.extension/g. > > > extension.py#L786 > > > > > > > done in trunk r64838, could I backport to 7.0 release branch? > > > > > > -- > > ciao > > Luca > > > > http://gis.cri.fmach.it/delucchi/ > > www.lucadelu.org > > _______________________________________________ > > grass-dev mailing list > > grass-dev at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/grass-dev > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: RESUME_SWAPAN.doc Type: application/msword Size: 84480 bytes Desc: not available URL: From landa.martin at gmail.com Thu Mar 12 10:10:05 2015 From: landa.martin at gmail.com (Martin Landa) Date: Thu, 12 Mar 2015 18:10:05 +0100 Subject: [GRASS-dev] ubuntu/debian packages missing Platform.make? In-Reply-To: References: Message-ID: 2015-03-12 14:13 GMT+01:00 Luca Delucchi : > done in trunk r64838, could I backport to 7.0 release branch? no, first fix it in trunk, it should `if not os.path.exists()` ... Ma -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From kratochanna at gmail.com Thu Mar 12 10:44:31 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Thu, 12 Mar 2015 13:44:31 -0400 Subject: [GRASS-dev] grass compilation problem on mac Message-ID: Hi, I am trying to compile grass on a fresh mac (yosemite) and the configure fails with checking for gdal-config... /Library/Frameworks/GDAL.Framework/Versions/1.11/Programs/gdal-config configure: error: *** Unable to locate GDAL library. and this is the configure log: configure:6036: checking whether to use GDAL configure:6054: checking for gdal-config configure:6116: gcc -o conftest -g -O2 -arch i386 -arch x86_64 -I/Library/Frameworks/GDAL.framework/Versions/1.11/Headers -arch i386 -arch x86_64 conftest.c -framework GDAL 1>&5 configure:6112:1: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result] GDALOpen("foo", GA_ReadOnly); ^~~~~~~~ ~~~~~~~~~~~~~~~~~~ 1 warning generated. ld: framework not found GDAL configure:6112:1: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result] GDALOpen("foo", GA_ReadOnly); ^~~~~~~~ ~~~~~~~~~~~~~~~~~~ 1 warning generated. clang: error: linker command failed with exit code 1 (use -v to see invocation) configure: failed program was: #line 6109 "configure" #include "confdefs.h" #include int main() { GDALOpen("foo", GA_ReadOnly); ; return 0; } configure:6132: gcc -o conftest -g -O2 -arch i386 -arch x86_64 -I/Library/Frameworks/GDAL.framework/Versions/1.11/Headers -arch i386 -arch x86_64 conftest.c -framework GDAL 1>&5 configure:6128:1: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result] GDALOpen("foo", GA_ReadOnly); ^~~~~~~~ ~~~~~~~~~~~~~~~~~~ 1 warning generated. ld: framework not found GDAL configure:6128:1: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result] GDALOpen("foo", GA_ReadOnly); ^~~~~~~~ ~~~~~~~~~~~~~~~~~~ 1 warning generated. clang: error: linker command failed with exit code 1 (use -v to see invocation) configure: failed program was: #line 6125 "configure" #include "confdefs.h" #include int main() { GDALOpen("foo", GA_ReadOnly); ; return 0; } I installed the GDAL framework from Michael's page and then from William's too. Nothing really helped. Any idea? I was able to compile grass couple of months ago without problem on a different computer so I don't know why it doesn't work now. Thanks, Anna -------------- next part -------------- An HTML attachment was scrubbed... URL: From wenzeslaus at gmail.com Thu Mar 12 11:14:53 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Thu, 12 Mar 2015 14:14:53 -0400 Subject: [GRASS-dev] Next GRASS community sprint In-Reply-To: References: Message-ID: On Tue, Mar 10, 2015 at 4:20 AM, Luca Delucchi wrote: > Hi devs, > > what do you think about organize next GRASS community sprint in Como > after the FOSS4G EU? > Starting the Saturday with the FOSS4G EU code sprint [0] and continue > for some days, maybe until Wednesday 22 > > This sound really good. Anna and I would like to stay there for a code/community sprint which is longer than one day. Vaclav > > [0] http://wiki.osgeo.org/wiki/Conference-Europe_2015-Como/Code_sprint > > -- > ciao > Luca > > http://gis.cri.fmach.it/delucchi/ > www.lucadelu.org > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nik at nikosalexandris.net Thu Mar 12 11:46:41 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Thu, 12 Mar 2015 20:46:41 +0200 Subject: [GRASS-dev] Missing timestamp after reprojection Message-ID: <09e03039335afc40a453061946b86ad8@nikosalexandris.net> Hi list. After reprojecting a raster or vector map, using r.proj or v.proj respectively, the map's timestamp is missing. If this is so, is it by design like that? If not, can I file an enhancement request? Trying to reproject some time-series (raster data). Thank you, Nikos From Michael.Barton at asu.edu Thu Mar 12 13:12:27 2015 From: Michael.Barton at asu.edu (Michael Barton) Date: Thu, 12 Mar 2015 20:12:27 +0000 Subject: [GRASS-dev] grass compilation problem on mac In-Reply-To: References: Message-ID: <072A0DB9-0B7D-4691-A282-46C673F39D04@asu.edu> Anna, Here are my compiling notes. This worked a couple weeks ago. Michael ======================== 1. In terminal, cd to source folder. e.g., cd /Users/cmbarton/grass_source/grass_trunk 2. Set up environment # for PROJ export NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin # for C++ export CXX=g++ # for backward compatibility with earlier OS versions (requires 10.7 SDK) export MACOSX_DEPLOYMENT_TARGET=10.7 # needed until we switch to 64 bit wxPython (requires script redirect to Python 32) export PATH="/Applications/python/bin32:/System/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH" 3. Run configure with configure string (TCLTK only needed for GRASS 6; includes optional lastools, nls, and OpenCL) ./configure --with-macosx-sdk=/Developer/SDKs/MacOSX10.7.sdk --with-freetype --with-freetype-includes="/Library/Frameworks/FreeType.framework/unix/include/freetype2 /Library/Frameworks/FreeType.framework/unix/include" --with-freetype-libs=/Library/Frameworks/FreeType.framework/unix/lib --with-gdal=/Library/Frameworks/GDAL.framework/Programs/gdal-config --with-proj --with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include --with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib --with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj --with-geos=/Library/Frameworks/GEOS.framework/Versions/3/unix/bin/geos-config --with-jpeg-includes=/Library/Frameworks/UnixImageIO.framework/unix/include --with-jpeg-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --with-png-includes=/Library/Frameworks/UnixImageIO.framework/unix/include --with-png-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/unix/include --with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --with-cairo --with-cairo-includes="/Library/Frameworks/cairo.framework/unix/include/cairo /Library/Frameworks/cairo.framework/unix/include" --with-cairo-libs=/Library/Frameworks/cairo.framework/unix/lib --with-cairo-ldflags="-lcairo" --without-postgres --without-mysql --with-sqlite --with-sqlite-libs=/Library/Frameworks/SQLite3.framework/unix/lib --with-sqlite-includes=/Library/Frameworks/SQLite3.framework/unix/include --with-fftw-includes=/Library/Frameworks/FFTW3.framework/unix/include --with-fftw-libs=/Library/Frameworks/FFTW3.framework/unix/lib --with-x --with-cxx --with-opengl=aqua --without-readline --prefix=/Applications --enable-macosx-app --with-python --with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.12.1/bin/wx-config --with-tcltk-includes="/Library/Frameworks/Tcl.framework/Headers /Library/Frameworks/Tk.framework/Headers /Library/Frameworks/Tk.framework/PrivateHeaders" --with-tcltk-libs="/usr/local/tcltk_active/lib" --with-macosx-archs="i386 x86_64" --with-liblas="/usr/local/bin/liblas-config" --with-opencl --with-nls --with-libs=/usr/local/lib --with-includes=/usr/local/include 4. Compile (gdal_dynamic needed for GRASS 7) make GDAL_DYNAMIC= The step 2 export PATH command refers to a shell script named ?python? with the following contents: #!/bin/sh exec arch -i386 pythonw2.7 "$@? This forces a 32 bit environment for compiling wxPython. While I was still getting errors on this up through last fall, changes in GRASS 7 seem to have made this work better now. Michael ______________________________ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Head, Graduate Faculty in Complex Adaptive Systems Science Arizona State University Tempe, AZ 85287-2402 USA voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) fax: 480-965-7671(SHESC), 480-727-0709 (CSDC) www: http://csdc.asu.edu, http://shesc.asu.edu http://www.public.asu.edu/~cmbarton On Mar 12, 2015, at 12:01 PM, grass-dev-request at lists.osgeo.org wrote: From: Anna Petr??ov? > To: GRASS-dev > Date: March 12, 2015 at 10:44:31 AM MST Subject: [GRASS-dev] grass compilation problem on mac Hi, I am trying to compile grass on a fresh mac (yosemite) and the configure fails with checking for gdal-config... /Library/Frameworks/GDAL.Framework/Versions/1.11/Programs/gdal-config configure: error: *** Unable to locate GDAL library. and this is the configure log: configure:6036: checking whether to use GDAL configure:6054: checking for gdal-config configure:6116: gcc -o conftest -g -O2 -arch i386 -arch x86_64 -I/Library/Frameworks/GDAL.framework/Versions/1.11/Headers -arch i386 -arch x86_64 conftest.c -framework GDAL 1>&5 configure:6112:1: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result] GDALOpen("foo", GA_ReadOnly); ^~~~~~~~ ~~~~~~~~~~~~~~~~~~ 1 warning generated. ld: framework not found GDAL configure:6112:1: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result] GDALOpen("foo", GA_ReadOnly); ^~~~~~~~ ~~~~~~~~~~~~~~~~~~ 1 warning generated. clang: error: linker command failed with exit code 1 (use -v to see invocation) configure: failed program was: #line 6109 "configure" #include "confdefs.h" #include int main() { GDALOpen("foo", GA_ReadOnly); ; return 0; } configure:6132: gcc -o conftest -g -O2 -arch i386 -arch x86_64 -I/Library/Frameworks/GDAL.framework/Versions/1.11/Headers -arch i386 -arch x86_64 conftest.c -framework GDAL 1>&5 configure:6128:1: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result] GDALOpen("foo", GA_ReadOnly); ^~~~~~~~ ~~~~~~~~~~~~~~~~~~ 1 warning generated. ld: framework not found GDAL configure:6128:1: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result] GDALOpen("foo", GA_ReadOnly); ^~~~~~~~ ~~~~~~~~~~~~~~~~~~ 1 warning generated. clang: error: linker command failed with exit code 1 (use -v to see invocation) configure: failed program was: #line 6125 "configure" #include "confdefs.h" #include int main() { GDALOpen("foo", GA_ReadOnly); ; return 0; } I installed the GDAL framework from Michael's page and then from William's too. Nothing really helped. Any idea? I was able to compile grass couple of months ago without problem on a different computer so I don't know why it doesn't work now. Thanks, Anna -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Thu Mar 12 14:10:41 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 12 Mar 2015 21:10:41 -0000 Subject: [GRASS-dev] [GRASS GIS] #2448: Fontconfig error with cairo on Windows In-Reply-To: <042.059d9f1a3c277ede13ff7da761fb46d9@osgeo.org> References: <042.059d9f1a3c277ede13ff7da761fb46d9@osgeo.org> Message-ID: <051.bcf7591d66efbb66c7b84bcfb64a30a5@osgeo.org> #2448: Fontconfig error with cairo on Windows -------------------------------------------+-------------------------------- Reporter: annakrat | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Display | Version: 7.0.0 Keywords: font, text, legend, scale bar | Platform: MSWindows 8 Cpu: Unspecified | -------------------------------------------+-------------------------------- Comment(by annakrat): I made a screencast to see what's in the terminal which just flashes during the installation. I get: {{{ Setup of WinGRASS-7.0.0 Generating the font configuration file by scanning various directories for fonts Please wait. Console window will close automatically .... ERROR: GISRC - variable not set }}} This is the same what happens if you run run_gmkfontcap from windows command prompt. -- Ticket URL: GRASS GIS From lucadeluge at gmail.com Thu Mar 12 14:24:17 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Thu, 12 Mar 2015 22:24:17 +0100 Subject: [GRASS-dev] ubuntu/debian packages missing Platform.make? In-Reply-To: References: Message-ID: On 12 March 2015 at 18:10, Martin Landa wrote: > 2015-03-12 14:13 GMT+01:00 Luca Delucchi : >> done in trunk r64838, could I backport to 7.0 release branch? > > no, first fix it in trunk, it should `if not os.path.exists()` ... Ma > sorry for the mistake... fixed in r64840 and backported in r64841 -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From neteler at osgeo.org Thu Mar 12 15:32:12 2015 From: neteler at osgeo.org (Markus Neteler) Date: Thu, 12 Mar 2015 23:32:12 +0100 Subject: [GRASS-dev] Next GRASS community sprint In-Reply-To: References: Message-ID: On Thu, Mar 12, 2015 at 7:14 PM, Vaclav Petras wrote: > On Tue, Mar 10, 2015 at 4:20 AM, Luca Delucchi wrote: >> >> Hi devs, >> >> what do you think about organize next GRASS community sprint in Como >> after the FOSS4G EU? >> Starting the Saturday with the FOSS4G EU code sprint [0] and continue >> for some days, maybe until Wednesday 22 >> > This sound really good. Anna and I would like to stay there for a > code/community sprint which is longer than one day. Yes, let's do it. We may also approach FOSSGIS e.V. for some funding if needed. Markus > Vaclav > >> >> >> [0] http://wiki.osgeo.org/wiki/Conference-Europe_2015-Como/Code_sprint >> >> -- >> ciao >> Luca >> >> http://gis.cri.fmach.it/delucchi/ >> www.lucadelu.org >> _______________________________________________ >> grass-dev mailing list >> grass-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/grass-dev > > > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev From lucadeluge at gmail.com Thu Mar 12 15:55:42 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Thu, 12 Mar 2015 23:55:42 +0100 Subject: [GRASS-dev] Next GRASS community sprint In-Reply-To: References: Message-ID: On 12 March 2015 at 23:32, Markus Neteler wrote: > > Yes, let's do it. > Ok, I would like to propose two solution for the event: - we could ask to politecnico di como to find a room for us - we could rent a big house and do the code sprint there, I found two [0] (9 people) [1] (8 people) and the total price for each person is about 300? from 13/7 to 22/7 the second solution could be also used in combination with first, 300? for one week in Como is really cheap [2] and we could also cook there (I can manage for you some dinner ;-) ) > We may also approach FOSSGIS e.V. for some funding if needed. > > Markus > [0] https://www.airbnb.com/rooms/5296648?checkin=07%2F13%2F2015&checkout=07%2F22%2F2015&guests=9&s=96ek [1] https://www.airbnb.com/rooms/1109449?checkin=07%2F13%2F2015&checkout=07%2F22%2F2015&guests=8&s=96ek [2] http://tinyurl.com/pvaga9h -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From lucadeluge at gmail.com Thu Mar 12 16:07:31 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Fri, 13 Mar 2015 00:07:31 +0100 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS In-Reply-To: References: Message-ID: On 12 March 2015 at 05:38, Vaclav Petras wrote: > I was thinking about this a little bit and I still don't see what would be > the advantages of Mapnik over other solutions and how used would be the > result considering that the GUI would be still quite limited. For me it > seems that if I need some basic outputs, map display with cairo is fine > especially if we would have some more improvements [1]. If I need advanced > cartography I have to go to QGIS or something like Mapnik or GMT. > But we could integrate Mapnik inside GRASS, it has a lot of feature for printing beautiful maps > The idea of using Mapnik as common OSGeo cartographic backend seems dead [2] > but perhaps QGIS is here to take this place. > I'm sorry about that, I like this idea, never heard about that. > Or do you see this also a something like a missing GUI for Mapnik where one > could generate just some configuration file which could be later used > somewhere else with Mapnik? > No, my idea was to use Python API to add Mapnik backend to the Cartographic Composer, Martin proposed to use the C-API to add another graphical driver. > Yet another direction is Matplotlib [4] which is anyway a dependency. But > perhaps this would be just another simple backend which is more advantageous > when used as part of API. There was actually an attempt co couple GRASS GIS > with Matplotlib map rendering [5]. > Yes this could be another direction, I proposed Mapnik because I use it and I like it. > Just my thoughts, > Vaclav > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From trac at osgeo.org Thu Mar 12 16:19:28 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 12 Mar 2015 23:19:28 -0000 Subject: [GRASS-dev] [GRASS GIS] #2448: Fontconfig error with cairo on Windows In-Reply-To: <042.059d9f1a3c277ede13ff7da761fb46d9@osgeo.org> References: <042.059d9f1a3c277ede13ff7da761fb46d9@osgeo.org> Message-ID: <051.f890a1867a6025a107b48c625b0657c5@osgeo.org> #2448: Fontconfig error with cairo on Windows -------------------------------------------+-------------------------------- Reporter: annakrat | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Display | Version: 7.0.0 Keywords: font, text, legend, scale bar | Platform: MSWindows 8 Cpu: Unspecified | -------------------------------------------+-------------------------------- Comment(by hellik): Replying to [comment:12 annakrat]: > I made a screencast to see what's in the terminal which just flashes during the installation. I get: > > > {{{ > Setup of WinGRASS-7.0.0 > Generating the font configuration file by scanning various directories for fonts > > Please wait. Console window will close automatically .... > ERROR: GISRC - variable not set > }}} > > This is the same what happens if you run run_gmkfontcap from windows command prompt. is this a fresh system without any previous winGRASS-installation before? I've added gmkfontcap.bat (''Run g.mkfontcap outside a grass session during installation'') years ago. relevant lines of codes [http://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS- Installer.nsi.tmpl#L531 g.mkfontcap] and following. {{{ 534 IfErrors done_create_run_gmkfontcap.bat 535 FileWrite $0 '@echo off$\r$\n' 536 FileWrite $0 'rem #########################################################################$\r$\n' 537 FileWrite $0 'rem #$\r$\n' 538 FileWrite $0 'rem # Run g.mkfontcap outside a grass session during installation$\r$\n' 539 FileWrite $0 'rem #$\r$\n' 540 FileWrite $0 'rem #########################################################################$\r$\n' 541 FileWrite $0 'echo Setup of WinGRASS-${VERSION_NUMBER}$\r$\n' 542 FileWrite $0 'echo Generating the font configuration file by scanning various directories for fonts.$\r$\n' 543 FileWrite $0 'echo Please wait. Console window will close automatically ....$\r$\n' 544 FileWrite $0 '$\r$\n' 545 FileWrite $0 'rem set gisbase$\r$\n' 546 FileWrite $0 'set GISBASE=$INSTALL_DIR$\r$\n' 547 FileWrite $0 '$\r$\n' 548 FileWrite $0 'rem set path to freetype dll$\r$\n' 549 FileWrite $0 'set FREETYPEBASE=$INSTALL_DIR\extrabin;$INSTALL_DIR\msys\bin;$INSTALL_DIR\lib$\r$\n' 550 FileWrite $0 '$\r$\n' 551 FileWrite $0 'rem set dependecies path$\r$\n' 552 FileWrite $0 'set PATH=%FREETYPEBASE%;%PATH%$\r$\n' 553 FileWrite $0 '$\r$\n' 554 FileWrite $0 'rem run g.mkfontcap outside a grass session$\r$\n' 555 FileWrite $0 '"%GISBASE%\bin\g.mkfontcap.exe" -o$\r$\n' 556 FileWrite $0 'exit$\r$\n' 557 FileClose $0 }}} any idea which variable isn't set? -- Ticket URL: GRASS GIS From wenzeslaus at gmail.com Thu Mar 12 16:27:42 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Thu, 12 Mar 2015 19:27:42 -0400 Subject: [GRASS-dev] Next GRASS community sprint In-Reply-To: References: Message-ID: On Thu, Mar 12, 2015 at 6:55 PM, Luca Delucchi wrote: > > On 12 March 2015 at 23:32, Markus Neteler wrote: > > > > Yes, let's do it. > > > > Ok, I would like to propose two solution for the event: > - we could ask to politecnico di como to find a room for us > - we could rent a big house and do the code sprint there, I found two > [0] (9 people) [1] (8 people) and the total price for each person is > about 300? from 13/7 to 22/7 > > the second solution could be also used in combination with first, 300? > for one week in Como is really cheap [2] and we could also cook there > (I can manage for you some dinner ;-) ) House sounds really good. One advantage, besides the price, would be that we might have place to code in the evening, the usual issue with universities or other organizations is that they don't want us after certain time (Politecnico di Como might be different?). On the other hand, I would prefer to have some real place to code with table and etc. Coding while siting in bad is not really what I want. So, if you can do the combination, it could be quite ideal. I looked to the previous sprints and we had actually over 10 people in some of the sprints. Who knows what will be this year... A dinner from you sounds great (as well as that you are preparing the sprint). Vaclav > > > We may also approach FOSSGIS e.V. for some funding if needed. > > > > Markus > > > > [0] https://www.airbnb.com/rooms/5296648?checkin=07%2F13%2F2015&checkout=07%2F22%2F2015&guests=9&s=96ek > [1] https://www.airbnb.com/rooms/1109449?checkin=07%2F13%2F2015&checkout=07%2F22%2F2015&guests=8&s=96ek > [2] http://tinyurl.com/pvaga9h > > > -- > ciao > Luca > > http://gis.cri.fmach.it/delucchi/ > www.lucadelu.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Thu Mar 12 16:46:31 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 12 Mar 2015 23:46:31 -0000 Subject: [GRASS-dev] [GRASS GIS] #2448: Fontconfig error with cairo on Windows In-Reply-To: <042.059d9f1a3c277ede13ff7da761fb46d9@osgeo.org> References: <042.059d9f1a3c277ede13ff7da761fb46d9@osgeo.org> Message-ID: <051.0996f3c0ffc717fbf5987ffdb9453f85@osgeo.org> #2448: Fontconfig error with cairo on Windows -------------------------------------------+-------------------------------- Reporter: annakrat | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Display | Version: 7.0.0 Keywords: font, text, legend, scale bar | Platform: MSWindows 8 Cpu: Unspecified | -------------------------------------------+-------------------------------- Comment(by wenzeslaus): Replying to [comment:13 hellik]: > Replying to [comment:12 annakrat]: > > I made a screencast to see what's in the terminal which just flashes during the installation. I get: > > > > {{{ ... ERROR: GISRC - variable not set }}} > > > > This is the same what happens if you run run_gmkfontcap from windows command prompt. > > > relevant lines of codes [http://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS- Installer.nsi.tmpl#L531 g.mkfontcap] and following. > {{{ ... 546 FileWrite $0 'set GISBASE=$INSTALL_DIR$\r$\n' 547 FileWrite $0 '$\r$\n' 548 FileWrite $0 'rem set path to freetype dll$\r$\n' 549 FileWrite $0 'set FREETYPEBASE=$INSTALL_DIR\extrabin;$INSTALL_DIR\msys\bin;$INSTALL_DIR\lib$\r$\n' 550 FileWrite $0 '$\r$\n' 551 FileWrite $0 'rem set dependecies path$\r$\n' 552 FileWrite $0 'set PATH=%FREETYPEBASE%;%PATH%$\r$\n' ... }}} > > any idea which variable isn't set? It is the [http://grass.osgeo.org/grass70/manuals/variables.html#list-of- selected-%28grass-related%29-shell-environment-variables GISRC] variable which is not set. The issue is that you have to set it and probably also create a valid file. It rcfile and `GISRC` variable handling seems nontrivial and I don't understand what is the actual goal here but perhaps you will be more successful. * source:grass/trunk/lib/init/grass.py#L1335 * source:grass/trunk/lib/init/grass.py#L273 We could perhaps avoid this problem altogether if we would just tell GRASS GIS what to run (#2579), although this might have its own problems during installation. One other thing is that it is not clear to me what changed that now GISRC variable is required but it was not before. -- Ticket URL: GRASS GIS From wenzeslaus at gmail.com Thu Mar 12 17:00:55 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Thu, 12 Mar 2015 20:00:55 -0400 Subject: [GRASS-dev] GSoC 2015: Mapnik rendering engine for GRASS GIS In-Reply-To: References: Message-ID: On Thu, Mar 12, 2015 at 7:07 PM, Luca Delucchi wrote: > > > Or do you see this also a something like a missing GUI for Mapnik where > one > > could generate just some configuration file which could be later used > > somewhere else with Mapnik? > > > > No, my idea was to use Python API to add Mapnik backend to the > Cartographic Composer, Martin proposed to use the C-API to add another > graphical driver. > What I mean is that the by using Mapnik as a backend for Cartographic Composer (CC), you are essentially creating a GUI for Mapnik. So perhaps if you add few generalizations, CC could be used in this way. And on a similar note, although Mapnik would be backend for CC or another display driver, CC, Map Display, display library and d.* modules lack the proper interface to use Mapnik's (advanced cartographic) features. For example, if Mapnik can do the nice roads with outline where on a crossroad there is no outline crossing, we have to have an interface to set the outline and also display library (general/abstract display driver API) has to handle the crossroad differently (just guessing here). Well, it would be great to have these features. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucadeluge at gmail.com Fri Mar 13 01:53:38 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Fri, 13 Mar 2015 09:53:38 +0100 Subject: [GRASS-dev] Next GRASS community sprint In-Reply-To: References: Message-ID: On 13 March 2015 at 00:27, Vaclav Petras wrote: > > > House sounds really good. One advantage, besides the price, would be that we > might have place to code in the evening, the usual issue with universities > or other organizations is that they don't want us after certain time > (Politecnico di Como might be different?). On the other hand, I would prefer > to have some real place to code with table and etc. Coding while siting in > bad is not really what I want. So, if you can do the combination, it could > be quite ideal. > ok, I'm going to ask to Maria and Marco a room in the university (maybe only from Monday to Wednesday, universities in Italy are close on Sunday) Is it ok have the sprint from 18 (FOSS4G EU code sprint) until 22? or we want more days? > I looked to the previous sprints and we had actually over 10 people in some > of the sprints. Who knows what will be this year... > please guys let us know as soon as possible, this year in Milan there is Expo 2015 and there will be a lot of people around.... and rent the apartment could be really a mess if we wait a lot.... I started the wiki page http://grasswiki.osgeo.org/wiki/GRASS_Community_Sprint_Como_2015 > > Vaclav > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From nik at nikosalexandris.net Fri Mar 13 02:15:05 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Fri, 13 Mar 2015 11:15:05 +0200 Subject: [GRASS-dev] pygrass Message-ID: Hi PyGRASSers, I am not exactly familiar with "grass.exceptions" modules. Am I correct in doing the following: --%<--- # transfer timestamps, if any if timestamps: try: datetime = grass.read_command("r.timestamp", map=image) run("r.timestamp", map=tmp_cdn, date=datetime) msg = "\n|i Timestamping: %s" % datetime g.message(msg) except CalledModuleError: grass.fatal(_('\n|* Timestamp missing from input map! ' 'If you insist to continue without timestamps, ' 'you may use the -t flag.')) --->%-- or is there a better, more appropriate way? I've seen some examples in existing scripts. Thanks, Nikos From landa.martin at gmail.com Fri Mar 13 02:41:46 2015 From: landa.martin at gmail.com (Martin Landa) Date: Fri, 13 Mar 2015 10:41:46 +0100 Subject: [GRASS-dev] Next GRASS community sprint In-Reply-To: References: Message-ID: Hi all, 2015-03-12 19:14 GMT+01:00 Vaclav Petras : >> what do you think about organize next GRASS community sprint in Como >> after the FOSS4G EU? >> Starting the Saturday with the FOSS4G EU code sprint [0] and continue >> for some days, maybe until Wednesday 22 >> > This sound really good. Anna and I would like to stay there for a > code/community sprint which is longer than one day. sound good also for me, looking forward! Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From trac at osgeo.org Fri Mar 13 10:16:18 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 13 Mar 2015 17:16:18 -0000 Subject: [GRASS-dev] [GRASS GIS] #2619: v.in.gps compile error Message-ID: <042.40334be10376a9e10609ff38e5390586@osgeo.org> #2619: v.in.gps compile error ----------------------+----------------------------------------------------- Reporter: uwoelfel | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Addons | Version: 7.0.0 Keywords: | Platform: All Cpu: All | ----------------------+----------------------------------------------------- v.in.gps does not compile due to two small errors: line 164: '-F', tmp + '.gpx') should be changed to: '-F', tmp + '.gpx']) and line 243: atexit.register(cleanup) should be commented out: # atexit.register(cleanup) since there is no function 'cleanup'. Probably one should put in something like the 'cleanup' that does exist in v.out.gps... -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 13 10:30:09 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 13 Mar 2015 17:30:09 -0000 Subject: [GRASS-dev] [GRASS GIS] #2620: r.neighbours should offer to ignore centre value Message-ID: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> #2620: r.neighbours should offer to ignore centre value --------------------------+------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: enhancement | Status: new Priority: minor | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: r.neighbours | Platform: Unspecified Cpu: Unspecified | --------------------------+------------------------------------------------- Currently there is not possible to ignore the centre cell when performing calculation in r.neighbours. There should be a flag to ignore centre cell value in calculation. It should be implemented as a flag as it should be available to all calculation methods. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 13 11:41:11 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 13 Mar 2015 18:41:11 -0000 Subject: [GRASS-dev] [GRASS GIS] #2621: r.random.cell should use NULL instead of 0 Message-ID: <040.0552c14d739bcd121990ee35a85b1082@osgeo.org> #2621: r.random.cell should use NULL instead of 0 -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: defect | Status: new Priority: minor | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- It seems that r.random.cell is using 0 to mark empty areas instead of using proper NULL values. It is easy fixable by r.nulls call, still it should be fixed. If it is a desired behaviour, documentation should be updated to state it. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 13 13:56:42 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 13 Mar 2015 20:56:42 -0000 Subject: [GRASS-dev] [GRASS GIS] #2620: r.neighbours should offer to ignore centre value In-Reply-To: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> References: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> Message-ID: <049.6a8f65631ac6527230a8f360d8ac2c8a@osgeo.org> #2620: r.neighbours should offer to ignore centre value --------------------------+------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: enhancement | Status: new Priority: minor | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: r.neighbours | Platform: Unspecified Cpu: Unspecified | --------------------------+------------------------------------------------- Comment(by wenzeslaus): For now, in case you don't know, you can use `r.mapcalc` with `[m, n]` operator to achieve the same results in less convenient way. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 13 13:57:44 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 13 Mar 2015 20:57:44 -0000 Subject: [GRASS-dev] [GRASS GIS] #1819: problems compiling map swipe, animation, modeler, and r.li.setup In-Reply-To: <042.2174d73ad0bf4eb57763905d03a03341@osgeo.org> References: <042.2174d73ad0bf4eb57763905d03a03341@osgeo.org> Message-ID: <051.0b0964a10cf39cc526170090ecc7830c@osgeo.org> #1819: problems compiling map swipe, animation, modeler, and r.li.setup ----------------------------------------+----------------------------------- Reporter: cmbarton | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: g.gui.* modules, toolboxes | Platform: MacOSX Cpu: OSX/Intel | ----------------------------------------+----------------------------------- Comment(by cmbarton): I was able to look at the compiler logs for my 24 February builds. There were no errors. So these recent fixes made the previous errors go away it seems. I still have to do a somewhat complicated set up of the compiling environment to force it to compile in 32 bit mode for wxPython. But when this is done, I can compile with out any errors. Michael -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 13 15:11:32 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 13 Mar 2015 22:11:32 -0000 Subject: [GRASS-dev] [GRASS GIS] #1819: problems compiling map swipe, animation, modeler, and r.li.setup In-Reply-To: <042.2174d73ad0bf4eb57763905d03a03341@osgeo.org> References: <042.2174d73ad0bf4eb57763905d03a03341@osgeo.org> Message-ID: <051.6b88461c2413ee892022dc86deda0022@osgeo.org> #1819: problems compiling map swipe, animation, modeler, and r.li.setup ----------------------------------------+----------------------------------- Reporter: cmbarton | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Keywords: g.gui.* modules, toolboxes | Platform: MacOSX Cpu: OSX/Intel | ----------------------------------------+----------------------------------- Comment(by wenzeslaus): Replying to [comment:20 cmbarton]: > I was able to look at the compiler logs for my 24 February builds. There were no errors. So these recent fixes made the previous errors go away it seems. r64664, r64674, r64677 and r64678 backported in r64851 and r64852. Closing. (Compilation issue fixed but there is something strange related to 31-64bit issues in compilation environment.) > I still have to do a somewhat complicated set up of the compiling environment to force it to compile in 32 bit mode for wxPython. But when this is done, I can compile with out any errors. Is the setup described at [http://grasswiki.osgeo.org/wiki/Compiling_on_MacOSX GRASS Wiki: Compiling on MacOSX]? -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 13 15:11:53 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 13 Mar 2015 22:11:53 -0000 Subject: [GRASS-dev] [GRASS GIS] #1819: problems compiling map swipe, animation, modeler, and r.li.setup In-Reply-To: <042.2174d73ad0bf4eb57763905d03a03341@osgeo.org> References: <042.2174d73ad0bf4eb57763905d03a03341@osgeo.org> Message-ID: <051.0f0fd7793a7b0e4c8321726d060165d5@osgeo.org> #1819: problems compiling map swipe, animation, modeler, and r.li.setup -----------------------+---------------------------------------------------- Reporter: cmbarton | Owner: grass-dev@? Type: defect | Status: closed Priority: normal | Milestone: 7.0.1 Component: wxGUI | Version: svn-trunk Resolution: fixed | Keywords: g.gui.* modules, toolboxes Platform: MacOSX | Cpu: OSX/Intel -----------------------+---------------------------------------------------- Changes (by wenzeslaus): * status: new => closed * resolution: => fixed -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 13 15:12:22 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 13 Mar 2015 22:12:22 -0000 Subject: [GRASS-dev] [GRASS GIS] #2498: yet another problem with GUI toolbox menu In-Reply-To: <042.130336b160c8ca1d6e0d4b8aca2541b1@osgeo.org> References: <042.130336b160c8ca1d6e0d4b8aca2541b1@osgeo.org> Message-ID: <051.f706f7b06fa46ed37162f54079d7b62f@osgeo.org> #2498: yet another problem with GUI toolbox menu --------------------------+------------------------------------------------- Reporter: cmbarton | Owner: grass-dev@? Type: defect | Status: closed Priority: normal | Milestone: 7.1.0 Component: wxGUI | Version: svn-trunk Resolution: fixed | Keywords: menu tree, xml, toolboxes Platform: Unspecified | Cpu: OSX/Intel --------------------------+------------------------------------------------- Changes (by wenzeslaus): * status: new => closed * resolution: => fixed Comment: #1819 is fixed, so considering this one as fixed too. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 13 16:08:06 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 13 Mar 2015 23:08:06 -0000 Subject: [GRASS-dev] [GRASS GIS] #2448: Fontconfig error with cairo on Windows In-Reply-To: <042.059d9f1a3c277ede13ff7da761fb46d9@osgeo.org> References: <042.059d9f1a3c277ede13ff7da761fb46d9@osgeo.org> Message-ID: <051.61c75a89056c4c0f8102e093deef3869@osgeo.org> #2448: Fontconfig error with cairo on Windows -------------------------------------------+-------------------------------- Reporter: annakrat | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Display | Version: 7.0.0 Keywords: font, text, legend, scale bar | Platform: MSWindows 8 Cpu: Unspecified | -------------------------------------------+-------------------------------- Comment(by hellik): Replying to [comment:14 wenzeslaus]: > > One other thing is that it is not clear to me what changed that now GISRC variable is required but it was not before. the same here ... > It is the GISRC variable which is not set. within a OSGeo4W-winGRASS7.1-session: {{{ C:\>echo %GISRC% C:\Users\xxxx\AppData\Local\Temp\grass7-xxxx-6188\gisrc }}} the content of gisrc: {{{ DEBUG: 0 MAPSET: srtmbgld GISDBASE: C:\grassdata LOCATION_NAME: srtm GUI: wxpython }}} -- Ticket URL: GRASS GIS From hellik at web.de Fri Mar 13 16:18:37 2015 From: hellik at web.de (Helmut Kudrnovsky) Date: Fri, 13 Mar 2015 16:18:37 -0700 (PDT) Subject: [GRASS-dev] the meaning/the need of the variable GISRC? Message-ID: <1426288717503-5193341.post@n6.nabble.com> hi devs, this question is related to Ticket #2448 [1] [2] says: GISRC name of .grass7/rc file. Defines the system wide value while in a GRASS session. from the ticket [3]: "One other thing is that it is not clear to me what changed that now GISRC variable is required but it was not before. " this question raises up while running g.mkfontcap outside a grass session during a standalone-winGRASS 7.x installations [4]. the error [5] is: "Setup of WinGRASS-7.0.0 Generating the font configuration file by scanning various directories for fonts Please wait. Console window will close automatically .... ERROR: GISRC - variable not set" any ideas about "GISRC - variable not set" [1] http://trac.osgeo.org/grass/ticket/2448 [2] http://grass.osgeo.org/grass70/manuals/variables.html#list-of-selected-%28grass-related%29-shell-environment-variables [3] http://trac.osgeo.org/grass/ticket/2448#comment:14 [4] http://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-Installer.nsi.tmpl#L531 [5] http://trac.osgeo.org/grass/ticket/2448#comment:12 ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/the-meaning-the-need-of-the-variable-GISRC-tp5193341.html Sent from the Grass - Dev mailing list archive at Nabble.com. From wenzeslaus at gmail.com Fri Mar 13 18:50:15 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Fri, 13 Mar 2015 21:50:15 -0400 Subject: [GRASS-dev] [GRASS-SVN] r64850 - in grass-addons/grass7/gui/wxpython: . wx.mwprecip In-Reply-To: <20150313172400.9E51639020B@trac.osgeo.org> References: <20150313172400.9E51639020B@trac.osgeo.org> Message-ID: Well, this is interesting, I'm looking forward how this will develop. Here is code review of some minor issues. On Fri, Mar 13, 2015 at 1:24 PM, wrote: > > + def loadSettings(self, sett=None): > + if sett: > + self.settings = sett > + > + try: > + self.database.SetValue(self.settings['database']) > + except: > + print 'err' > + pass > + try: > + self.schema.SetValue(self.settings['schema']) > + except: > + pass > + try: > + self.host.SetValue(self.settings['host']) > + except: > + pass > + try: > + self.user.SetValue(self.settings['user']) > + except: > + pass > + try: > + self.port.SetValue(self.settings['port']) > + except: > + pass > + try: > + self.passwd.SetValue(self.settings['passwd']) > + except: > + pass This should be one big try-except. Also, `except:` is a bad practice, this will catch everything including perhaps even SyntaxError. You should specify the error/exception type. You should also specify in the comment why it is OK to ignore the error. What you should use in case of `eval` that's a questions, more checks with `eval` is always a good idea. Also, please use if __name__ == '__main__': for consistency with other modules. This will allow you to import the files and avoid code duplication between wx.*.py file and g.gui.*.py in case the wx.*.py file is needed. Try to check your files with pep8 before submitting. -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Fri Mar 13 18:55:50 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 14 Mar 2015 01:55:50 -0000 Subject: [GRASS-dev] [GRASS GIS] #2619: v.in.gps compile error In-Reply-To: <042.40334be10376a9e10609ff38e5390586@osgeo.org> References: <042.40334be10376a9e10609ff38e5390586@osgeo.org> Message-ID: <051.5f5af1abfa2e8482272ada0fab954786@osgeo.org> #2619: v.in.gps compile error -----------------------+---------------------------------------------------- Reporter: uwoelfel | Owner: grass-dev@? Type: defect | Status: closed Priority: normal | Milestone: 7.0.1 Component: Addons | Version: 7.0.0 Resolution: fixed | Keywords: Platform: All | Cpu: All -----------------------+---------------------------------------------------- Changes (by annakrat): * status: new => closed * resolution: => fixed Comment: Done in r64853. Thank you for reporting. -- Ticket URL: GRASS GIS From trac at osgeo.org Sat Mar 14 02:51:16 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 14 Mar 2015 09:51:16 -0000 Subject: [GRASS-dev] [GRASS GIS] #2622: Text interface quits immediately when run from zsh shell Message-ID: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> #2622: Text interface quits immediately when run from zsh shell ---------------------+------------------------------------------------------ Reporter: zimmi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Default | Version: 6.4.4 Keywords: | Platform: Unspecified Cpu: x86-64 | ---------------------+------------------------------------------------------ Right now it is not possible to run grass -text from zsh shell as it immediately quits back to zsh. $SHELL variable needs to be set to /bin/bash for text interface to work. I'm not sure whether this is grass or zsh issue, could anyone provide some insight? Happens both with 6.4.x and 7. -- Ticket URL: GRASS GIS From trac at osgeo.org Sat Mar 14 02:56:51 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 14 Mar 2015 09:56:51 -0000 Subject: [GRASS-dev] [GRASS GIS] #2622: Text interface quits immediately when run from zsh shell In-Reply-To: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> References: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> Message-ID: <048.08868a103922c2aeb73c2528aea89d00@osgeo.org> #2622: Text interface quits immediately when run from zsh shell ---------------------+------------------------------------------------------ Reporter: zimmi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 6.4.4 Keywords: | Platform: Unspecified Cpu: x86-64 | ---------------------+------------------------------------------------------ Changes (by martinl): * component: Default => Startup -- Ticket URL: GRASS GIS From trac at osgeo.org Sat Mar 14 02:57:04 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 14 Mar 2015 09:57:04 -0000 Subject: [GRASS-dev] [GRASS GIS] #2622: Text interface quits immediately when run from zsh shell In-Reply-To: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> References: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> Message-ID: <048.532cf52946c6058b64795421b392ce65@osgeo.org> #2622: Text interface quits immediately when run from zsh shell ---------------------+------------------------------------------------------ Reporter: zimmi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 6.4.4 Keywords: zsh | Platform: Unspecified Cpu: x86-64 | ---------------------+------------------------------------------------------ Changes (by martinl): * keywords: => zsh -- Ticket URL: GRASS GIS From trac at osgeo.org Sat Mar 14 03:02:54 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 14 Mar 2015 10:02:54 -0000 Subject: [GRASS-dev] [GRASS GIS] #2622: Text interface quits immediately when run from zsh shell In-Reply-To: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> References: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> Message-ID: <048.e3c237475f2bf0ae3112ed9cc73836ad@osgeo.org> #2622: Text interface quits immediately when run from zsh shell ---------------------+------------------------------------------------------ Reporter: zimmi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 6.4.4 Keywords: zsh | Platform: Unspecified Cpu: x86-64 | ---------------------+------------------------------------------------------ Comment(by martinl): So doesn't it mean that in your case `$SHELL` variable is not defined and you want to hardcode it to `bash` when running zsh shell? See source:grass/trunk/lib/init/grass.py#L911 -- Ticket URL: GRASS GIS From trac at osgeo.org Sat Mar 14 03:09:24 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 14 Mar 2015 10:09:24 -0000 Subject: [GRASS-dev] [GRASS GIS] #2622: Text interface quits immediately when run from zsh shell In-Reply-To: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> References: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> Message-ID: <048.da026847e7745b5e41dbadeec50185aa@osgeo.org> #2622: Text interface quits immediately when run from zsh shell ---------------------+------------------------------------------------------ Reporter: zimmi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 6.4.4 Keywords: zsh | Platform: Unspecified Cpu: x86-64 | ---------------------+------------------------------------------------------ Comment(by zimmi): Replying to [comment:3 martinl]: > So doesn't it mean that in your case `$SHELL` variable is not defined and you want to hardcode it to `bash` when running zsh shell? See source:grass/trunk/lib/init/grass.py#L911 `$SHELL` variable is set to /bin/zsh by default. If changed to /bin/bash grass works even when run from zsh. -- Ticket URL: GRASS GIS From trac at osgeo.org Sat Mar 14 04:17:09 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 14 Mar 2015 11:17:09 -0000 Subject: [GRASS-dev] [GRASS GIS] #2620: r.neighbours should offer to ignore centre value In-Reply-To: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> References: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> Message-ID: <049.fe5a5232c2ae63ce4ddceec7fca66cc8@osgeo.org> #2620: r.neighbours should offer to ignore centre value --------------------------+------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: enhancement | Status: new Priority: minor | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: r.neighbours | Platform: Unspecified Cpu: Unspecified | --------------------------+------------------------------------------------- Comment(by glynn): Replying to [ticket:2620 marisn]: > Currently there is not possible to ignore the centre cell when performing calculation in r.neighbours. You can use the weight= option to supply a kernel in which the centre cell has zero weight. A flag may still be worth having if this is a sufficiently common case. -- Ticket URL: GRASS GIS From trac at osgeo.org Sat Mar 14 04:33:19 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 14 Mar 2015 11:33:19 -0000 Subject: [GRASS-dev] [GRASS GIS] #2622: Text interface quits immediately when run from zsh shell In-Reply-To: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> References: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> Message-ID: <048.5c9eb2b160e69e1f169d6c7f8f192539@osgeo.org> #2622: Text interface quits immediately when run from zsh shell ---------------------+------------------------------------------------------ Reporter: zimmi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 6.4.4 Keywords: zsh | Platform: Unspecified Cpu: x86-64 | ---------------------+------------------------------------------------------ Comment(by marisn): Could not reproduce the issue. GRASS 7.1 SVN started up just fine with zsh and SHELL=/bin/zsh Only issue - prompt contains an ugly "\w" {{{ Welcome to GRASS GIS 7.1.svn (r64677M) ... This version running through: Z Shell (/bin/zsh) ... GRASS 7.1.svn (xy_loc):\w > zsh --version zsh 5.0.7 (x86_64-pc-linux-gnu) GRASS 7.1.svn (xy_loc):\w > echo $SHELL /bin/zsh }}} -- Ticket URL: GRASS GIS From glynn at gclements.plus.com Sat Mar 14 04:41:26 2015 From: glynn at gclements.plus.com (Glynn Clements) Date: Sat, 14 Mar 2015 11:41:26 +0000 Subject: [GRASS-dev] [GRASS-SVN] r64850 - in grass-addons/grass7/gui/wxpython: . wx.mwprecip In-Reply-To: References: <20150313172400.9E51639020B@trac.osgeo.org> Message-ID: <21764.7782.695324.923773@cerise.gclements.plus.com> Vaclav Petras wrote: > This should be one big try-except. Also, `except:` is a bad practice, this > will catch everything including perhaps even SyntaxError. You should > specify the error/exception type. If you want to catch all errors, use "except StandardError:". That includes anything which is normally considered an error but avoids catching SystemExit (generated by sys.exit()) and KeyboardInterrupt (Ctrl-C etc). Catching a more specific error is preferable, but not always possible; the use of duck-typing means that the set of exceptions which a function can raise depends entirely on the values of the parameters and variables which it references. > + try: > + self.database.SetValue(self.settings['database']) If the intent is simply to handle the case where the key isn't present (which would normally raise KeyError), it would probably be better to just use self.settings.get('database') instead (this returns None if the key isn't present). > What you should use in case of `eval` that's a questions, more > checks with `eval` is always a good idea. Avoiding eval() altogether is usually a good idea. To read literal values of basic types, use ast.literal_eval(). This will evaluate literal expressions comprised of strings, numbers, booleans, None, tuples, lists and dictionaries, but won't invoke arbitrary function/method calls. -- Glynn Clements From trac at osgeo.org Sat Mar 14 07:21:18 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 14 Mar 2015 14:21:18 -0000 Subject: [GRASS-dev] [GRASS GIS] #2623: GRASS won't start after creating addons Message-ID: <042.fb9afba58cd8391791856c26a9c871c7@osgeo.org> #2623: GRASS won't start after creating addons -------------------------+-------------------------------------------------- Reporter: ewcgrass | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Default | Version: unspecified Keywords: | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- Having forced addons to install as per Ticket #2598 (still with grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015), GRASS fails to start, due to what appears to be an issue when creating menu items for the addons. The terminal output is as follows: {{{ Cleaning up temporary files... Starting GRASS GIS... __________ ___ __________ _______________ / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/ / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \ / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ / \____/_/ |_/_/ |_/____/____/ \____/___//____/ Welcome to GRASS GIS 7.0.1svn (r64713) GRASS GIS homepage: http://grass.osgeo.org This version running through: Bash Shell (/bin/bash) Help is available with the command: g.manual -i See the licence terms with: g.version -c If required, restart the GUI with: g.gui wxpython When ready to quit enter: exit Launching GUI in the background, please wait... GRASS 7.0.1svn (ns-nad83-utm-25m-10m):~ > Traceback (most recent call last): File "/usr/local/grass7.0.1svn-x86_64-unknown-linux- gnu-21_02_2015/gui/wxpython/wxgui.py", line 142, in sys.exit(main()) File "/usr/local/grass7.0.1svn-x86_64-unknown-linux- gnu-21_02_2015/gui/wxpython/wxgui.py", line 134, in main app = GMApp(workspaceFile) File "/usr/local/grass7.0.1svn-x86_64-unknown-linux- gnu-21_02_2015/gui/wxpython/wxgui.py", line 49, in __init__ wx.App.__init__(self, False) File "/usr/lib64/python2.7/site- packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7981, in __init__ self._BootstrapApp() File "/usr/lib64/python2.7/site- packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7555, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/local/grass7.0.1svn-x86_64-unknown-linux- gnu-21_02_2015/gui/wxpython/wxgui.py", line 83, in OnInit workspace = self.workspaceFile) File "/usr/local/grass7.0.1svn-x86_64-unknown-linux- gnu-21_02_2015/gui/wxpython/lmgr/frame.py", line 121, in __init__ self._moduleTreeBuilder = LayerManagerModuleTree() File "/usr/local/grass7.0.1svn-x86_64-unknown-linux- gnu-21_02_2015/gui/wxpython/lmgr/menudata.py", line 62, in __init__ MenuTreeModelBuilder.__init__(self, filename, expandAddons=expandAddons) File "/usr/local/grass7.0.1svn-x86_64-unknown-linux- gnu-21_02_2015/gui/wxpython/core/menutree.py", line 66, in __init__ expAddons(xmlTree) File "/usr/local/grass7.0.1svn-x86_64-unknown-linux- gnu-21_02_2015/gui/wxpython/core/toolboxes.py", line 280, in expandAddons _expandRuntimeModules(root, loadMetadata=True) File "/usr/local/grass7.0.1svn-x86_64-unknown-linux- gnu-21_02_2015/gui/wxpython/core/toolboxes.py", line 525, in _expandRuntimeModules desc, keywords = _loadMetadata(name) File "/usr/local/grass7.0.1svn-x86_64-unknown-linux- gnu-21_02_2015/gui/wxpython/core/toolboxes.py", line 558, in _loadMetadata task = gtask.parse_interface(module) File "/usr/local/grass7.0.1svn-x86_64-unknown-linux- gnu-21_02_2015/etc/python/grass/script/task.py", line 509, in parse_interface tree = etree.fromstring(get_interface_description(name)) File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1281, in XML parser.feed(text) File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1623, in feed self._raiseerror(v) File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1487, in _raiseerror raise err xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 17, column 19 }}} Changing the name of the ~/.grass7/addons/modules.xml file allows GRASS to start fine (but obviously with no addon menu items) and the addons appear to start fine also (i.e. their gui's are created when calling up addons at the terminal). -- Ticket URL: GRASS GIS From trac at osgeo.org Sat Mar 14 08:32:03 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 14 Mar 2015 15:32:03 -0000 Subject: [GRASS-dev] [GRASS GIS] #2623: GRASS won't start after creating addons In-Reply-To: <042.fb9afba58cd8391791856c26a9c871c7@osgeo.org> References: <042.fb9afba58cd8391791856c26a9c871c7@osgeo.org> Message-ID: <051.9e94875adabc29e300e916ca8e562886@osgeo.org> #2623: GRASS won't start after creating addons ---------------------------------------------+------------------------------ Reporter: ewcgrass | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Default | Version: unspecified Keywords: menu, toolboxes, addon, loading | Platform: Unspecified Cpu: Unspecified | ---------------------------------------------+------------------------------ Changes (by wenzeslaus): * keywords: => menu, toolboxes, addon, loading Comment: I don't understand what is the environment? Do you have different non- English locale? Which addons you have installed? What if you uninstall all addons and install them again? How `~/.grass7/addons/modules.xml` looks like? I don't know how to reproduce this error (it works fine for me in both trunk and release branch). My `~/.grass7/addons/modules.xml` looks like: {{{ #!xml Calculate geomorphons (terrain forms)and associated geometry using machine vision approach Geomorphons,Terrain patterns,Machine vision geomorphometry ... ... Import vector data using OGR library and reproject on the fly. vector,import,projection ... ... }}} Can you please attach your `~/.grass7/addons/modules.xml`? -- Ticket URL: GRASS GIS From trac at osgeo.org Sat Mar 14 11:45:38 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 14 Mar 2015 18:45:38 -0000 Subject: [GRASS-dev] [GRASS GIS] #2623: GRASS won't start after creating addons In-Reply-To: <042.fb9afba58cd8391791856c26a9c871c7@osgeo.org> References: <042.fb9afba58cd8391791856c26a9c871c7@osgeo.org> Message-ID: <051.04142e53328320abaa03d9a609c28fd7@osgeo.org> #2623: GRASS won't start after creating addons ---------------------------------------------+------------------------------ Reporter: ewcgrass | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Default | Version: unspecified Keywords: menu, toolboxes, addon, loading | Platform: Unspecified Cpu: Unspecified | ---------------------------------------------+------------------------------ Comment(by ewcgrass): This is from Help-->about system: {{{ GRASS version: 7.0.1svn GRASS SVN Revision: 64713 Build Date: 2015-01-21 Build Platform: x86_64-unknown-linux-gnu GDAL/OGR: 1.6.3 PROJ.4: 4.7.0 GEOS: 3.2.0 SQLite: 3.7.13 Python: 2.7.0 wxPython: 2.8.12.0 Platform: Linux-2.6.35.14-106.fc14.x86_64-x86_64-with-fedora-14-Laughlin }}} (please note that the build date shown above is incorrect and should read 2015-02-21) I have by process of elimination determined that it is the section of the $HOME/.grass7/addons/modules.xml file for "r.to.vect.lines" addon that is causing grass to not start: {{{ None None /home/rick/.grass7/addons/scripts/r.to.vect.lines /home/rick/.grass7/addons/docs/man/man1/r.to.vect.lines.1 /home/rick/.grass7/addons/docs/html/r_to_vect_lines_example.png /home/rick/.grass7/addons/docs/html/r.to.vect.lines.html }}} Removing this section from the file now allows grass to start. However, I see no menu items for any of the installed addons. Should there be menu items for the addons? And if so, where in the gui would I find them? I have attached the $HOME/.grass7/modules.xml file that now allows grass to start. -- Ticket URL: GRASS GIS From lucadeluge at gmail.com Sat Mar 14 14:54:26 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Sat, 14 Mar 2015 22:54:26 +0100 Subject: [GRASS-dev] Next GRASS community sprint In-Reply-To: References: Message-ID: On 12 March 2015 at 23:55, Luca Delucchi wrote: > > [0] https://www.airbnb.com/rooms/5296648?checkin=07%2F13%2F2015&checkout=07%2F22%2F2015&guests=9&s=96ek > [1] https://www.airbnb.com/rooms/1109449?checkin=07%2F13%2F2015&checkout=07%2F22%2F2015&guests=8&s=96ek these two are already booked. I found some other but smaller, one [0] is quite interesting because is really close to the University and really cheap but it seems a little bit old. I'll continue to look for some apartments... please let us know who will join us for the community sprint and to share an apartment. Cheers [0] https://www.airbnb.it/rooms/4879157?checkin=13-07-2015&checkout=22-07-2015&guests=6&s=vWw2 -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From neteler at osgeo.org Sat Mar 14 14:58:25 2015 From: neteler at osgeo.org (Markus Neteler) Date: Sat, 14 Mar 2015 22:58:25 +0100 Subject: [GRASS-dev] Next GRASS community sprint In-Reply-To: References: Message-ID: Hi I'll will be there. And looking forward to it :) Markus -------------- next part -------------- An HTML attachment was scrubbed... URL: From hellik at web.de Sat Mar 14 16:07:28 2015 From: hellik at web.de (Helmut Kudrnovsky) Date: Sat, 14 Mar 2015 16:07:28 -0700 (PDT) Subject: [GRASS-dev] grass addon sync to github In-Reply-To: References: <1425246885917-5190784.post@n6.nabble.com> Message-ID: <1426374448361-5193405.post@n6.nabble.com> Luca Delucchi wrote > On 1 March 2015 at 22:54, Helmut Kudrnovsky < > hellik@ > > wrote: >> Hi devs, >> > > Hi Helmut, > >> I have a few g7-addons in grass svn and I want to put them also in >> github. >> >> do you know any script/tool to sync addons in svn with github? >> > > Could I ask you why? > > > > -- > ciao > Luca > > http://gis.cri.fmach.it/delucchi/ > www.lucadelu.org > _______________________________________________ > grass-dev mailing list > grass-dev at .osgeo > http://lists.osgeo.org/mailman/listinfo/grass-dev Luca, sorry for the delayed answer, missed your mail caused by too much work on my side. the idea behind my question is to open code to new development models... ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/grass-addon-sync-to-github-tp5190784p5193405.html Sent from the Grass - Dev mailing list archive at Nabble.com. From trac at osgeo.org Sun Mar 15 02:27:26 2015 From: trac at osgeo.org (GRASS GIS) Date: Sun, 15 Mar 2015 09:27:26 -0000 Subject: [GRASS-dev] [GRASS GIS] #2620: r.neighbours should offer to ignore centre value In-Reply-To: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> References: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> Message-ID: <049.3a5803999c9a6a5bafd53d42f0826a98@osgeo.org> #2620: r.neighbours should offer to ignore centre value --------------------------+------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: enhancement | Status: new Priority: minor | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: r.neighbours | Platform: Unspecified Cpu: Unspecified | --------------------------+------------------------------------------------- Comment(by marisn): Replying to [comment:2 glynn]: > Replying to [ticket:2620 marisn]: > > Currently there is not possible to ignore the centre cell when performing calculation in r.neighbours. > You can use the weight= option to supply a kernel in which the centre cell has zero weight. > > A flag may still be worth having if this is a sufficiently common case. First - it is a documentation problem as module description is "Makes each cell category value a function of the category values assigned to the cells around it" - the problem with word "around" - I read it as "nearby cells excluding the centre cell". I took liberty to add a notice in r64860 that "around" means - "all surrounding cells + centre cell". Second - it is not possible to use weights and circular neighbourhood at the same time (documentation states: "The -c flag and the weights parameter are mutually exclusive.") wenzeslaus - thanks for hint. As I needed a count of neighbour cells, I ended with mapcalc expression "if(isnull(original), count, count-1)" -- Ticket URL: GRASS GIS From p.vanbreugel at gmail.com Sun Mar 15 14:20:42 2015 From: p.vanbreugel at gmail.com (Paulo van Breugel) Date: Sun, 15 Mar 2015 22:20:42 +0100 Subject: [GRASS-dev] Compute mahalanobis distance using Scipy Message-ID: Hi Pietro, When running the tiled_function function you wrote [1] I am getting the error below. {{{ tiled_function(raster_inputs=ref, raster_output="out_mah1", func=mahalanobis_distances) }}} ERROR: No null file for Any idea what is wrong? Best wishes, Paulo [1] http://lists.osgeo.org/pipermail/grass-dev/2015-February/074049.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From hellik at web.de Sun Mar 15 15:33:36 2015 From: hellik at web.de (Helmut Kudrnovsky) Date: Sun, 15 Mar 2015 15:33:36 -0700 (PDT) Subject: [GRASS-dev] 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte Message-ID: <1426458816721-5193488.post@n6.nabble.com> hi, tested with GRASS Version: 7.1.svn GRASS SVN revision: 64858 Build date: 2015-03-15 Build platform: i686-pc-mingw32 GDAL: 1.11.2 PROJ.4: 4.8.0 GEOS: 3.4.2 SQLite: 3.7.17 Python: 2.7.4 wxPython: 2.8.12.1 Platform: Windows-7-6.1.7601-SP1 (OSGeo4W) a ms windows error message window: 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte pops up when invoking e.g. d.vect r.slope.aspect ... and following error message: Traceback (most recent call last): File "C:\OSGEO4~2\apps\grass\grass-7.1.svn\gui\wxpython\gu i_core\forms.py", line 2054, in OnUpdateDialog self.parent.updateValuesHook() File "C:\OSGEO4~2\apps\grass\grass-7.1.svn\gui\wxpython\gu i_core\forms.py", line 628, in updateValuesHook self.SetStatusText(' '.join(self.notebookpanel.createCmd(ignoreErrors = True))) TypeError ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/utf8-codec-can-t-decode-byte-0xf6-in-position-8-invalid-start-byte-tp5193488.html Sent from the Grass - Dev mailing list archive at Nabble.com. From trac at osgeo.org Mon Mar 16 01:45:10 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 08:45:10 -0000 Subject: [GRASS-dev] [GRASS GIS] #2624: r.horizon problem in Windows (horizon_zud) Message-ID: <043.8c3caae17b9aea0f421396000fb62740@osgeo.org> #2624: r.horizon problem in Windows (horizon_zud) ------------------------------------------------+--------------------------- Reporter: rorschach | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: r.horizon, grass70, grass, windows | Platform: MSWindows 8 Cpu: Unspecified | ------------------------------------------------+--------------------------- I think that r.horizon does not create multiple raster maps when used in raster mode in Windows. *Note: I am using a dual-booted PC (Ubuntu 14.04 and Windows 8.1) I ran r.horizon on Windows 8.1 using GRASS 7.0.0. During runtime, it kept on showing angle: X raster: instead of the usual angle: X raster: horizon_X when being run on Ubuntu. When looking at the mapset, only 1 map named horizon_zud was added when running r.horizon on Windows compared to the multiple horizon_X maps when the command is ran on Ubuntu. Also, when using r.horizon as an input for r.sun, the results I got on Windows and Ubuntu where different. This should not have been the case considering I used the same dataset and input parameters for r.sun and r.horizon. Lastly, when I ran r.sun on Ubuntu using the location and mapset (including the r.horizon results) I created using GRASS 7.0.0 on Windows, it tells me that the horizon maps are not found. These things lead me to believe that r.horizon does not create multiple raster maps on Windows. -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 16 01:47:07 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 08:47:07 -0000 Subject: [GRASS-dev] [GRASS GIS] #2624: r.horizon problem in Windows (horizon_zud) In-Reply-To: <043.8c3caae17b9aea0f421396000fb62740@osgeo.org> References: <043.8c3caae17b9aea0f421396000fb62740@osgeo.org> Message-ID: <052.3b326d70760015fde7f25294f98f8a6b@osgeo.org> #2624: r.horizon problem in Windows (horizon_zud) ------------------------------------------+--------------------------------- Reporter: rorschach | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: r.horizon, grass70, wingrass | Platform: MSWindows 8 Cpu: Unspecified | ------------------------------------------+--------------------------------- Changes (by rorschach): * keywords: r.horizon, grass70, grass, windows => r.horizon, grass70, wingrass -- Ticket URL: GRASS GIS From landa.martin at gmail.com Mon Mar 16 05:54:33 2015 From: landa.martin at gmail.com (Martin Landa) Date: Mon, 16 Mar 2015 13:54:33 +0100 Subject: [GRASS-dev] [GRASS-user] v.out.ogr dialog ask for user to type entire output path In-Reply-To: References: Message-ID: Hi, 2015-03-16 13:47 GMT+01:00 Daniel Victoria : > In the 'Name of output OGR datasource' field, the user has to type the > entire path, which some times can be quite long. Of course I can copy/paste > the output path but couldn't we have a directory or file chooser dialog > there? the problem with datasource is that it could be a file, database, ... It's the main reason why the option has no hardcoded type. But I agree with you, it should be improved. One option would be to write a similar front-end as already exists for v.in.ogr or v.external.out (it could be good starting point for v.out.ogr). But it requires some time and programming (any volunteer here?) or to change option type to G_OPT_F_OUTPUT (file). This option will still enables to type eg. PG datasource (PostGIS). Another option which came to my mind is to change form.py to use GDALSelect widget directly. It would be the best option I would say. Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From trac at osgeo.org Mon Mar 16 07:21:24 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 14:21:24 -0000 Subject: [GRASS-dev] [GRASS GIS] #2620: r.neighbours should offer to ignore centre value In-Reply-To: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> References: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> Message-ID: <049.f3a6031ac8c70af820ec740a46f82e94@osgeo.org> #2620: r.neighbours should offer to ignore centre value --------------------------+------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: enhancement | Status: new Priority: minor | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: r.neighbours | Platform: Unspecified Cpu: Unspecified | --------------------------+------------------------------------------------- Comment(by glynn): Replying to [comment:3 marisn]: > Second - it is not possible to use weights and circular neighbourhood at the same time (documentation states: "The -c flag and the weights parameter are mutually exclusive.") More accurately, it is not possible to use weight= and an automatically- generated mask (either the circular mask generated by -c or the Gaussian mask generated by gauss= or the square mask generated in the absence of any other applicable option). Nothing prevents weight= from being used to supply a circular mask. However, any automatically-generated mask (whether square, circular or Gaussian) is simply a short-cut whose behaviour could also be obtained by passing the appropriate mask via weight=. So the question isn't about what's possible, but what's possible without providing an explicit weights file. There's no end to the set of masks which could be generated internally; the only question is which ones are common enough to warrant a short-cut. -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 16 07:22:23 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 14:22:23 -0000 Subject: [GRASS-dev] [GRASS GIS] #2622: Text interface quits immediately when run from zsh shell In-Reply-To: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> References: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> Message-ID: <048.62e8edf4c941f12d71b6bea531ae55ce@osgeo.org> #2622: Text interface quits immediately when run from zsh shell ---------------------+------------------------------------------------------ Reporter: zimmi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 6.4.4 Keywords: zsh | Platform: Unspecified Cpu: x86-64 | ---------------------+------------------------------------------------------ Comment(by zimmicz): GRASS 7.1 comes from official repo? I'm using zsh 5.0.2 that might be the difference. -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 16 07:25:39 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 14:25:39 -0000 Subject: [GRASS-dev] [GRASS GIS] #2622: Text interface quits immediately when run from zsh shell In-Reply-To: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> References: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> Message-ID: <048.91cf85d477b0bdce84c1531ce2dd2cce@osgeo.org> #2622: Text interface quits immediately when run from zsh shell ---------------------+------------------------------------------------------ Reporter: zimmi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 6.4.4 Keywords: zsh | Platform: Unspecified Cpu: x86-64 | ---------------------+------------------------------------------------------ Comment(by martinl): Replying to [comment:6 zimmicz]: > GRASS 7.1 comes from official repo? I'm using zsh 5.0.2 that might be the difference. well, it depends what you mean by "official", there are Launchpad builds (1) recommended on official project pages (2). (1) https://launchpad.net/~grass/+archive/ubuntu/grass-devel (2) http://grass.osgeo.org/download/software/linux/#g71x -- Ticket URL: GRASS GIS From glynn at gclements.plus.com Mon Mar 16 07:30:22 2015 From: glynn at gclements.plus.com (Glynn Clements) Date: Mon, 16 Mar 2015 14:30:22 +0000 Subject: [GRASS-dev] Compute mahalanobis distance using Scipy In-Reply-To: References: Message-ID: <21766.59646.765473.534193@cerise.gclements.plus.com> Paulo van Breugel wrote: > When running the tiled_function function you wrote [1] I am getting the > error below. > > {{{ > tiled_function(raster_inputs=ref, raster_output="out_mah1", > func=mahalanobis_distances) > }}} > > ERROR: No null file for > > Any idea what is wrong? That error message is from lib/raster, and indicates that the null file couldn't be created (Rast_open_new() should probably generate an error or warning if this happens; the fact that it doesn't suggests that it isn't a common occurrence). Were there any other warnings prior to that? Check the permissions on the mapset directory, the cell_misc subdirectory, and the cell_misc/out_mah1 subdirectory (if it exists). Alternatively, it might indicate an issue in the PyGrass library; that code is relatively new. -- Glynn Clements From kratochanna at gmail.com Mon Mar 16 08:53:13 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Mon, 16 Mar 2015 11:53:13 -0400 Subject: [GRASS-dev] 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte In-Reply-To: <1426458816721-5193488.post@n6.nabble.com> References: <1426458816721-5193488.post@n6.nabble.com> Message-ID: I tested winGRASS r64873, no problems with English locale, I switched to German too, still no problems. Anna On Sun, Mar 15, 2015 at 6:33 PM, Helmut Kudrnovsky wrote: > hi, > > tested with > > GRASS Version: 7.1.svn > GRASS SVN revision: 64858 > Build date: 2015-03-15 > Build platform: i686-pc-mingw32 > GDAL: 1.11.2 > PROJ.4: 4.8.0 > GEOS: 3.4.2 > SQLite: 3.7.17 > Python: 2.7.4 > wxPython: 2.8.12.1 > Platform: Windows-7-6.1.7601-SP1 (OSGeo4W) > > a ms windows error message window: > > 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte > > < > http://osgeo-org.1560.x6.nabble.com/file/n5193488/utf_codec_error_15032015_232313.png > > > > pops up when invoking e.g. > > d.vect > r.slope.aspect > ... > > and following error message: > > Traceback (most recent call last): > File "C:\OSGEO4~2\apps\grass\grass-7.1.svn\gui\wxpython\gu > i_core\forms.py", line 2054, in OnUpdateDialog > > self.parent.updateValuesHook() > File "C:\OSGEO4~2\apps\grass\grass-7.1.svn\gui\wxpython\gu > i_core\forms.py", line 628, in updateValuesHook > > self.SetStatusText(' > '.join(self.notebookpanel.createCmd(ignoreErrors = True))) > TypeError > > > > ----- > best regards > Helmut > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/utf8-codec-can-t-decode-byte-0xf6-in-position-8-invalid-start-byte-tp5193488.html > Sent from the Grass - Dev mailing list archive at Nabble.com. > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hellik at web.de Mon Mar 16 09:23:45 2015 From: hellik at web.de (Helmut Kudrnovsky) Date: Mon, 16 Mar 2015 09:23:45 -0700 (PDT) Subject: [GRASS-dev] 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte In-Reply-To: References: <1426458816721-5193488.post@n6.nabble.com> Message-ID: <1426523025355-5193649.post@n6.nabble.com> > I tested winGRASS r64873, no problems with English locale, I switched to German too, still no problems. tested with System Info GRASS Version: 7.1.svn GRASS SVN revision: 64873 Build date: 2015-03-16 Build platform: i686-pc-mingw32 GDAL: 1.11.2 PROJ.4: 4.8.0 GEOS: 3.4.2 SQLite: 3.7.17 Python: 2.7.4 wxPython: 2.8.12.1 Platform: Windows-7-6.1.7601-SP1 (OSGeo4W) 'utf8' codec can't decode error still there. also tested with System Info GRASS Version: 7.0.0 GRASS SVN Revision: 64706 Erstellungsdatum: 2015-01-20 in the same OSGeo4W-stack, no problem there. ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/utf8-codec-can-t-decode-byte-0xf6-in-position-8-invalid-start-byte-tp5193488p5193649.html Sent from the Grass - Dev mailing list archive at Nabble.com. From trac at osgeo.org Mon Mar 16 09:25:09 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 16:25:09 -0000 Subject: [GRASS-dev] [GRASS GIS] #2625: r.stats's nsteps is not region-sensitive Message-ID: <041.d3e57ac799359752f16512d8aa663edb@osgeo.org> #2625: r.stats's nsteps is not region-sensitive -----------------------------+---------------------------------------------- Reporter: martinl | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: 7.0.1 Component: Raster | Version: svn-trunk Keywords: r.stats, nsteps | Platform: Unspecified Cpu: Unspecified | -----------------------------+---------------------------------------------- `r.stat's nsteps` option is not region-sensitive, in other words ranges are calculated from original raster, not from current region. It can be very confusing for a user, I am not sure if it's a bug or just undocumented behaviour. OK, I get 5 classes: {{{ g.region rast=elevation r.stats elevation nsteps=5 --q 55.578793-75.729007 75.729007-95.879221 95.879221-116.029436 116.029436-136.17965 136.17965-156.329865 }}} Smaller number of classes when using sub-region: {{{ g.region n=219326.524155 s=218357.261131 w=635573.588429 e=637027.482965 -a r.stats elevation nsteps=5 --q 75.729007-95.879221 95.879221-116.029436 116.029436-136.17965 }}} -- Ticket URL: GRASS GIS From hellik at web.de Mon Mar 16 09:32:36 2015 From: hellik at web.de (Helmut Kudrnovsky) Date: Mon, 16 Mar 2015 09:32:36 -0700 (PDT) Subject: [GRASS-dev] 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte In-Reply-To: References: <1426458816721-5193488.post@n6.nabble.com> Message-ID: <1426523556858-5193653.post@n6.nabble.com> >I tested winGRASS r64873, no problems with English locale, I switched to German too, still no problems. interesting: _no_ problems with commands like e.g.: g.region g.mapset g.access g.gisenv g.extension problems with commands like e.g.: r.slope.aspect d.vect r.watershed r.neigbhours v.parallel ... any idea? ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/utf8-codec-can-t-decode-byte-0xf6-in-position-8-invalid-start-byte-tp5193488p5193653.html Sent from the Grass - Dev mailing list archive at Nabble.com. From trac at osgeo.org Mon Mar 16 10:15:45 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 17:15:45 -0000 Subject: [GRASS-dev] [GRASS GIS] #2626: v.out.ogr does not suggest db.connect and db.login when not set Message-ID: <044.c59b2f680c09064736bb9bedd32982c1@osgeo.org> #2626: v.out.ogr does not suggest db.connect and db.login when not set -------------------------------------------+-------------------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.1.0 Component: Vector | Version: svn-trunk Keywords: PostgreSQL, postgres, PostGIS | Platform: Linux Cpu: Unspecified | -------------------------------------------+-------------------------------- When there is no connection set using `db.connect` or authentication using `db.login`, `v.out.ogr` does not say what's wrong. Instead a misleading (?) error about database creation is shown: {{{ $ v.out.ogr in=lakes at PERMANENT output=PG:dbname=gis format=PostgreSQL type=area ERROR 1: PQconnectdb failed. could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? ERROR 1: PostgreSQL driver doesn't currently support database creation. Please create database with the `createdb' command. ERROR: Unable to open OGR data source 'PG:dbname=gis' }}} Executing `db.connect` and `db.login` actually does not solve the problem for me: `db.tables -p` lists tables but `v.out.ogr` still says the same. I suppose this might be my problem, I might have misinterpreted the manual, but in any case the initial message is wrong. The special thing about my environment is that I'm using PostgreSQL database in a Docker container from [https://registry.hub.docker.com/u/kartoza/postgis/ kartoza/postgis]. I used their steps to run it and `psql` works for me (in GRASS session): {{{ psql -h localhost -U docker -p 25432 -l }}} -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 16 10:50:05 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 17:50:05 -0000 Subject: [GRASS-dev] [GRASS GIS] #2627: v.out.postgis uses wrong database name or port Message-ID: <044.821e8670f5dc068264f34cf3d34990ef@osgeo.org> #2627: v.out.postgis uses wrong database name or port -------------------------------------------+-------------------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.1.0 Component: Default | Version: svn-trunk Keywords: PostgreSQL, postgres, PostGIS | Platform: Unspecified Cpu: Unspecified | -------------------------------------------+-------------------------------- After using `db.connect` and `db.login`: {{{ db.connect driver=pg database="host=0.0.0.0,port=25432,dbname=gis" db.login user=docker password=docker }}} v.out.postgis uses wrong database name or port (or both) and then fails to connect to the database and then crashes or hangs. In the following reports I used `g.gisenv set=DEBUG=5` but the behavior is the same for no debug. Note the name of database in debug messages is once "grass", then NULL and then "grass" plus some unknown/non-printable character. It also seems that it calls the `read_file()` function twice. Finally, it mentions 5432 before it ends. Hangs: {{{ D2/5: V1_open_new_pg(): name = busroutesall with_z = 0 D1/5: V1_open_new_pg(): conninfo='dbname=grass' table='busroutesall' D3/5: db_get_login(): drv=[pg] db=[grass] D3/5: read_file(): DB login file = D3/5: ret = 4 : drv=[pg] db=[host=localhost,port=25432,dbname=gis] usr=[docker] pwd=[docker] D3/5: db_get_login(): drv=[pg] db=[(null)] D3/5: read_file(): DB login file = D3/5: ret = 4 : drv=[pg] db=[host=localhost,port=25432,dbname=gis] usr=[docker] pwd=[docker] D1/5: PQconnectdb(): dbname=grass user=docker password=docker ERROR: Connection to PostgreSQL database failed. Try to set up username/password by db.login. could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? D1/5: Vect_close(): name = busroutesall, mapset = PERMANENT, format = 0, level = 2, is_tmp = 0 D1/5: spatial index file closed D1/5: close history file D1/5: V1_close_nat(): name = busroutesall mapset= PERMANENT D1/5: file_handler: PG_27099 D2/5: G_file_name(): path = /grassdata//nc_spm/postgis_test1/PG_27099 }}} Aborted with "free(): invalid pointer": {{{ D2/5: V1_open_new_pg(): name = busroutesall with_z = 0 D1/5: V1_open_new_pg(): conninfo='dbname=grass' table='busroutesall' D3/5: db_get_login(): drv=[pg] db=[grass] D3/5: read_file(): DB login file = D3/5: ret = 4 : drv=[pg] db=[host=localhost,port=25432,dbname=gis] usr=[docker] pwd=[docker] D3/5: db_get_login(): drv=[pg] db=[(null)] D3/5: read_file(): DB login file = D3/5: ret = 4 : drv=[pg] db=[host=localhost,port=25432,dbname=gis] usr=[docker] pwd=[docker] D1/5: PQconnectdb(): dbname=grass user=docker password=docker ERROR: Connection to PostgreSQL database failed. Try to set up username/password by db.login. could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? D1/5: Vect_close(): name = busroutesall, mapset = PERMANENT, format = 0, level = 2, is_tmp = 0 D1/5: spatial index file closed D1/5: close history file D1/5: V1_close_nat(): name = busroutesall mapset= PERMANENT D1/5: file_handler: PG_27257 D2/5: G_file_name(): path = /grassdata//nc_spm/postgis_test1/PG_27257 dbmi: Protocol error * Error in `v.out.postgis': free(): invalid pointer: 0x00007f6fed3977e8 * Aborted (core dumped) }}} Segmentation fault: {{{ D2/5: V1_open_new_pg(): name = busroutesall with_z = 0 D1/5: V1_open_new_pg(): conninfo='dbname=grass' table='busroutesall' D3/5: db_get_login(): drv=[pg] db=[grass] D3/5: read_file(): DB login file = D3/5: ret = 4 : drv=[pg] db=[host=localhost,port=25432,dbname=gis] usr=[docker] pwd=[docker] D3/5: db_get_login(): drv=[pg] db=[(null)] D3/5: read_file(): DB login file = D3/5: ret = 4 : drv=[pg] db=[host=localhost,port=25432,dbname=gis] usr=[docker] pwd=[docker] D1/5: PQconnectdb(): dbname=grass user=docker password=docker ERROR: Connection to PostgreSQL database failed. Try to set up username/password by db.login. could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? D1/5: Vect_close(): name = busroutesall, mapset = PERMANENT, format = 0, level = 2, is_tmp = 0 D1/5: spatial index file closed D1/5: close history file D1/5: V1_close_nat(): name = busroutesall mapset= PERMANENT D1/5: file_handler: PG_27267 D2/5: G_file_name(): path = /grassdata//nc_spm/postgis_test1/PG_27267 dbmi: Protocol error Segmentation fault (core dumped) }}} Similar applies to the case when v.out.postgis is used without `db.login`. Sometimes in hangs, sometimes it segfaults: {{{ v.out.postgis -l input=busroutesall output="PG:dbname=grass" ERROR: Connection to PostgreSQL database failed. Try to set up username/password by db.login. could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? dbmi: Protocol error Segmentation fault (core dumped) }}} Same as in #2626, I hope I'm not missing something, e.g. from manual or messages. The special thing about my environment is that I'm using PostgreSQL database in a Docker container from kartoza/postgis. I used their steps to run it and psql works for me (in GRASS session): {{{ psql -h localhost -U docker -p 25432 -l }}} -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 16 11:11:32 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 18:11:32 -0000 Subject: [GRASS-dev] [GRASS GIS] #2628: db.login does not ask for password as PostgreSQL database driver manual page says Message-ID: <044.1dbbb5556521dd30a2ae219f05805d24@osgeo.org> #2628: db.login does not ask for password as PostgreSQL database driver manual page says -------------------------+-------------------------------------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.1.0 Component: Database | Version: svn-trunk Keywords: postgres | Platform: Linux Cpu: Unspecified | -------------------------+-------------------------------------------------- The ''PostgreSQL DATABASE DRIVER'' manual page (http://grass.osgeo.org/grass70/manuals/grass-pg.html) says: {{{ # example for connecting to a PostgreSQL server: db.connect driver=pg database="host=myserver.osgeo.org,dbname=mydb" # password is asked interactively if not specified: db.login user=myname [pass=secret] db.connect -p db.tables -p }}} I noticed: {{{ # password is asked interactively if not specified: }}} So I tried: {{{ db.login user=docker }}} But then I got: {{{ > db.connect -p driver: pg database: host=localhost,port=25432,dbname=gis schema: group: > db.tables -p DBMI-PostgreSQL driver error: Connection failed. fe_sendauth: no password supplied DBMI-PostgreSQL driver error: Connection failed. fe_sendauth: no password supplied }}} I was not prompted for the password at any point. So it seems that either the manual page is wrong or `db.connect` does not work as expected. I think that I actually got the `db.tables` error message ("no password supplied") twice as presented above. Setting the password in command line works (but of course exposes the password in the bash history file). I don't think this is related to #2626 or #2627. I don't know if it is related to #1951. By the way, ''PostgreSQL DATABASE DRIVER'' title should be probably changed to ''PostgreSQL database driver'' (better typography, no reason for all uppercase). -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 16 12:05:44 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 19:05:44 -0000 Subject: [GRASS-dev] [GRASS GIS] #2628: db.login does not ask for password as PostgreSQL database driver manual page says In-Reply-To: <044.1dbbb5556521dd30a2ae219f05805d24@osgeo.org> References: <044.1dbbb5556521dd30a2ae219f05805d24@osgeo.org> Message-ID: <053.9145962ce50ff0c4ac1bdad3b1fa25fa@osgeo.org> #2628: db.login does not ask for password as PostgreSQL database driver manual page says --------------------------------+------------------------------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.1.0 Component: Database | Version: svn-trunk Keywords: db.login, postgres | Platform: Linux Cpu: Unspecified | --------------------------------+------------------------------------------- Changes (by martinl): * keywords: postgres => db.login, postgres -- Ticket URL: GRASS GIS From p.vanbreugel at gmail.com Mon Mar 16 13:23:52 2015 From: p.vanbreugel at gmail.com (Paulo van Breugel) Date: Mon, 16 Mar 2015 21:23:52 +0100 Subject: [GRASS-dev] Compute mahalanobis distance using Scipy In-Reply-To: <21766.59646.765473.534193@cerise.gclements.plus.com> References: <21766.59646.765473.534193@cerise.gclements.plus.com> Message-ID: On Mon, Mar 16, 2015 at 3:30 PM, Glynn Clements wrote: > > Paulo van Breugel wrote: > > > When running the tiled_function function you wrote [1] I am getting the > > error below. > > > > {{{ > > tiled_function(raster_inputs=ref, raster_output="out_mah1", > > func=mahalanobis_distances) > > }}} > > > > ERROR: No null file for > > > > Any idea what is wrong? > > That error message is from lib/raster, and indicates that the null > file couldn't be created (Rast_open_new() should probably generate an > error or warning if this happens; the fact that it doesn't suggests > that it isn't a common occurrence). > > Were there any other warnings prior to that? Check the permissions on > the mapset directory, the cell_misc subdirectory, and the > cell_misc/out_mah1 subdirectory (if it exists). > No prior warnings, as far as I could see. Permissions on those folders are OK. No cell_misc/out_mah1, but that makes sense I guess as that is the raster file that should be created by the tiled_function. > > Alternatively, it might indicate an issue in the PyGrass library; that > code is relatively new. > OK, hopefully the PyGrass gurus can have a look at it. > > -- > Glynn Clements > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.zamb at gmail.com Mon Mar 16 13:56:48 2015 From: peter.zamb at gmail.com (Pietro) Date: Mon, 16 Mar 2015 21:56:48 +0100 Subject: [GRASS-dev] Compute mahalanobis distance using Scipy In-Reply-To: References: <21766.59646.765473.534193@cerise.gclements.plus.com> Message-ID: Hi Paulo, On Mon, Mar 16, 2015 at 9:23 PM, Paulo van Breugel wrote: >> Paulo van Breugel wrote: >> Alternatively, it might indicate an issue in the PyGrass library; that >> code is relatively new. > > > OK, hopefully the PyGrass gurus can have a look at it. Ofcourse I will look into it, but since I need two/three weeks, may be could a good idea to open a ticket on track, just to not forget this problem. Thank you for reporting this. Pietro From p.vanbreugel at gmail.com Mon Mar 16 14:01:27 2015 From: p.vanbreugel at gmail.com (Paulo van Breugel) Date: Mon, 16 Mar 2015 22:01:27 +0100 Subject: [GRASS-dev] Compute mahalanobis distance using Scipy In-Reply-To: References: <21766.59646.765473.534193@cerise.gclements.plus.com> Message-ID: Great, I'll do that On Mon, Mar 16, 2015 at 9:56 PM, Pietro wrote: > Hi Paulo, > > On Mon, Mar 16, 2015 at 9:23 PM, Paulo van Breugel > wrote: > >> Paulo van Breugel wrote: > >> Alternatively, it might indicate an issue in the PyGrass library; that > >> code is relatively new. > > > > > > OK, hopefully the PyGrass gurus can have a look at it. > > Ofcourse I will look into it, but since I need two/three weeks, may be > could a good idea to open a ticket on track, just to not forget this > problem. > Thank you for reporting this. > > Pietro > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Mon Mar 16 14:04:39 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 21:04:39 -0000 Subject: [GRASS-dev] [GRASS GIS] #2628: db.login does not ask for password as PostgreSQL database driver manual page says In-Reply-To: <044.1dbbb5556521dd30a2ae219f05805d24@osgeo.org> References: <044.1dbbb5556521dd30a2ae219f05805d24@osgeo.org> Message-ID: <053.e843fd214a116272825caf7a5b8ebeca@osgeo.org> #2628: db.login does not ask for password as PostgreSQL database driver manual page says --------------------------------+------------------------------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.1.0 Component: Database | Version: svn-trunk Keywords: db.login, postgres | Platform: Linux Cpu: Unspecified | --------------------------------+------------------------------------------- Comment(by neteler): Replying to [ticket:2628 wenzeslaus]: ... > I was not prompted for the password at any point. So it seems that either the manual page is wrong or `db.connect` does not work as expected. The interactive password prompting was removed in r32551. See also comment:6:ticket:1951 > I think that I actually got the `db.tables` error message ("no password supplied") twice as presented above. > > Setting the password in command line works (but of course exposes the password in the bash history file). ... a major security flaw. > I don't think this is related to #2626 or #2627. I don't know if it is related to #1951. > > By the way, ''PostgreSQL DATABASE DRIVER'' title should be probably changed to ''PostgreSQL database driver'' (better typography, no reason for all uppercase). (Not sure where that is but please just fix it). BTW: see also #2147 -- Ticket URL: GRASS GIS From trac at osgeo.org Mon Mar 16 14:10:33 2015 From: trac at osgeo.org (GRASS GIS) Date: Mon, 16 Mar 2015 21:10:33 -0000 Subject: [GRASS-dev] [GRASS GIS] #2626: v.out.ogr does not suggest db.connect and db.login when not set In-Reply-To: <044.c59b2f680c09064736bb9bedd32982c1@osgeo.org> References: <044.c59b2f680c09064736bb9bedd32982c1@osgeo.org> Message-ID: <053.bd6b1914d85c4d5ed0115c575b6ad20d@osgeo.org> #2626: v.out.ogr does not suggest db.connect and db.login when not set -------------------------------------------+-------------------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.1.0 Component: Vector | Version: svn-trunk Keywords: PostgreSQL, postgres, PostGIS | Platform: Linux Cpu: Unspecified | -------------------------------------------+-------------------------------- Comment(by neteler): Small note: The error message comes from OGR, not GRASS GIS (here a random link to a similar problem: http://lists.osgeo.org/pipermail/gdal- dev/2012-November/034530.html). -- Ticket URL: GRASS GIS From neteler at osgeo.org Mon Mar 16 14:16:47 2015 From: neteler at osgeo.org (Markus Neteler) Date: Mon, 16 Mar 2015 22:16:47 +0100 Subject: [GRASS-dev] Fwd: [OSGeo-Discuss] OSGeo Google Summer of Code 2015: Students application period opens today In-Reply-To: References: Message-ID: FYI ---------- Forwarded message ---------- From: Margherita Di Leo Date: Mon, Mar 16, 2015 at 11:52 AM Subject: [OSGeo-Discuss] OSGeo Google Summer of Code 2015: Students application period opens today To: OSGeo-SoC , OSGeo Discussions < discuss at lists.osgeo.org>, ica-osgeo-labs at lists.osgeo.org Dear All, This is a gentle reminder that *student application period opens today* [1]! If you are a *student*, you can now start drafting your application in melange. Do contact the developers of your chosen software, to make sure you will have strong mentor support! Be sure you have read the recommendations for students [2] If you are a *mentor*, please create your profile in melange, then connect with your organization (OSGeo) *indicating in the message for the admins your project and the name of the idea(s) you are mentoring, together with an email address that you wish to use with communication with the mentoring organization*. Such data will be kept private and only handled by GSoC admins. A plus is a link to a mail on public mailing lists, that show that communication with the prospective student has started. Before applying as a mentor, however, we encourage you to familiarize yourself with the guide for mentors [3]. The *deadline* to students applications is *27th March*. [1] Mentor registration will remain open until student acceptance. Please forward this email to all relevant mailing lists of your knowledge. Looking forward to see the first applications in Melange! As usual, contact soc mailing list with your general questions about application with OSGeo. Your OSGeo GSoC admins, Madi and Anne https://www.youtube.com/watch?v=x43JNRR2yZY http://en.wikipedia.org/wiki/Falles#La_Masclet.C3.A0 [1] https://www.google-melange.com/gsoc/events/google/gsoc2015 [2] http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students [3] http://wiki.osgeo.org/wiki/Google_Summer_of_Code_2015_Administrative#A_Mentor.27s_Responsibilities -- Best regards, Dr. Margherita DI LEO Scientific / technical project officer European Commission - DG JRC Institute for Environment and Sustainability (IES) Via Fermi, 2749 I-21027 Ispra (VA) - Italy - TP 261 Tel. +39 0332 78 3600 margherita.di-leo at jrc.ec.europa.eu Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission. _______________________________________________ Discuss mailing list Discuss at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From kratochanna at gmail.com Mon Mar 16 15:05:32 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Mon, 16 Mar 2015 18:05:32 -0400 Subject: [GRASS-dev] R in winGRASS Message-ID: Hi, I am having troubles with running R in winGRASS. I installed R using this tutorial: http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/ In normal windows command line, it works. In GRASS session, I get this when running R: C:\Users\akratoc>R '"\R.exe"' is not recognized as an internal or external command, operable program or batch file. Any idea? Thank you Anna -------------- next part -------------- An HTML attachment was scrubbed... URL: From kratochanna at gmail.com Mon Mar 16 15:12:58 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Mon, 16 Mar 2015 18:12:58 -0400 Subject: [GRASS-dev] R in winGRASS In-Reply-To: References: Message-ID: On Mon, Mar 16, 2015 at 6:05 PM, Anna Petr??ov? wrote: > Hi, > > I am having troubles with running R in winGRASS. I installed R using this > tutorial: > > http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/ > > In normal windows command line, it works. In GRASS session, I get this > when running R: > > C:\Users\akratoc>R > '"\R.exe"' is not recognized as an internal or external command, > operable program or batch file. > > Any idea? > I just read on the wiki, you have to install R first, then GRASS, so I reinstalled GRASS, but still no success. > > Thank you > > Anna > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.vanbreugel at gmail.com Mon Mar 16 15:16:06 2015 From: p.vanbreugel at gmail.com (Paulo van Breugel) Date: Mon, 16 Mar 2015 23:16:06 +0100 Subject: [GRASS-dev] R in winGRASS In-Reply-To: References: Message-ID: Hi Anna, You need to define the path to R. I wrote a short explanation here: https://pvanb.wordpress.com/2014/12/17/access-r-from-grass-gis-on-windows/ Hope that helps, Paulo On Mon, Mar 16, 2015 at 11:12 PM, Anna Petr??ov? wrote: > > > On Mon, Mar 16, 2015 at 6:05 PM, Anna Petr??ov? > wrote: > >> Hi, >> >> I am having troubles with running R in winGRASS. I installed R using this >> tutorial: >> >> http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/ >> >> In normal windows command line, it works. In GRASS session, I get this >> when running R: >> >> C:\Users\akratoc>R >> '"\R.exe"' is not recognized as an internal or external command, >> operable program or batch file. >> >> Any idea? >> > > I just read on the wiki, you have to install R first, then GRASS, so I > reinstalled GRASS, but still no success. > >> >> Thank you >> >> Anna >> >> > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Tue Mar 17 00:32:57 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 17 Mar 2015 07:32:57 -0000 Subject: [GRASS-dev] [GRASS GIS] #2620: r.neighbours should offer to ignore centre value In-Reply-To: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> References: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> Message-ID: <049.951ccf992d7fd059be77665af54bd899@osgeo.org> #2620: r.neighbours should offer to ignore centre value --------------------------+------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: enhancement | Status: new Priority: minor | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: r.neighbours | Platform: Unspecified Cpu: Unspecified | --------------------------+------------------------------------------------- Comment(by marisn): Replying to [comment:4 glynn]: > Replying to [comment:3 marisn]: > > > Second - it is not possible to use weights and circular neighbourhood at the same time (documentation states: "The -c flag and the weights parameter are mutually exclusive.") > > There's no end to the set of masks which could be generated internally; the only question is which ones are common enough to warrant a short-cut. Should there be a vote for and against providing a short-cut for "ignore centre cell"? As r64860 now has a documentation enhancement to clarify current behaviour, this bug also can stay open for longer time and anyone can just then add "me too" comment. -- Ticket URL: GRASS GIS From trac at osgeo.org Tue Mar 17 00:39:06 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 17 Mar 2015 07:39:06 -0000 Subject: [GRASS-dev] [GRASS GIS] #2622: Text interface quits immediately when run from zsh shell In-Reply-To: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> References: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> Message-ID: <048.d43c5ab2c3bf2882d13f56888c628425@osgeo.org> #2622: Text interface quits immediately when run from zsh shell ---------------------+------------------------------------------------------ Reporter: zimmi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 6.4.4 Keywords: zsh | Platform: Unspecified Cpu: x86-64 | ---------------------+------------------------------------------------------ Comment(by marisn): Replying to [comment:6 zimmicz]: > GRASS 7.1 comes from official repo? I'm using zsh 5.0.2 that might be the difference. Just to clarify - I was testing daily SVN checkout on ~AMD64 Gentoo. Have no idea what kind of OS (some BSD?) or GNU/Linux distro reporter had problems with. -- Ticket URL: GRASS GIS From trac at osgeo.org Tue Mar 17 01:21:19 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 17 Mar 2015 08:21:19 -0000 Subject: [GRASS-dev] [GRASS GIS] #2620: r.neighbours should offer to ignore centre value In-Reply-To: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> References: <040.8e39bda35f04329572dde36b6e78bcf2@osgeo.org> Message-ID: <049.3ccd769390a0d29d0e8a34ad0ee6f51d@osgeo.org> #2620: r.neighbours should offer to ignore centre value --------------------------+------------------------------------------------- Reporter: marisn | Owner: grass-dev@? Type: enhancement | Status: new Priority: minor | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: r.neighbours | Platform: Unspecified Cpu: Unspecified | --------------------------+------------------------------------------------- Comment(by pvanbosgeo): Me too (would like such a short-cut) -- Ticket URL: GRASS GIS From trac at osgeo.org Tue Mar 17 01:27:55 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 17 Mar 2015 08:27:55 -0000 Subject: [GRASS-dev] [GRASS GIS] #2629: ERROR: No null file for Message-ID: <044.4631639c7d15d1338d892c4db3069294@osgeo.org> #2629: ERROR: No null file for -------------------------+-------------------------------------------------- Reporter: pvanbosgeo | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Default | Version: svn-releasebranch70 Keywords: | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- Hi Pietro, When running the tiled_function function, described [http://lists.osgeo.org/pipermail/grass-dev/2015-February/074049.html here], I am getting an error. For example, if ref is a list of raster names, and out_ex is the name of the raster layer I want to create: {{{ tiled_function(raster_inputs=ref, raster_output="out_ex", func=mahalanobis_distances) }}} ERROR: No null file for -- Ticket URL: GRASS GIS From p.vanbreugel at gmail.com Tue Mar 17 01:45:59 2015 From: p.vanbreugel at gmail.com (Paulo van Breugel) Date: Tue, 17 Mar 2015 09:45:59 +0100 Subject: [GRASS-dev] r.to.rast3 Message-ID: On the manual page for r.to.rast3, under Notes, it says "If fewer 2D raster maps are provided than depths, the last give 2D map is used to fill up the RASTER3D slices to the top". How do you define the depths? Perhaps related, in Example 2 it says that it "shows how to convert 3 maps into 3d map with 6 layers". Why 6 layers, what determines that 6 layers are created? -------------- next part -------------- An HTML attachment was scrubbed... URL: From soerengebbert at googlemail.com Tue Mar 17 01:49:20 2015 From: soerengebbert at googlemail.com (=?UTF-8?Q?S=C3=B6ren_Gebbert?=) Date: Tue, 17 Mar 2015 09:49:20 +0100 Subject: [GRASS-dev] r.to.rast3 In-Reply-To: References: Message-ID: Hi, you can specify the 3D region with g.region, which includes the top, bottom and res3/tbres settings. These settings define the number of depths. Its the same principle as for row and columns. r3.info will show you the number of depths for a voxel map. Best regards Soeren 2015-03-17 9:45 GMT+01:00 Paulo van Breugel : > On the manual page for r.to.rast3, under Notes, it says "If fewer 2D raster > maps are provided than depths, the last give 2D map is used to fill up the > RASTER3D slices to the top". How do you define the depths? > > Perhaps related, in Example 2 it says that it "shows how to convert 3 maps > into 3d map with 6 layers". Why 6 layers, what determines that 6 layers are > created? > > > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev From p.vanbreugel at gmail.com Tue Mar 17 02:09:18 2015 From: p.vanbreugel at gmail.com (Paulo van Breugel) Date: Tue, 17 Mar 2015 09:09:18 +0000 Subject: [GRASS-dev] r.to.rast3 References: Message-ID: Thanks, clear now :-) Op di 17 mrt. 2015 09:49 schreef S?ren Gebbert : > Hi, > you can specify the 3D region with g.region, which includes the top, > bottom and res3/tbres settings. These settings define the number of > depths. Its the same principle as for row and columns. > > r3.info will show you the number of depths for a voxel map. > > Best regards > Soeren > > 2015-03-17 9:45 GMT+01:00 Paulo van Breugel : > > On the manual page for r.to.rast3, under Notes, it says "If fewer 2D > raster > > maps are provided than depths, the last give 2D map is used to fill up > the > > RASTER3D slices to the top". How do you define the depths? > > > > Perhaps related, in Example 2 it says that it "shows how to convert 3 > maps > > into 3d map with 6 layers". Why 6 layers, what determines that 6 layers > are > > created? > > > > > > > > _______________________________________________ > > grass-dev mailing list > > grass-dev at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hellik at web.de Tue Mar 17 05:36:34 2015 From: hellik at web.de (Helmut Kudrnovsky) Date: Tue, 17 Mar 2015 05:36:34 -0700 (PDT) Subject: [GRASS-dev] R in winGRASS In-Reply-To: References: Message-ID: <1426595794674-5193876.post@n6.nabble.com> Anna Petr??ov? wrote > Hi, > > I am having troubles with running R in winGRASS. I installed R using this > tutorial: > http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/ > > In normal windows command line, it works. In GRASS session, I get this > when > running R: > > C:\Users\akratoc>R > '"\R.exe"' is not recognized as an internal or external command, > operable program or batch file. > > Any idea? > > Thank you > > Anna > > _______________________________________________ > grass-dev mailing list > grass-dev at .osgeo > http://lists.osgeo.org/mailman/listinfo/grass-dev see http://grasswiki.osgeo.org/wiki/R_statistics#GRASS_7_Usage I've added the R-batch files to winGRASS standalone 2 years ago; it worked quite nicely Tested with a daily winGRASS7.1. the R-batch-files are in C:\Program Files (x86)\GRASS GIS 7.1.svn\extrabin and it's the same like your error: outside a winGRASS session it works: C:\Users\xxxxx>cd C:\Program Files (x86)\GRASS GIS 7.1.svn\extrabin C:\Program Files (x86)\GRASS GIS 7.1.svn\extrabin>R R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" Copyright (C) 2014 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) R ist freie Software und kommt OHNE JEGLICHE GARANTIE. Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten. Tippen Sie 'license()' or 'licence()' f?r Details dazu. R ist ein Gemeinschaftsprojekt mit vielen Beitragenden. Tippen Sie 'contributors()' f?r mehr Information und 'citation()', um zu erfahren, wie R oder R packages in Publikationen zitiert werden k?nnen. Tippen Sie 'demo()' f?r einige Demos, 'help()' f?r on-line Hilfe, oder 'help.start()' f?r eine HTML Browserschnittstelle zur Hilfe. Tippen Sie 'q()', um R zu verlassen. > q() Workspace sichern? [y/n/c]: n C:\Program Files (x86)\GRASS GIS 7.1.svn\extrabin> inside a winGRASS session: __________ ___ __________ _______________ / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/ / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \ / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ / \____/_/ |_/_/ |_/____/____/ \____/___//____/ Welcome to GRASS GIS 7.1.svn (r64877) GRASS GIS homepage: http://grass.osgeo.org This version running through: Command Shell (C:\windows\system32\cmd. exe) Help is available with the command: g.manual -i See the licence terms with: g.version -c If required, restart the GUI with: g.gui wxpython When ready to quit enter: exit Launching GUI in the background, please wait... Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\xxxx>R Der Befehl ""\R.exe"" ist entweder falsch geschrieben oder konnte nicht gefunden werden. C:\Users\xxxx> It seems to be broken; I will look into it. ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/R-in-winGRASS-tp5193729p5193876.html Sent from the Grass - Dev mailing list archive at Nabble.com. From trac at osgeo.org Tue Mar 17 06:17:59 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 17 Mar 2015 13:17:59 -0000 Subject: [GRASS-dev] [GRASS GIS] #2622: Text interface quits immediately when run from zsh shell In-Reply-To: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> References: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> Message-ID: <048.c2a5c8ddb797b5095c79a58d5df88b4c@osgeo.org> #2622: Text interface quits immediately when run from zsh shell ---------------------+------------------------------------------------------ Reporter: zimmi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 6.4.4 Keywords: zsh | Platform: Unspecified Cpu: x86-64 | ---------------------+------------------------------------------------------ Comment(by zimmicz): Replying to [comment:8 marisn]: > Replying to [comment:6 zimmicz]: > > GRASS 7.1 comes from official repo? I'm using zsh 5.0.2 that might be the difference. > > Just to clarify - I was testing daily SVN checkout on ~AMD64 Gentoo. > Have no idea what kind of OS (some BSD?) or GNU/Linux distro reporter had problems with. I'm using elementary OS 0.3 Freya based on Ubuntu 14.04. -- Ticket URL: GRASS GIS From neteler at osgeo.org Tue Mar 17 06:40:03 2015 From: neteler at osgeo.org (Markus Neteler) Date: Tue, 17 Mar 2015 14:40:03 +0100 Subject: [GRASS-dev] r.to.rast3 In-Reply-To: References: Message-ID: On Tue, Mar 17, 2015 at 10:09 AM, Paulo van Breugel wrote: > Thanks, clear now :-) Please suggest manual improvements... thanks Markus From hellik at web.de Tue Mar 17 07:00:27 2015 From: hellik at web.de (Helmut Kudrnovsky) Date: Tue, 17 Mar 2015 07:00:27 -0700 (PDT) Subject: [GRASS-dev] R in winGRASS In-Reply-To: References: Message-ID: <1426600827930-5193900.post@n6.nabble.com> Anna Petr??ov? wrote > On Mon, Mar 16, 2015 at 6:05 PM, Anna Petr??ov? < > kratochanna@ > > > wrote: > >> Hi, >> >> I am having troubles with running R in winGRASS. I installed R using this >> tutorial: >> >> http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/ >> >> In normal windows command line, it works. In GRASS session, I get this >> when running R: >> >> C:\Users\akratoc>R >> '"\R.exe"' is not recognized as an internal or external command, >> operable program or batch file. >> >> Any idea? >> > > I just read on the wiki, you have to install R first, then GRASS, so I > reinstalled GRASS, but still no success. > >> >> Thank you >> >> Anna >> >> > > _______________________________________________ > grass-dev mailing list > grass-dev at .osgeo > http://lists.osgeo.org/mailman/listinfo/grass-dev related see: http://trac.osgeo.org/osgeo4w/ticket/413#comment:5 I've prepared the R batch files for including in OSGeo4W; let's hope it will uploaded. ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/R-in-winGRASS-tp5193729p5193900.html Sent from the Grass - Dev mailing list archive at Nabble.com. From trac at osgeo.org Tue Mar 17 10:16:37 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 17 Mar 2015 17:16:37 -0000 Subject: [GRASS-dev] [GRASS GIS] #2629: ERROR: No null file for In-Reply-To: <044.4631639c7d15d1338d892c4db3069294@osgeo.org> References: <044.4631639c7d15d1338d892c4db3069294@osgeo.org> Message-ID: <053.481e9750e904e536e92106cc8ae39e76@osgeo.org> #2629: ERROR: No null file for -------------------------+-------------------------------------------------- Reporter: pvanbosgeo | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Python | Version: svn-releasebranch70 Keywords: pygrass | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- Changes (by neteler): * keywords: => pygrass * component: Default => Python -- Ticket URL: GRASS GIS From kratochanna at gmail.com Tue Mar 17 12:34:45 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Tue, 17 Mar 2015 15:34:45 -0400 Subject: [GRASS-dev] R in winGRASS In-Reply-To: <1426600827930-5193900.post@n6.nabble.com> References: <1426600827930-5193900.post@n6.nabble.com> Message-ID: Hi, I made it work, I reinstalled it and it works now. The first time, I haven't installed it in Program Files because I read somewhere that spaces in path will cause problems for R. Now it's in Program Files and so far everything is running. Is it necessary to install it to Program Files? Thanks for your help. On Tue, Mar 17, 2015 at 10:00 AM, Helmut Kudrnovsky wrote: > Anna Petr??ov? wrote > > On Mon, Mar 16, 2015 at 6:05 PM, Anna Petr??ov? < > > > kratochanna@ > > > > > > wrote: > > > >> Hi, > >> > >> I am having troubles with running R in winGRASS. I installed R using > this > >> tutorial: > >> > >> > http://www.r-bloggers.com/installing-rcpp-on-windows-7-for-r-and-c-integration/ > >> > >> In normal windows command line, it works. In GRASS session, I get this > >> when running R: > >> > >> C:\Users\akratoc>R > >> '"\R.exe"' is not recognized as an internal or external command, > >> operable program or batch file. > >> > >> Any idea? > >> > > > > I just read on the wiki, you have to install R first, then GRASS, so I > > reinstalled GRASS, but still no success. > > > >> > >> Thank you > >> > >> Anna > >> > >> > > > > _______________________________________________ > > grass-dev mailing list > > > grass-dev at .osgeo > > > http://lists.osgeo.org/mailman/listinfo/grass-dev > > related see: http://trac.osgeo.org/osgeo4w/ticket/413#comment:5 > > I've prepared the R batch files for including in OSGeo4W; let's hope it > will > uploaded. > > > > ----- > best regards > Helmut > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/R-in-winGRASS-tp5193729p5193900.html > Sent from the Grass - Dev mailing list archive at Nabble.com. > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Tue Mar 17 14:57:37 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 17 Mar 2015 21:57:37 -0000 Subject: [GRASS-dev] [GRASS GIS] #2622: Text interface quits immediately when run from zsh shell In-Reply-To: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> References: <039.b9a81c757a1d3d86ff0d669f03fa0a69@osgeo.org> Message-ID: <048.1db590ac978730dff460dc7eceeaa009@osgeo.org> #2622: Text interface quits immediately when run from zsh shell ---------------------+------------------------------------------------------ Reporter: zimmi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Startup | Version: 6.4.4 Keywords: zsh | Platform: Unspecified Cpu: x86-64 | ---------------------+------------------------------------------------------ Comment(by neteler): My tests (Fedora 21) are successfull: {{{ rpm -qf /bin/zsh zsh-5.0.7-6.fc21.x86_64 [neteler at oboe ~]$ /bin/zsh [neteler at oboe]~% export SHELL=/bin/zsh [neteler at oboe]~% grass64 -text Cleaning up temporary files ... Starting GRASS ... __________ ___ __________ _______________ / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/ / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \ / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ / \____/_/ |_/_/ |_/____/____/ \____/___//____/ Welcome to GRASS 6.4.5svn (2015) GRASS homepage: http://grass.osgeo.org/ This version running thru: shell (/bin/zsh) Help is available with the command: g.manual -i See the licence terms with: g.version -c Start the GUI with: g.gui wxpython When ready to quit enter: exit [neteler at oboe]~% }}} The same with GRASS GIS 7: {{{ [neteler at oboe ~]$ /bin/zsh [neteler at oboe]~% export SHELL=/bin/zsh [neteler at oboe]~% grass70 -gui Cleaning up temporary files... Starting GRASS GIS... __________ ___ __________ _______________ / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/ / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \ / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ / \____/_/ |_/_/ |_/____/____/ \____/___//____/ Welcome to GRASS GIS 7.0.0svn (r64704M) GRASS GIS homepage: http://grass.osgeo.org This version running through: Z Shell (/bin/zsh) Help is available with the command: g.manual -i See the licence terms with: g.version -c If required, restart the GUI with: g.gui wxpython When ready to quit enter: exit Launching GUI in the background, please wait... [neteler at oboe]~% }}} Both G6 and G7 appear to recognize the zsh properly. -- Ticket URL: GRASS GIS From trac at osgeo.org Tue Mar 17 21:19:17 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 18 Mar 2015 04:19:17 -0000 Subject: [GRASS-dev] [GRASS GIS] #498: r.sun2 commissioning trials In-Reply-To: <040.ef59f3c7a3ddd8ebd1b5656b8b64e485@osgeo.org> References: <040.ef59f3c7a3ddd8ebd1b5656b8b64e485@osgeo.org> Message-ID: <049.d3a11a14d7041576bda4aee317534c58@osgeo.org> #498: r.sun2 commissioning trials --------------------+------------------------------------------------------- Reporter: hamish | Owner: hamish Type: defect | Status: assigned Priority: major | Milestone: 6.4.5 Component: Raster | Version: svn-develbranch6 Keywords: r.sun | Platform: All Cpu: All | --------------------+------------------------------------------------------- Comment(by rorschach): Any updates on this for 7.0.0? Thanks. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 18 05:21:32 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 18 Mar 2015 12:21:32 -0000 Subject: [GRASS-dev] [GRASS GIS] #2630: startup screen i18n Message-ID: <041.8368879cde08bf10da5bf4e5690b2f5d@osgeo.org> #2630: startup screen i18n -------------------------+-------------------------------------------------- Reporter: martinl | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: 7.0.1 Component: Startup | Version: unspecified Keywords: i18n | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- Language settings doesn't affect start up screen. When switching e.g. to 'ja' in GUI settings, GRASS starts with non-localized welcome screen {{{ A language override has been requested. Trying to switch GRASS into 'ko'... Failed to enforce user specified language 'ko' with error: 'unsupported locale s etting' A LANGUAGE environmental variable has been set. Part of messages will be displayed in the requested language. }}} Afterwards GUI starts localized. I remember that it worked in 7.0.0beta3. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 18 05:21:52 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 18 Mar 2015 12:21:52 -0000 Subject: [GRASS-dev] [GRASS GIS] #2630: startup screen i18n In-Reply-To: <041.8368879cde08bf10da5bf4e5690b2f5d@osgeo.org> References: <041.8368879cde08bf10da5bf4e5690b2f5d@osgeo.org> Message-ID: <050.0d0d01e9495a4888c03b9fd6571d9720@osgeo.org> #2630: startup screen i18n -------------------------+-------------------------------------------------- Reporter: martinl | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: 7.0.1 Component: Startup | Version: unspecified Keywords: i18n | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- Description changed by martinl: Old description: > Language settings doesn't affect start up screen. When switching e.g. to > 'ja' in GUI settings, GRASS starts with non-localized welcome screen > > {{{ > A language override has been requested. Trying to switch GRASS into > 'ko'... > Failed to enforce user specified language 'ko' with error: 'unsupported > locale s > etting' > A LANGUAGE environmental variable has been set. > Part of messages will be displayed in the requested language. > }}} > > Afterwards GUI starts localized. I remember that it worked in 7.0.0beta3. New description: Language settings doesn't affect start up screen. When switching e.g. to 'ja' in GUI settings, GRASS starts with non-localized welcome screen {{{ A language override has been requested. Trying to switch GRASS into 'ko'... Failed to enforce user specified language 'ja' with error: 'unsupported locale s etting' A LANGUAGE environmental variable has been set. Part of messages will be displayed in the requested language. }}} Afterwards GUI starts localized. I remember that it worked in 7.0.0beta3. -- -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 18 07:17:26 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 18 Mar 2015 14:17:26 -0000 Subject: [GRASS-dev] [GRASS GIS] #498: r.sun2 commissioning trials In-Reply-To: <040.ef59f3c7a3ddd8ebd1b5656b8b64e485@osgeo.org> References: <040.ef59f3c7a3ddd8ebd1b5656b8b64e485@osgeo.org> Message-ID: <049.f510c2580399f1d83b504d09ab758263@osgeo.org> #498: r.sun2 commissioning trials --------------------+------------------------------------------------------- Reporter: hamish | Owner: hamish Type: defect | Status: assigned Priority: major | Milestone: 7.1.0 Component: Raster | Version: svn-develbranch6 Keywords: r.sun | Platform: All Cpu: All | --------------------+------------------------------------------------------- Changes (by wenzeslaus): * milestone: 6.4.5 => 7.1.0 Comment: Is somebody able to write some tests showing what is wrong and what is correct? It would be important to have these tests no not only to show what is wrong now, but also that the new potential implementation actually fixes the issue and does not break the existing functionality. Read about crating tests here: * http://grass.osgeo.org/grass71/manuals/libpython/gunittest_testing.html -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 18 08:10:27 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 18 Mar 2015 15:10:27 -0000 Subject: [GRASS-dev] [GRASS GIS] #2456: read CSV from GDAL data directory In-Reply-To: <041.942e7128ad75a5be388b3c73592e2442@osgeo.org> References: <041.942e7128ad75a5be388b3c73592e2442@osgeo.org> Message-ID: <050.32c732be5aa7b62f4b49960a7219714d@osgeo.org> #2456: read CSV from GDAL data directory --------------------------------+------------------------------------------- Reporter: martinl | Owner: grass-dev@? Type: task | Status: new Priority: blocker | Milestone: 7.1.0 Component: Projections/Datums | Version: svn-releasebranch70 Keywords: gdal | Platform: Unspecified Cpu: Unspecified | --------------------------------+------------------------------------------- Changes (by neteler): * priority: critical => blocker * version: unspecified => svn-releasebranch70 Comment: We need to solve this, promoting it to blocker. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 18 08:21:35 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 18 Mar 2015 15:21:35 -0000 Subject: [GRASS-dev] [GRASS GIS] #2599: PyGRASS Raster execution error In-Reply-To: <040.86974ff1f25891a0a3c54f5316597a9c@osgeo.org> References: <040.86974ff1f25891a0a3c54f5316597a9c@osgeo.org> Message-ID: <049.fb34f5179cc69455556be80fac8ebd38@osgeo.org> #2599: PyGRASS Raster execution error --------------------+------------------------------------------------------- Reporter: aandre | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: Component: Python | Version: svn-releasebranch70 Keywords: raster | Platform: All Cpu: All | --------------------+------------------------------------------------------- Comment(by aandre): Thank you for your guidance, i attached a Python script that generates the error and the error log. The script is launched with `python /path/to/r.test.py elevation=elev`. `elev` can be any raster map. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 18 10:08:04 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 18 Mar 2015 17:08:04 -0000 Subject: [GRASS-dev] [GRASS GIS] #498: r.sun2 commissioning trials In-Reply-To: <040.ef59f3c7a3ddd8ebd1b5656b8b64e485@osgeo.org> References: <040.ef59f3c7a3ddd8ebd1b5656b8b64e485@osgeo.org> Message-ID: <049.21309a2af701027e8224318ec41122d7@osgeo.org> #498: r.sun2 commissioning trials --------------------+------------------------------------------------------- Reporter: hamish | Owner: hamish Type: defect | Status: assigned Priority: major | Milestone: 7.1.0 Component: Raster | Version: svn-develbranch6 Keywords: r.sun | Platform: All Cpu: All | --------------------+------------------------------------------------------- Comment(by neteler): For a test case, see also #2606 -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 18 10:56:24 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 18 Mar 2015 17:56:24 -0000 Subject: [GRASS-dev] [GRASS GIS] #2606: Bugs in r.sun In-Reply-To: <042.0c578eee7068ec8f15b5021f378c131f@osgeo.org> References: <042.0c578eee7068ec8f15b5021f378c131f@osgeo.org> Message-ID: <051.8c4afff286c0dfc7e478d9efbfb2b9e0@osgeo.org> #2606: Bugs in r.sun ----------------------+----------------------------------------------------- Reporter: ojni0001 | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: unspecified Keywords: r.sun | Platform: MSWindows 7 Cpu: x86-64 | ----------------------+----------------------------------------------------- Comment(by wenzeslaus): Replying to [ticket:2606 ojni0001]: > For testing I have attached a zipped file (simulation for slope 0 to 90, step 10 degrees and for aspect 0 to 360, step 15 degrees) with the script and sample elevation (flat landscape) file. The table may look a bit different but the pattern will be similar. > Can you create a test which would be able to run in a fully automated way? Something like: * source:grass/trunk/temporal/t.rast.accdetect/testsuite General information about writing tests is here: * http://grass.osgeo.org/grass71/manuals/libpython/gunittest_testing.html -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 18 12:40:36 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 18 Mar 2015 19:40:36 -0000 Subject: [GRASS-dev] [GRASS GIS] #2631: Future winGRASS needs python-ply package Message-ID: <044.2c9af22db005013ad484608d5fce9100@osgeo.org> #2631: Future winGRASS needs python-ply package --------------------------------------------------------+------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.1.0 Component: Temporal | Version: svn-trunk Keywords: OSGeo4W, winGRASS, decencies, requirements | Platform: MSWindows 8 Cpu: Unspecified | --------------------------------------------------------+------------------- WinGRASS installer (and OSGeo4W) will need `python-ply` package as specified in the source:grass/trunk/REQUIREMENTS.html: > Python PLY Library (Python Lex-Yacc) ("python-ply", needed for the temporal algebra in tgis) > http://www.dabeaz.com/ply Currently, temporal algebra does not work, see for example this tests result: * http://fatra.cnr.ncsu.edu/grassgistests/mswindows/reports_for_date-2015-02-18-21-00/report_for_nc_spm_08_grass7_nc/lib/python/temporal/unittests_temporal_algebra/index.html The workaround would be to install `python-ply` manually but that's a little bit challenging since winGRASS/OSGeo4W is using its own Python. This is for 7.1 because temporal algebra is only there. So it might be enough to solve it right before 7.1 is released. The `python-ply` requirement is actually listed also for 7.0 but I think its not true: * source:grass/branches/releasebranch_7_0/REQUIREMENTS.html -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 18 13:03:28 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 18 Mar 2015 20:03:28 -0000 Subject: [GRASS-dev] [GRASS GIS] #2631: Future winGRASS needs python-ply package In-Reply-To: <044.2c9af22db005013ad484608d5fce9100@osgeo.org> References: <044.2c9af22db005013ad484608d5fce9100@osgeo.org> Message-ID: <053.88a16f81ab89f14c777a53ee6fc57afe@osgeo.org> #2631: Future winGRASS needs python-ply package --------------------------------------------------------+------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.1.0 Component: Temporal | Version: svn-trunk Keywords: OSGeo4W, winGRASS, decencies, requirements | Platform: MSWindows 8 Cpu: Unspecified | --------------------------------------------------------+------------------- Comment(by martinl): First of all `python-ply` must be introduced to OSGeo4W framework. Please report this issue on their tracker. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 18 13:14:15 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 18 Mar 2015 20:14:15 -0000 Subject: [GRASS-dev] [GRASS GIS] #2631: Future winGRASS needs python-ply package In-Reply-To: <044.2c9af22db005013ad484608d5fce9100@osgeo.org> References: <044.2c9af22db005013ad484608d5fce9100@osgeo.org> Message-ID: <053.658d97a246b5ad4fd3d5a48e2efc4403@osgeo.org> #2631: Future winGRASS needs python-ply package --------------------------------------------------------+------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.1.0 Component: Temporal | Version: svn-trunk Keywords: OSGeo4W, winGRASS, decencies, requirements | Platform: MSWindows 8 Cpu: Unspecified | --------------------------------------------------------+------------------- Comment(by wenzeslaus): Replying to [comment:1 martinl]: > First of all `python-ply` must be introduced to OSGeo4W framework. Please report this issue on their tracker. Done. This ticket now depends on OSGeo4W ticket number 461: * http://trac.osgeo.org/osgeo4w/ticket/461 Any idea about this dependency in 7.0? -- Ticket URL: GRASS GIS From trac at osgeo.org Thu Mar 19 06:51:05 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 19 Mar 2015 13:51:05 -0000 Subject: [GRASS-dev] [GRASS GIS] #2630: startup screen i18n In-Reply-To: <041.8368879cde08bf10da5bf4e5690b2f5d@osgeo.org> References: <041.8368879cde08bf10da5bf4e5690b2f5d@osgeo.org> Message-ID: <050.2551769f7eee1121b4a6b720bf2e88fc@osgeo.org> #2630: startup screen i18n --------------------------+------------------------------------------------- Reporter: martinl | Owner: grass-dev@? Type: defect | Status: closed Priority: major | Milestone: 7.0.1 Component: Startup | Version: unspecified Resolution: invalid | Keywords: i18n Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Changes (by marisn): * status: new => closed * resolution: => invalid Comment: Not a bug. Everything works as expected. Try to select "de" and you will see that it works. The source of problem is - someone (username martinl) decided that English language is the only language that matters and backported startup screen changes (r64496) that touched a lot of strings. (This would be a huge no- no in any large project, like KDE, where breaking strings so close before release is considered to be something like a deadly sin.) As a result - for most of languages GRASS 7.0.0 was shipped with a untranslated welcome screen. -- Ticket URL: GRASS GIS From trac at osgeo.org Thu Mar 19 11:26:33 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 19 Mar 2015 18:26:33 -0000 Subject: [GRASS-dev] [GRASS GIS] #2630: startup screen i18n In-Reply-To: <041.8368879cde08bf10da5bf4e5690b2f5d@osgeo.org> References: <041.8368879cde08bf10da5bf4e5690b2f5d@osgeo.org> Message-ID: <050.b8012e09eef553e8f05e91a8484daded@osgeo.org> #2630: startup screen i18n --------------------------+------------------------------------------------- Reporter: martinl | Owner: grass-dev@? Type: defect | Status: closed Priority: major | Milestone: 7.0.1 Component: Startup | Version: unspecified Resolution: invalid | Keywords: i18n, translations, backports Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Changes (by wenzeslaus): * keywords: i18n => i18n, translations, backports Comment: Replying to [comment:2 marisn]: > Not a bug. Everything works as expected. Try to select "de" and you will see that it works. Are you sure that the error message in the original report is influenced by whether the string is translated or not? The ticket might be still valid. But you are right, it works for me with `de`. However, with `ja` or `ko` I get non-translated start up screen (even Quit and Help are not translated, not only the new strings). The error message (in command line) is: {{{ Failed to enforce user specified language 'ja' with error: 'unsupported locale setting' A LANGUAGE environmental variable has been set. Part of messages will be displayed in the requested language. Cleaning up temporary files... Starting GRASS GIS... }}} The error is coming from source:grass/trunk/lib/init/grass.py#L807: {{{ #!python try: encoding = locale.getpreferredencoding() normalized = locale.normalize('%s.%s' % (language, encoding)) locale.setlocale(locale.LC_ALL, normalized) except locale.Error as e: # If we got so far, attempts to set up language and locale have failed # on this system sys.stderr.write("Failed to enforce user specified language '%s' with error: '%s'\n" % (language, e)) sys.stderr.write("A LANGUAGE environmental variable has been set.\nPart of messages will be displayed in the requested language.\n") # Even if setting locale will fail, let's set LANG in a hope, # that UI will use it GRASS texts will be in selected language, # system messages (i.e. OK, Cancel etc.) - in system default # language os.environ['LANGUAGE'] = language return }}} > The source of problem is - someone (username martinl) decided that English language is the only language that matters and backported startup screen changes (r64496) that touched a lot of strings. (This would be a huge no-no in any large project, like KDE, where breaking strings so close before release is considered to be something like a deadly sin.) As a result - for most of languages GRASS 7.0.0 was shipped with a untranslated welcome screen. This makes sense but I think we miss somebody who would check that people fulfill this rule when backports are done before release. Also writing it down is a good idea. This is the right place to do it: wiki:Submitting/General -- Ticket URL: GRASS GIS From trac at osgeo.org Thu Mar 19 11:30:26 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 19 Mar 2015 18:30:26 -0000 Subject: [GRASS-dev] [GRASS GIS] #2458: testsuite: cosmetics for percentage output In-Reply-To: <041.75c51d588f7d1cd341b838f4e20d303e@osgeo.org> References: <041.75c51d588f7d1cd341b838f4e20d303e@osgeo.org> Message-ID: <050.d7c929d016e23e804be3e82f79352757@osgeo.org> #2458: testsuite: cosmetics for percentage output --------------------------+------------------------------------------------- Reporter: neteler | Owner: grass-dev@? Type: enhancement | Status: closed Priority: normal | Milestone: 7.1.0 Component: Tests | Version: svn-trunk Resolution: fixed | Keywords: percentage, formatting Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Changes (by wenzeslaus): * status: new => closed * resolution: => fixed * milestone: 7.0.0 => 7.1.0 Comment: Done in r64886. The variable `GRASS_MESSAGE_FORMAT` is set for each particular test whose stdout and stderr are part of the report. -- Ticket URL: GRASS GIS From trac at osgeo.org Thu Mar 19 12:19:10 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 19 Mar 2015 19:19:10 -0000 Subject: [GRASS-dev] [GRASS GIS] #2630: startup screen i18n In-Reply-To: <041.8368879cde08bf10da5bf4e5690b2f5d@osgeo.org> References: <041.8368879cde08bf10da5bf4e5690b2f5d@osgeo.org> Message-ID: <050.77cd05a2907876aa4068b00fdadf1f16@osgeo.org> #2630: startup screen i18n --------------------------+------------------------------------------------- Reporter: martinl | Owner: grass-dev@? Type: defect | Status: reopened Priority: major | Milestone: 7.0.1 Component: Startup | Version: unspecified Resolution: | Keywords: i18n, translations, backports Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Changes (by martinl): * status: closed => reopened * resolution: invalid => Comment: Replying to [comment:3 wenzeslaus]: > But you are right, it works for me with `de`. However, with `ja` or `ko` I get non-translated start up screen (even Quit and Help are not translated, not only the new strings). The error message (in command line) is: {{{ > Failed to enforce user specified language 'ja' with error: 'unsupported locale setting' > A LANGUAGE environmental variable has been set. > Part of messages will be displayed in the requested language. > Cleaning up temporary files... > Starting GRASS GIS... }}} re-opening... -- Ticket URL: GRASS GIS From trac at osgeo.org Thu Mar 19 12:20:34 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 19 Mar 2015 19:20:34 -0000 Subject: [GRASS-dev] [GRASS GIS] #2630: startup screen i18n In-Reply-To: <041.8368879cde08bf10da5bf4e5690b2f5d@osgeo.org> References: <041.8368879cde08bf10da5bf4e5690b2f5d@osgeo.org> Message-ID: <050.60a75ec08a483459a423368377683c5d@osgeo.org> #2630: startup screen i18n --------------------------+------------------------------------------------- Reporter: martinl | Owner: grass-dev@? Type: defect | Status: reopened Priority: major | Milestone: 7.0.1 Component: Startup | Version: unspecified Resolution: | Keywords: i18n, translations, backports Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Comment(by martinl): Replying to [comment:2 marisn]: > The source of problem is - someone (username martinl) decided that English language is the only language that matters and backported startup screen changes (r64496) that touched a lot of strings. (This would be a huge no-no in any large project, like KDE, where breaking strings so close before release is considered to be something like a deadly sin.) As a result - for most of languages GRASS 7.0.0 was shipped with a untranslated welcome screen. It's still better to ship the new startup screen than the old version. It's quite simple answer. -- Ticket URL: GRASS GIS From p.vanbreugel at gmail.com Thu Mar 19 14:15:23 2015 From: p.vanbreugel at gmail.com (Paulo van Breugel) Date: Thu, 19 Mar 2015 22:15:23 +0100 Subject: [GRASS-dev] r.to.rast3 In-Reply-To: References: Message-ID: On Tue, Mar 17, 2015 at 2:40 PM, Markus Neteler wrote: > On Tue, Mar 17, 2015 at 10:09 AM, Paulo van Breugel > wrote: > > Thanks, clear now :-) > > Please suggest manual improvements... > > thanks > Markus > I have no experience using the 3D rasters, so I will keep it to some more generic suggestions: Perhaps a suggestion would be to start both examples with a line in which the region in set, e.g., g.region b=0 t=600 tbres=100 res3=100 In the description, perhaps adding more explicitly that one needs to take care to set the 3d region settings, including number or layers and depth of layer, with g.region. -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Fri Mar 20 05:53:59 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 20 Mar 2015 12:53:59 -0000 Subject: [GRASS-dev] [GRASS GIS] #2632: option in context menu to export vector attribute table Message-ID: <044.120895a8d302ba5fbac0d2f2cb786682@osgeo.org> #2632: option in context menu to export vector attribute table -------------------------+-------------------------------------------------- Reporter: pvanbosgeo | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Default | Version: unspecified Keywords: | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- To export a vector attribute table, one can use v.db.select. No problem, except that it isn't terribly intuitive. Especially for new users, having an option to export the attribute table in the context menu (right mouse click) would make this easier to find. The name should probably something like "export attribute table", while it could open the v.db.select window (or possibly a simplified version of it). -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 20 09:25:14 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 20 Mar 2015 16:25:14 -0000 Subject: [GRASS-dev] [GRASS GIS] #2633: dead link from GRASS web site Message-ID: <038.b425352d9b81a7089eaea566f4c77d10@osgeo.org> #2633: dead link from GRASS web site -------------------------+-------------------------------------------------- Reporter: Madi | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: Website Component: Website | Version: unspecified Keywords: website | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- The link (from the top bar) to press releases http://grass.osgeo.org/home /press-releases/ is broken, and press releases in general are hard to find, if i look for a common parent path, for example the root of http://grass.osgeo.org/news/33/84/Press-release-GRASS-GIS-Community- Sprint-2014-in-Vienna/ http://grass.osgeo.org/news will give Page not found (404) All this because i was looking for the press release of community sprints and didn't find Portland, I wanted to link it from the wiki page http://grasswiki.osgeo.org/wiki/GRASS_Community_Sprint_Portland_2014 thanks madi -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 20 10:00:03 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 20 Mar 2015 17:00:03 -0000 Subject: [GRASS-dev] [GRASS GIS] #2633: dead link from GRASS web site In-Reply-To: <038.b425352d9b81a7089eaea566f4c77d10@osgeo.org> References: <038.b425352d9b81a7089eaea566f4c77d10@osgeo.org> Message-ID: <047.b5f5b9dfee10840b14615eb243a2ec30@osgeo.org> #2633: dead link from GRASS web site --------------------------+------------------------------------------------- Reporter: Madi | Owner: grass-dev@? Type: defect | Status: closed Priority: normal | Milestone: Website Component: Website | Version: unspecified Resolution: fixed | Keywords: website Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Changes (by neteler): * status: new => closed * resolution: => fixed Comment: Replying to [ticket:2633 Madi]: > The link (from the top bar) to press releases http://grass.osgeo.org/home/press-releases/ is broken, ... now fixed. But note that that page is no longer updated since 2012 due to having the news box. > and press releases in general are hard to find, if i look for a common parent path, for example the root of > > http://grass.osgeo.org/news/33/84/Press-release-GRASS-GIS-Community- Sprint-2014-in-Vienna/ > > http://grass.osgeo.org/news will give > Page not found (404) Yes, there is no such thing. > All this because i was looking for the press release of community sprints and didn't find Portland, I wanted to link it from the wiki page http://grasswiki.osgeo.org/wiki/GRASS_Community_Sprint_Portland_2014 ok, I found a simple solution to it, following http://docs.cmsmadesimple.org/modules/core/news Now all recent news are finally shown here as well: http://grass.osgeo.org/home/press-releases/ -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 20 11:13:37 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 20 Mar 2015 18:13:37 -0000 Subject: [GRASS-dev] [GRASS GIS] #2579: Specify command to be exectued as parameter of grass command In-Reply-To: <044.1dbbd61632ffa6aa61ae42740555b3ef@osgeo.org> References: <044.1dbbd61632ffa6aa61ae42740555b3ef@osgeo.org> Message-ID: <053.012ad8e58273036a6e2282e4ae3c814d@osgeo.org> #2579: Specify command to be exectued as parameter of grass command ----------------------------------------------+----------------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.1.0 Component: Startup | Version: svn-trunk Keywords: batch job, GRASS_BATCH_JOB, init | Platform: All Cpu: Unspecified | ----------------------------------------------+----------------------------- Comment(by wenzeslaus): Setting up the session manually is really challenging, [http://grasswiki.osgeo.org/w/index.php?title=Working_with_GRASS_without_starting_it_explicitly&diff=next&oldid=20818 setting up addons path] is yet another step which should be done if you want have fully working session: {{{ #!diff + # add path to GRASS addons + home = os.path.expanduser("~") + os.environ['PATH'] += os.pathsep + os.path.join(home, '.grass7', 'addons', 'scripts') }}} Any other opinions about how the command line interface should look like? Use cases would be also appreciated. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 20 12:25:59 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 20 Mar 2015 19:25:59 -0000 Subject: [GRASS-dev] [GRASS GIS] #2579: Specify command to be exectued as parameter of grass command In-Reply-To: <044.1dbbd61632ffa6aa61ae42740555b3ef@osgeo.org> References: <044.1dbbd61632ffa6aa61ae42740555b3ef@osgeo.org> Message-ID: <053.37f3d2ca9e538f7361e5f6b31925813d@osgeo.org> #2579: Specify command to be exectued as parameter of grass command ----------------------------------------------+----------------------------- Reporter: wenzeslaus | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.1.0 Component: Startup | Version: svn-trunk Keywords: batch job, GRASS_BATCH_JOB, init | Platform: All Cpu: Unspecified | ----------------------------------------------+----------------------------- Comment(by wenzeslaus): Replying to [comment:8 rkrug]: > Some remarks concerning the syntax: > > 1) I don't like the idea of having to repeat the mapset each time as it will require quite a bit of typing and possible errors in longer scripts. So the assumption to use the mapset which is in the rc file (i.e., if I am correct, the one used before), would be quite useful. > I have two use cases which were not mentioned. Testing framework which does not have particluar requirements on command line syntax but you run just one command/script, so you probably want to set `Database/Location/Mapset` in one command. And then it is [https://www.docker.com/ Docker] where setting of the `Database/Location/Mapset` in/with the command itself seems to be really important because you create a new instance with the command: {{{ docker run user/grass-system grass70 --mapset ~/grassdata/nc_spm_08_grass7/user1 .../script.sh with parameters docker run user/grass-system grass70 --mapset ~/grassdata/nc_spm_08_grass7/user1 g.gisenv docker run user/grass-system grass70 --mapset ~/grassdata/nc_spm_08_grass7/user1 r.mapcalc "aaa = 5" docker run user/grass-system grass70 --mapset ~/grassdata/nc_spm_08_grass7/user1 r.info map=aaa }}} or following my initial suggestion: {{{ docker run user/grass-system grass70 --mapset ~/grassdata/nc_spm_08_grass7/user1 --batch .../script.sh with parameters docker run user/grass-system grass70 --mapset ~/grassdata/nc_spm_08_grass7/user1 --batch g.gisenv docker run user/grass-system grass70 --mapset ~/grassdata/nc_spm_08_grass7/user1 --batch r.mapcalc "aaa = 5" docker run user/grass-system grass70 --mapset ~/grassdata/nc_spm_08_grass7/user1 --batch r.info map=aaa }}} or similarly to Docker: {{{ docker run user/grass-system grass70 run --mapset=~/grassdata/nc_spm_08_grass7/user1 .../script.sh with parameters docker run user/grass-system grass70 run --mapset=~/grassdata/nc_spm_08_grass7/user1 g.gisenv docker run user/grass-system grass70 run --mapset=~/grassdata/nc_spm_08_grass7/user1 r.mapcalc "aaa = 5" docker run user/grass-system grass70 run --mapset=~/grassdata/nc_spm_08_grass7/user1 r.info map=aaa }}} where `run` can be replaced by something different (`exec`, `batch`, `do`, `cmd`, `script`) in order to provide nice syntax also for the alternative usage described see below. Note that `--mapset` is not (does not have to be) mandatory, it can just use the last Mapset as stored in `$HOME/.grass7/rc`. Docker [https://docs.docker.com/reference/run/ general run syntax] is by the way: {{{ docker run [OPTIONS] IMAGE[:TAG] [COMMAND] [ARG...] }}} Docker has the advantage that `IMAGE` is mandatory while in GRASS GIS, `Mapset` or `command` would be required (none, one, or both are possible). > 2) Instead of using the normal `grass` command, I would suggest to introduce a new command(e.g. {{{ggrassbatch}}}), which is taking only one parameter: the command to be executed including the parameter. So it could be used as > {{{ grassbatch r.info }}} > This would be similar to `Rscript` command (as opposed to `R CMD` syntax). However, the nested commands seems to be quite common (although now I can remember just revision control systems and docker). But basically `grassbatch` and `grass batch` are very similar. > 3) The function {{{grassbatch}}} should accept, in addition to the normal grass commands, one more command named e.g. {{{set.mapset}}} which is only doing one thing, setting the mapset in the rc file, so this would be the mapset to be used for all following {{{grassbatch}}} commands, unless the mapset is changed. > > So a script could look as followed: {{{ grassbatch set.mapset ~/grassdata/nc_spm_08_grass7/user1 grassbatch .../test_script.sh grassbatch r.info grassbatch r.mapcalc "aaa = 5" }}} This goes to my other suggestion (in description or in [wiki:GSoC/2015 #Neweasy-to-usecommandlineinterfaceforGRASSGIS GSoC ideas]), particularly a basic version of it. I think that there are good reasons to have both of them. Some use cases (Docker, testing framework, Cron jobs) push more for the single-command syntax, while user scripts and things which typically needs to import and export data (QGIS, WPS) would benefit more from this multi-command syntax. Where would you expect the current `GISRC` file to be? The runtime one is now in "`/tmp`" (`/tmp/grass7-user-number/gisrc`) while the initial one (from where `Database/Location/Mapset` is taken if not provided in command line) is in `$HOME/.grass7/rc`. My idea was to have it in the current directory (or possibly also specified in command line), so that it does not interfere with the one in `$HOME` which is the use case I expect. If we spend some time figuring out this, I think we can save a lot of time in a long run on the support, see for example recent post on the [http://lists.osgeo.org/pipermail/grass-user/2015-March/072068.html grass- user mailing list] ([http://osgeo-org.1560.x6.nabble.com/Using-GRASS-6 -without-starting-it-Python-td5191943.html nabble link]). -- Ticket URL: GRASS GIS From nik at nikosalexandris.net Fri Mar 20 13:07:56 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Fri, 20 Mar 2015 22:07:56 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily Message-ID: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> Hi list, @Anna, @Vaclac is there interest to add support for the Linke Turbidity (as an input) to the r.sun.daily script? Nikos From neteler at osgeo.org Fri Mar 20 13:26:44 2015 From: neteler at osgeo.org (Markus Neteler) Date: Fri, 20 Mar 2015 21:26:44 +0100 Subject: [GRASS-dev] r.to.rast3 In-Reply-To: References: Message-ID: On Thu, Mar 19, 2015 at 10:15 PM, Paulo van Breugel wrote: > On Tue, Mar 17, 2015 at 2:40 PM, Markus Neteler wrote: >> >> On Tue, Mar 17, 2015 at 10:09 AM, Paulo van Breugel >> wrote: >> > Thanks, clear now :-) >> >> Please suggest manual improvements... >> >> >> thanks >> Markus > > > I have no experience using the 3D rasters, so I will keep it to some more > generic suggestions: > > Perhaps a suggestion would be to start both examples with a line in which > the region in set, e.g., g.region b=0 t=600 tbres=100 res3=100 > > In the description, perhaps adding more explicitly that one needs to take > care to set the 3d region settings, including number or layers and depth of > layer, with g.region. I have made an attempt in https://trac.osgeo.org/grass/changeset/64889 Markus From wenzeslaus at gmail.com Fri Mar 20 13:27:21 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Fri, 20 Mar 2015 16:27:21 -0400 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> Message-ID: Hi Nikos, On Fri, Mar 20, 2015 at 4:07 PM, Nikos Alexandris wrote: > Hi list, @Anna, @Vaclac > > is there interest to add support for the Linke Turbidity (as an input) to > the r.sun.daily script? > > there certainly is interest is that (although not from me :-). I just don't have time to do it. You might be able to add it there. I can do the code review then. Vaclav > Nikos > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nik at nikosalexandris.net Fri Mar 20 13:41:42 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Fri, 20 Mar 2015 22:41:42 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> Message-ID: On 20.03.2015 22:27, Vaclav Petras wrote: > Hi Nikos, > > On Fri, Mar 20, 2015 at 4:07 PM, Nikos Alexandris > > wrote: > >> Hi list, @Anna, @Vaclac >> >> is there interest to add support for the Linke Turbidity (as an >> input) to >> the r.sun.daily script? >> >> there certainly is interest is that (although not from me :-). I >> just > don't have time to do it. You might be able to add it there. I can do > the > code review then. On-sight, looks as easy as adding another parameter update along with the necessary additions which an update like this will require to the rest of the script. If I retouch the script, may I replace globally, wherever applicable, the "%s" % var stuff with '{s}'.format(s=var} ? Nikos From wenzeslaus at gmail.com Fri Mar 20 13:53:31 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Fri, 20 Mar 2015 16:53:31 -0400 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> Message-ID: On Fri, Mar 20, 2015 at 4:41 PM, Nikos Alexandris wrote: > On 20.03.2015 22:27, Vaclav Petras wrote: > >> Hi Nikos, >> >> On Fri, Mar 20, 2015 at 4:07 PM, Nikos Alexandris < >> nik at nikosalexandris.net> >> wrote: >> >> Hi list, @Anna, @Vaclac >>> >>> is there interest to add support for the Linke Turbidity (as an input) to >>> the r.sun.daily script? >>> >>> there certainly is interest is that (although not from me :-). I just >>> >> don't have time to do it. You might be able to add it there. I can do the >> code review then. >> > > On-sight, looks as easy as adding another parameter update along with the > necessary additions which an update like this will require to the rest of > the script. > > There is some simple test (pre-dating testing framework), so you can also try to update that. At least add there the new option combinations you will add. > If I retouch the script, may I replace globally, wherever applicable, the > "%s" % var stuff with '{s}'.format(s=var} ? > > Yes please! My approach (usually) is to use %s when there is one item and format() for more items. But generally, format() seems the best choice. > Nikos > -------------- next part -------------- An HTML attachment was scrubbed... URL: From neteler at osgeo.org Sat Mar 21 03:21:37 2015 From: neteler at osgeo.org (Markus Neteler) Date: Sat, 21 Mar 2015 11:21:37 +0100 Subject: [GRASS-dev] Planning GRASS GIS 6.4.5 release In-Reply-To: References: Message-ID: Hi Markus, On Fri, Mar 6, 2015 at 8:26 AM, Markus Metz wrote: > On Thu, Mar 5, 2015 at 3:04 PM, Markus Neteler wrote: >> On Thu, Mar 5, 2015 at 11:27 AM, Martin Landa wrote: >>> 2015-03-05 11:17 GMT+01:00 Markus Neteler : >>>> Step 2 (day X) - Soft freeze of release branch: suggestion 20 March 2015 >>> >>> why not soft freeze since today? Are expecting some heavy changes in >>> this branch? >> >> AFAIK the backport of the topology fixes. > > Yes. I want to do the backports next week. I saw that you updated the G6 vector lib, did this include the planned backports? Just to understand for the planning. thanks markusN From nik at nikosalexandris.net Sat Mar 21 03:49:32 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Sat, 21 Mar 2015 12:49:32 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> Message-ID: <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> While working on the script, I'd like to understand if the "gisprompt" line is correct: #%option #% key: linke #% key_desc: key description here #% type: string #% label: label here #% gisprompt: old,fcell,raster #% description: Name of the Linke atmospheric turbidity coefficient input raster map #% required : no #%end According to : "...three comma-separated (no spaces allowed) sub-arguments..." and "Second argument: ...should be the name of one of the standard subdirectories of the mapset, as listed in $GISBASE/etc/element_list." Since Linke Turbidity ranges in [0, 7.0], "fcell" shoulb be correct here. Also, does it matter if a map is DCELL or FCELL, regarding the "element"? Either will be stored inside the "fcell" directory, right? Nikos From trac at osgeo.org Sat Mar 21 04:22:13 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 21 Mar 2015 11:22:13 -0000 Subject: [GRASS-dev] [GRASS GIS] #2634: 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte Message-ID: <040.ddffd039a8a7ec2a9a96ea379b67f27f@osgeo.org> #2634: 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte ------------------------+--------------------------------------------------- Reporter: hellik | Owner: grass-dev@? Type: defect | Status: new Priority: major | Milestone: 7.1.0 Component: Default | Version: svn-trunk Keywords: utf, wxgui | Platform: MSWindows 7 Cpu: x86-32 | ------------------------+--------------------------------------------------- taken from the ML http://lists.osgeo.org/pipermail/grass-dev/2015-March/074529.html {{{ GRASS Version: 7.1.svn GRASS SVN revision: 64858 Build date: 2015-03-15 Build platform: i686-pc-mingw32 GDAL: 1.11.2 PROJ.4: 4.8.0 GEOS: 3.4.2 SQLite: 3.7.17 Python: 2.7.4 wxPython: 2.8.12.1 Platform: Windows-7-6.1.7601-SP1 (OSGeo4W) }}} {{{ a ms windows error message window: 'utf8' codec can't decode byte 0xf6 in position 8: invalid start byte pops up when invoking e.g. d.vect r.slope.aspect ... and following error message: Traceback (most recent call last): File "C:\OSGEO4~2\apps\grass\grass-7.1.svn\gui\wxpython\gu i_core\forms.py", line 2054, in OnUpdateDialog self.parent.updateValuesHook() File "C:\OSGEO4~2\apps\grass\grass-7.1.svn\gui\wxpython\gu i_core\forms.py", line 628, in updateValuesHook self.SetStatusText(' '.join(self.notebookpanel.createCmd(ignoreErrors = True))) TypeError }}} http://lists.osgeo.org/pipermail/grass-dev/2015-March/074540.html {{{ interesting: _no_ problems with commands like e.g.: g.region g.mapset g.access g.gisenv g.extension problems with commands like e.g.: r.slope.aspect d.vect r.watershed r.neigbhours v.parallel ... }}} also tested on another machine: {{{ System Info GRASS Version: 7.1.svn GRASS SVN revision: 64889 Build date: 2015-03-21 Build platform: i686-pc-mingw32 GDAL: 1.11.2 PROJ.4: 4.8.0 GEOS: 3.4.2 SQLite: 3.7.17 Python: 2.7.4 wxPython: 2.8.12.1 Platform: Windows-Vista-6.0.6002-SP2 (OSGeo4W) }}} the same error -- Ticket URL: GRASS GIS From wenzeslaus at gmail.com Sat Mar 21 09:44:32 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Sat, 21 Mar 2015 12:44:32 -0400 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> Message-ID: On Sat, Mar 21, 2015 at 6:49 AM, Nikos Alexandris wrote: > While working on the script, I'd like to understand if the "gisprompt" > line is correct: > > #%option > #% key: linke > #% key_desc: key description here > #% type: string > #% label: label here > > #% gisprompt: old,fcell,raster > > #% description: Name of the Linke atmospheric turbidity coefficient input > raster map > #% required : no > #%end > > > This does not seem correct. Run r.sun --script and you will get what should be there.But note that the output is suboptimal because it is listing all the details and it is not using standard options, so look which standard options you can use (e.g. OPT_R_INPUT). It would be good if you can look to r.sun which other options you can include. According to gislib_cmdline_parsing.html#gisprompt_Member>: > "...three comma-separated (no spaces allowed) sub-arguments..." and > "Second argument: ...should be the name of one of the standard > subdirectories of the mapset, as listed in $GISBASE/etc/element_list." > > Since Linke Turbidity ranges in [0, 7.0], "fcell" shoulb be correct here. > Also, does it matter if a map is DCELL or FCELL, regarding the "element"? > Either will be stored inside the "fcell" directory, right? > > Nikos > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nik at nikosalexandris.net Sat Mar 21 11:24:58 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Sat, 21 Mar 2015 20:24:58 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> Message-ID: <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> Nikos Alexandris > While working on the script, I'd like to understand if the >> "gisprompt" line is correct: >> #%option >> #% key: linke >> #% key_desc: key description here >> #% type: string >> #% label: label here >> #% gisprompt: old,fcell,raster >> #% description: Name of the Linke atmospheric turbidity coefficient >> input >> raster map >> #% required : no >> #%end Vaclav Petras wrote: > This does not seem correct. Run > > r.sun --script Hmm, ok. Still, why "cell" for Linke-T? Linke-Ts are floats. > and you will get what should be there. But note that the output is > suboptimal because it is listing all the details and it is not using > standard options, so look which standard options you can use (e.g. > OPT_R_INPUT). I will try. > It would be good if you can look to r.sun which other options you can > include. I am. I am also renaming stuff, eg slope_in to slope. I guess this is wanted. Nikos > According to > gislib_cmdline_parsing.html#gisprompt_Member>: >> "...three comma-separated (no spaces allowed) sub-arguments..." and >> "Second argument: ...should be the name of one of the standard >> subdirectories of the mapset, as listed in >> $GISBASE/etc/element_list." >> >> Since Linke Turbidity ranges in [0, 7.0], "fcell" shoulb be correct >> here. >> Also, does it matter if a map is DCELL or FCELL, regarding the >> "element"? >> Either will be stored inside the "fcell" directory, right? From wenzeslaus at gmail.com Sat Mar 21 12:06:53 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Sat, 21 Mar 2015 15:06:53 -0400 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> Message-ID: On Sat, Mar 21, 2015 at 2:24 PM, Nikos Alexandris wrote: > > It would be good if you can look to r.sun which other options you can >> include. >> > > I am. I am also renaming stuff, eg slope_in to slope. I guess this is > wanted. It should be slope (and slope_value) in the options but I think that's already true. How the variables in the script are named is not as important. It's nice when they are consistent with inputs but there can be some reasons for the opposite. -------------- next part -------------- An HTML attachment was scrubbed... URL: From neteler at osgeo.org Sat Mar 21 12:09:07 2015 From: neteler at osgeo.org (Markus Neteler) Date: Sat, 21 Mar 2015 20:09:07 +0100 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> Message-ID: On Sat, Mar 21, 2015 at 7:24 PM, Nikos Alexandris wrote: > Nikos Alexandris >> #% description: Name of the Linke atmospheric turbidity coefficient input >>> raster map >>> #% required : no >>> #%end > > > Vaclav Petras wrote: > >> This does not seem correct. Run >> >> r.sun --script > > Hmm, ok. Still, why "cell" for Linke-T? Linke-Ts are floats. Where do you see that "cell"? r.sun --script ... #%option #% key: linke_value #% type: double #% required: no #% multiple: no #% description: A single value of the Linke atmospheric turbidity coefficient [-] #% answer: 3.0 #% guisection: Input #%end ... Markus From nik at nikosalexandris.net Sat Mar 21 12:24:27 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Sat, 21 Mar 2015 21:24:27 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> Message-ID: Nikos Alexandris wrote: > ... >>>> #% description: Name of the Linke atmospheric turbidity >>>> coefficient input >>>> raster map >>>> #% required : no >>>> #%end Vaclav Petras wrote: >>> This does not seem correct. Run >>> r.sun --script Nikos Alexandris: >> Hmm, ok. Still, why "cell" for Linke-T? Linke-Ts are floats. Markus Neteler wrote: > Where do you see that "cell"? > > r.sun --script > ... > #%option > #% key: linke_value > #% type: double > #% required: no > #% multiple: no > #% description: A single value of the Linke atmospheric turbidity > coefficient [-] > #% answer: 3.0 > #% guisection: Input > #%end > ... Yes, linke_value is a single value. Yet, just *above* that: #%option #% key: linke #% type: string #% required: no #% multiple: no #% description: Name of the Linke atmospheric turbidity coefficient input raster map [-] #% gisprompt: old,cell,raster #% guisection: Input #%end "linke" is for raster maps as input. Some are here : eg. . The values in this maps (and the rest of the kind) are multiplied by 20, see . Unfortunately, they aren't GeoTIFFs, I think. I am trying to find out how to get'em appropriately georeferenced. Nikos From neteler at osgeo.org Sat Mar 21 12:35:33 2015 From: neteler at osgeo.org (Markus Neteler) Date: Sat, 21 Mar 2015 20:35:33 +0100 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> Message-ID: On Sat, Mar 21, 2015 at 8:24 PM, Nikos Alexandris wrote: > Nikos Alexandris wrote: ... >>> Hmm, ok. Still, why "cell" for Linke-T? Linke-Ts are floats. ... >> r.sun --script ... > #%option > #% key: linke > #% type: string > #% required: no > #% multiple: no > #% description: Name of the Linke atmospheric turbidity coefficient input > raster map [-] > #% gisprompt: old,cell,raster > #% guisection: Input > #%end > > "linke" is for raster maps as input. Yes, I used that (also with the SODA maps). You are confusing at time the precision CELL (= integer) and "cell" (historically used for "raster" maps as opposed to "vector" map: http://grass.osgeo.org/programming7/gislib_cmdline_parsing.html#gisprompt_Member "new,cell,raster" G_open_new("cell", "map") "old,vector,vector" G_open_old("vector", "map") ... this cell is not related to precision but means raster map which can well be a floating point map. HTH Markus From nik at nikosalexandris.net Sat Mar 21 12:51:02 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Sat, 21 Mar 2015 21:51:02 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> Message-ID: <01fb7c9a50f8f72ff5983df9a8a6d47e@nikosalexandris.net> Nikos Alexandris: > ... >>>> Hmm, ok. Still, why "cell" for Linke-T? Linke-Ts are floats. > ... >>> r.sun --script > ... >> #%option >> #% key: linke >> #% type: string >> #% required: no >> #% multiple: no >> #% description: Name of the Linke atmospheric turbidity coefficient >> input >> raster map [-] >> #% gisprompt: old,cell,raster >> #% guisection: Input >> #%end >> "linke" is for raster maps as input. Markus Neteler wrote: > Yes, I used that (also with the SODA maps). > You are confusing at time the precision CELL (= integer) and "cell" > (historically used for "raster" maps as opposed to "vector" map: > > http://grass.osgeo.org/programming7/gislib_cmdline_parsing.html#gisprompt_Member > > "new,cell,raster" G_open_new("cell", "map") > "old,vector,vector" G_open_old("vector", "map") > > ... this cell is not related to precision but means raster map which > can well be a floating point map. > > HTH > Markus Yes, this helps. I was confused by "...(i.e. if the option has "new,cell,...", it will look in the "cell" directory)". Creating a float-raster (FCELL) or double-raster (DCELL), creates an "fcell" directory. So, according to the comment, I thought that it should be "fcell" in this case. Thanks, N ps- Something like "gdal_translate -of GTiff -a_ullr ullat ullon lrlat lelon in.tif out.tif" is the right way for non-GeoTIFFs, right? From nik at nikosalexandris.net Sat Mar 21 13:00:30 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Sat, 21 Mar 2015 22:00:30 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <01fb7c9a50f8f72ff5983df9a8a6d47e@nikosalexandris.net> References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <01fb7c9a50f8f72ff5983df9a8a6d47e@nikosalexandris.net> Message-ID: <13388c584d27b62be0cbeb11ffeed607@nikosalexandris.net> On 21.03.2015 21:51, Nikos Alexandris wrote: .. > > ps- Something like "gdal_translate -of GTiff -a_ullr ullat ullon > lrlat lelon in.tif out.tif" is the right way for non-GeoTIFFs, right? The correct one is "-a_ullr ulx uly lrx lry". The one above is obviously wrong (or old? see suggestion at ). Nikos From neteler at osgeo.org Sat Mar 21 13:38:51 2015 From: neteler at osgeo.org (Markus Neteler) Date: Sat, 21 Mar 2015 21:38:51 +0100 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <01fb7c9a50f8f72ff5983df9a8a6d47e@nikosalexandris.net> References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <01fb7c9a50f8f72ff5983df9a8a6d47e@nikosalexandris.net> Message-ID: On Sat, Mar 21, 2015 at 8:51 PM, Nikos Alexandris wrote: > Yes, this helps. I was confused by "...(i.e. if the option has > "new,cell,...", it will look in the "cell" directory)". Creating a > float-raster (FCELL) or double-raster (DCELL), creates an "fcell" directory. Yes but additionally an empty file in the cell directory. Markus From trac at osgeo.org Sat Mar 21 16:44:05 2015 From: trac at osgeo.org (GRASS GIS) Date: Sat, 21 Mar 2015 23:44:05 -0000 Subject: [GRASS-dev] [GRASS GIS] #2635: New Mirrors Setup for OsGEO Message-ID: <041.ea82641be46f2b7f88871af6e55a815d@osgeo.org> #2635: New Mirrors Setup for OsGEO -------------------------+-------------------------------------------------- Reporter: goparts | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Default | Version: unspecified Keywords: | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- Hi Os Geo, We are a technology company with resources to spare, and have a very competent server admin team helping us mirror open-source software. We have set up mirrors for OS Geo. Please let us know where you posted our mirrors link. If you are not going to use our mirror let me know so that we can remove the bandwidth from our server. Here are the mirrors: Moscow, Russia (1Gbit/sec): Russia ftp://mirrors-ru.go-parts.com/osgeo http://mirrors-ru.go-parts.com/osgeo rsync://mirrors-ru.go-parts.com/osgeo Lansing, Michigan, USA (250mbit/sec): USA ftp://mirrors-usa.go-parts.com/osgeo http://mirrors-usa.go-parts.com/osgeo rsync://mirrors-usa.go-parts.com/osgeo Japan ftp://mirrors.go-parts.com/osgeo http://mirrors.go-parts.com/osgeo rsync://mirrors.go-parts.com/osgeo Sync schedule: Every 12 hours Sponsor: Go-Parts Sponsor URL: http://www.go-parts.com Email contact: ray.sison at go-parts.com Thanks, Ray Sison Go-Parts http://go-parts.com -- Ticket URL: GRASS GIS From trac at osgeo.org Sat Mar 21 22:04:37 2015 From: trac at osgeo.org (GRASS GIS) Date: Sun, 22 Mar 2015 05:04:37 -0000 Subject: [GRASS-dev] [GRASS GIS] #2635: New Mirrors Setup for OsGEO In-Reply-To: <041.ea82641be46f2b7f88871af6e55a815d@osgeo.org> References: <041.ea82641be46f2b7f88871af6e55a815d@osgeo.org> Message-ID: <050.fb5f01f24a2421b87fb3fad3ac56b021@osgeo.org> #2635: New Mirrors Setup for OsGEO -------------------------+-------------------------------------------------- Reporter: goparts | Owner: grass-dev@? Type: task | Status: new Priority: normal | Milestone: Component: Website | Version: unspecified Keywords: | Platform: Unspecified Cpu: Unspecified | -------------------------+-------------------------------------------------- Changes (by neteler): * type: defect => task * component: Default => Website * milestone: 7.0.1 => Comment: This is the GRASS GIS project, part of OSGeo. Which server did you actually mirror? The instructions for GRASS GIS are available from http://grass.osgeo.org/mirrors/ -- Ticket URL: GRASS GIS From nik at nikosalexandris.net Sun Mar 22 04:21:41 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Sun, 22 Mar 2015 13:21:41 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> Message-ID: <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> Vaclav Petras wrote: >> It would be good if you can look to r.sun which other options you >> can >>> include. Nikos Alexandris wrote: >> I am. I am also renaming stuff, eg slope_in to slope. I guess this >> is >> wanted. > It should be slope (and slope_value) in the options but I think > that's > already true. How the variables in the script are named is not as > important. It's nice when they are consistent with inputs but there > can be > some reasons for the opposite. If there are reasons, in this, case, please share. Also: is the intention to have one script for both G7x and G64x? I would like to know, while I am at it, to structure appropriately the addition of "linke". The script works for me, with support for linke now. Will share later my working status. Nikos From nik at nikosalexandris.net Sun Mar 22 07:40:20 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Sun, 22 Mar 2015 16:40:20 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> Message-ID: Vaclav Petras wrote: >>> It would be good if you can look to r.sun which other options you >>> can >>>> include. Nikos Alexandris wrote: >>> I am. I am also renaming stuff, eg slope_in to slope. I guess this >>> is >>> wanted. VP: >> It should be slope (and slope_value) in the options but I think >> that's >> already true. How the variables in the script are named is not as >> important. It's nice when they are consistent with inputs but there >> can be >> some reasons for the opposite. NA: > If there are reasons, in this, case, please share. Also: is the > intention to have one script for both G7x and G64x? I would like to > know, while I am at it, to structure appropriately the addition of > "linke". > The script works for me, with support for linke now. Will share later > my working status. Modified script attached, support only for G7. Nikos -------------- next part -------------- A non-text attachment was scrubbed... Name: r.mod.sun.daily.py Type: text/x-python Size: 19743 bytes Desc: not available URL: From neteler at osgeo.org Sun Mar 22 13:37:49 2015 From: neteler at osgeo.org (Markus Neteler) Date: Sun, 22 Mar 2015 21:37:49 +0100 Subject: [GRASS-dev] integrate v.concave.hull into v.hull [was point cloud analysis: new features]] In-Reply-To: References: <54A6601E.7030602@fastmail.fm> <54AA72D4.5000209@fastmail.fm> <54AF92D5.5010608@club.worldonline.be> Message-ID: On Sun, Jan 11, 2015 at 9:03 PM, Markus Metz wrote: > On Fri, Jan 9, 2015 at 9:35 AM, Moritz Lennert wrote: >> On 08/01/15 23:46, Markus Metz wrote: >>> >>> On Mon, Jan 5, 2015 at 12:17 PM, Benjamin Ducke wrote: >>>> Thanks Markus, this is excellent progress. >>>> It seems to me that the approximation of cluster shapes from grouped >>>> points is a generic problem that would best be solved with a separate >>>> module. As long as the shapes are roughly convex, the existing v.hull >>>> should work fine. For concave shapes, AFAIK things become messy because >>>> common methods such as alpha shapes require the user to provide >>>> threshold values. >>> >>> This is true, but v.concave.hull [0] could help ;-) >> >> All these great addons ! >> >> For this particular one: would it be interesting / possible to integrate it >> directly into v.hull ? > > No, because v.hull is a C module and v.concave.hull a script which > does not use v.hull at all. Instead, v.concave.hull cleans the output > of v.delaunay to create concave hulls. I have a similar problem: imagine a set of contour lines which describe the bathymetry of a lake, so essentially contour lines which are closing a polygon but consist of different lines. I would like to get the respective polygon representation, i.e. the outer lines only and those turned into a polygon. I just tried v.concave.hull on it, however, it expects points and not lines. Does anyone have an idea how to achieve that? thanks markusN From Stefan.Blumentrath at nina.no Mon Mar 23 01:17:19 2015 From: Stefan.Blumentrath at nina.no (Blumentrath, Stefan) Date: Mon, 23 Mar 2015 08:17:19 +0000 Subject: [GRASS-dev] integrate v.concave.hull into v.hull [was point cloud analysis: new features]] In-Reply-To: References: <54A6601E.7030602@fastmail.fm> <54AA72D4.5000209@fastmail.fm> <54AF92D5.5010608@club.worldonline.be> , Message-ID: <59785b9f7c2a47069e73a90d2417b30e@NINSRV23.nina.no> Hei Markus, Not sure I fully understood you problem... I guess you don`t have a "grouping variable" (e.g. a lake ID) for the contour lines? If you had one, you could probably extract the outer lines based on the attribute table (get max depth by lake (or min depth, depending on how it is coded), something like where="depth=max_depth") and turn them into polygon (if lines are properly closed). Otherwise, if contour lines are not grouped by lake, personally I might have probably used PostGIS like this: 1) Polygonize all contour lines (ST_MakePolygon), eventually after checking if line strings are properly closed (ST_IsClosed) 2) SELECT all intersecting combinations of polygons in the resulting table (ST_Intersects) 3) LEFT JOIN polygonised contour lines with themselves using ST_CoveredBy 4) SELECT only those where left join IS NULL Is that somehow in the direction you were thinking? Cheers Stefan > ________________________________________ > Von: grass-dev-bounces at lists.osgeo.org im Auftrag von Markus Neteler > I have a similar problem: imagine a set of contour lines which > describe the bathymetry of a lake, so essentially contour lines which > are closing a polygon but consist of different lines. > I would like to get the respective polygon representation, i.e. the > outer lines only and those turned into a polygon. > I just tried v.concave.hull on it, however, it expects points and not lines. > Does anyone have an idea how to achieve that? > thanks > markusN From neteler at osgeo.org Mon Mar 23 01:32:47 2015 From: neteler at osgeo.org (Markus Neteler) Date: Mon, 23 Mar 2015 09:32:47 +0100 Subject: [GRASS-dev] Fwd: [OSGeo-Discuss] Monday is the Call for Workshop Deadline for FOSS4G Seoul 2015 In-Reply-To: <4D6574E4-FB6E-48FD-ADCC-398720A0BB6A@gaia3d.com> References: <4D6574E4-FB6E-48FD-ADCC-398720A0BB6A@gaia3d.com> Message-ID: FYI - deadline today ---------- Forwarded message ---------- From: Sanghee Shin Date: Sun, Mar 22, 2015 at 3:32 PM Subject: [OSGeo-Discuss] Monday is the Call for Workshop Deadline for FOSS4G Seoul 2015 To: OSGeo Discussions , foss4g2015 at lists.osgeo.org Hi All, I would like to give you a reminder that Monday(23rd, March)is the deadline for the FOSS4G Seoul Call for Workshops. If you didn't submit application for your workshop yet, please submit your application through FOSS4G Seoul Workshops page.[1] International FOSS4G 2015 will take place from 14th to 19th in Seoul, South Korea. And FOSS4G Seoul conference might be co-hosted with SmartGeoExpo Korea - the largest geospatial event in Korea - at the same venue.(Not yet perfectly confirmed, however almost likely) FOSS4G Attendees can go to any talk or exhibition booth at SmartGeoExpo Korea without additional cost. This co-hosting, if confirmed, will give workshop teams very unique chance to promote their projects. This year, accepted workshop leader will get a 50% discounted full registration pass. Hope to see many interesting workshops here in Seoul in September. Best, Sanghee [1] http://2015.foss4g.org/programme/workshop/ --- Sanghee Shin, Chair of FOSS4G 2015 Seoul "Toward Diversity! FOSS4G Bigbang from Seoul!" http://2015.foss4g.org Twitter: @foss4g Facebook: FOSS4G2015 email: foss4gchair at osgeo.org _______________________________________________ Discuss mailing list Discuss at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FOSS4G_Seoul_logo-300x93.gif Type: image/gif Size: 7008 bytes Desc: not available URL: From mlennert at club.worldonline.be Mon Mar 23 02:38:00 2015 From: mlennert at club.worldonline.be (Moritz Lennert) Date: Mon, 23 Mar 2015 10:38:00 +0100 Subject: [GRASS-dev] integrate v.concave.hull into v.hull [was point cloud analysis: new features]] In-Reply-To: References: <54A6601E.7030602@fastmail.fm> <54AA72D4.5000209@fastmail.fm> <54AF92D5.5010608@club.worldonline.be> Message-ID: <550FDEF8.1050507@club.worldonline.be> On 22/03/15 21:37, Markus Neteler wrote: > On Sun, Jan 11, 2015 at 9:03 PM, Markus Metz > wrote: >> On Fri, Jan 9, 2015 at 9:35 AM, Moritz Lennert wrote: >>> On 08/01/15 23:46, Markus Metz wrote: >>>> >>>> On Mon, Jan 5, 2015 at 12:17 PM, Benjamin Ducke wrote: >>>>> Thanks Markus, this is excellent progress. >>>>> It seems to me that the approximation of cluster shapes from grouped >>>>> points is a generic problem that would best be solved with a separate >>>>> module. As long as the shapes are roughly convex, the existing v.hull >>>>> should work fine. For concave shapes, AFAIK things become messy because >>>>> common methods such as alpha shapes require the user to provide >>>>> threshold values. >>>> >>>> This is true, but v.concave.hull [0] could help ;-) >>> >>> All these great addons ! >>> >>> For this particular one: would it be interesting / possible to integrate it >>> directly into v.hull ? >> >> No, because v.hull is a C module and v.concave.hull a script which >> does not use v.hull at all. Instead, v.concave.hull cleans the output >> of v.delaunay to create concave hulls. > > I have a similar problem: imagine a set of contour lines which > describe the bathymetry of a lake, so essentially contour lines which > are closing a polygon but consist of different lines. I'm not sure I completely understand the situation, maybe an image would help. > > I would like to get the respective polygon representation, i.e. the > outer lines only and those turned into a polygon. > > I just tried v.concave.hull on it, however, it expects points and not lines. > Does anyone have an idea how to achieve that? I take it that there are no attributes (e.g. depth) linked to the lines ? Otherwise, maybe v.to.points + v.concave.hull + v.select ? Or, manually, using the new "Select vector feature(s)" tool in the Map Display ? Moritz From lucadeluge at gmail.com Mon Mar 23 02:55:22 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Mon, 23 Mar 2015 10:55:22 +0100 Subject: [GRASS-dev] FOSS4G 2015 Seul Message-ID: Hi devs, someone will partecipate to FOSS4G 2015 in Seul? I'm going to submit a workshop about Python and GRASS and if someone want I can put him as workshop teacher with me. -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From neteler at osgeo.org Mon Mar 23 04:17:02 2015 From: neteler at osgeo.org (Markus Neteler) Date: Mon, 23 Mar 2015 12:17:02 +0100 Subject: [GRASS-dev] integrate v.concave.hull into v.hull [was point cloud analysis: new features]] In-Reply-To: <550FDEF8.1050507@club.worldonline.be> References: <54A6601E.7030602@fastmail.fm> <54AA72D4.5000209@fastmail.fm> <54AF92D5.5010608@club.worldonline.be> <550FDEF8.1050507@club.worldonline.be> Message-ID: Hi, ok, to make it hopefully clear: attached a screenshot of the lines describing contours of a lake. I would like to turn this into a polygon describing the like, ideally in a non-manual way. thanks Markus -------------- next part -------------- A non-text attachment was scrubbed... Name: line_collection_to_become_outer_polygon.jpg Type: image/jpeg Size: 16826 bytes Desc: not available URL: From Stefan.Blumentrath at nina.no Mon Mar 23 04:56:54 2015 From: Stefan.Blumentrath at nina.no (Blumentrath, Stefan) Date: Mon, 23 Mar 2015 11:56:54 +0000 Subject: [GRASS-dev] integrate v.concave.hull into v.hull [was point cloud analysis: new features]] In-Reply-To: References: <54A6601E.7030602@fastmail.fm> <54AA72D4.5000209@fastmail.fm> <54AF92D5.5010608@club.worldonline.be> <550FDEF8.1050507@club.worldonline.be> Message-ID: <12ea65415ea343f3aae5eabc79588145@NINSRV23.nina.no> Hei Markus, Assuming you have no attributes for those lines, what about the following procedure: 1) Turning all to closed line strings into areas in a first step (v.centroids) and then 2) use some v.to.db ("sides" option) in order to distinguish inner and outer boundaries, in other words those which have no category at one side from those which have a category at both sides? 3) Then you can extract the latter and build areas only from them... Cheers Stefan -----Original Message----- From: grass-dev-bounces at lists.osgeo.org [mailto:grass-dev-bounces at lists.osgeo.org] On Behalf Of Markus Neteler Sent: 23. mars 2015 12:17 To: Moritz Lennert Cc: GRASS developers list; Markus Metz Subject: Re: [GRASS-dev] integrate v.concave.hull into v.hull [was point cloud analysis: new features]] Hi, ok, to make it hopefully clear: attached a screenshot of the lines describing contours of a lake. I would like to turn this into a polygon describing the like, ideally in a non-manual way. thanks Markus From wenzeslaus at gmail.com Mon Mar 23 06:49:32 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Mon, 23 Mar 2015 09:49:32 -0400 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> Message-ID: On Sun, Mar 22, 2015 at 10:40 AM, Nikos Alexandris wrote: > Vaclav Petras wrote: > > It would be good if you can look to r.sun which other options you can >>>> >>>>> include. >>>>> >>>> > Nikos Alexandris wrote: > > I am. I am also renaming stuff, eg slope_in to slope. I guess this is >>>> wanted. >>>> >>> > VP: > > It should be slope (and slope_value) in the options but I think that's >>> already true. How the variables in the script are named is not as >>> important. It's nice when they are consistent with inputs but there can >>> be >>> some reasons for the opposite. >>> >> > NA: > > If there are reasons, in this, case, please share. > > There is none unless you hit some issue or something. > Also: is the >> intention to have one script for both G7x and G64x? > > It was just simpler at the time of writing. Now there is probably no need to have G6 support since G7 is out. > I would like to >> know, while I am at it, to structure appropriately the addition of >> "linke". >> > > The script works for me, with support for linke now. Will share later >> my working status. >> > > Modified script attached, Please share also the diff. > support only for G7. > > If you will not add G6 support then remove all G7/G6 related if statements. Nikos > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From radim.blazek at gmail.com Mon Mar 23 11:56:39 2015 From: radim.blazek at gmail.com (Radim Blazek) Date: Mon, 23 Mar 2015 19:56:39 +0100 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding Message-ID: Hi all, I have finally launched the crowdfunding campaign to support the GRASS plugin upgrade. Briefly, it covers upgrade to GRASS 7, browser integration, drag-and-drop import and new vector editing. All the details are available here: http://www.gissula.eu/qgis-grass-plugin-crowdfunding/ Please propagate this info to all relevant channels, national mailing lists etc. Radim From soerengebbert at googlemail.com Mon Mar 23 13:19:15 2015 From: soerengebbert at googlemail.com (=?UTF-8?Q?S=C3=B6ren_Gebbert?=) Date: Mon, 23 Mar 2015 21:19:15 +0100 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: Hi Radim, this is a beautiful idea and i hope you will get plenty of funds. I have some questions regarding the implementation, since this is not mentioned in the project description: Do you plan to implement the plugin in C++ only, or will you try to combine C++ (data provider) and Python (all the rest)? The reason i am asking is, that using Python for the user interaction, module calling, vector editing and mapset/location handling would allow us GRASS developer to provide possible improvements and bugfixes for the plugin more easily. For example, the time series handling [1] in GRASS GIS is mainly implemented in Python and provides a Python API that could be used in the QGIS GRASS Plugin to implement time series analysis support. Using the QGIS Python plugin approach will reduce the need for compilation, which allows much faster development of modifications and bugfix testing. The data provider and vector editing helper classes must be of course implemented in C++ and should stay in the QGIS source tree. Best regards Soeren [1] http://ifgi.uni-muenster.de/~epebe_01/tgrass.pdf Btw: Otto Dassau and i mentioned your crowd funding idea at the FOSSGIS in Germany two weeks ago. It is on Youtube[2] but only in German. [2] https://www.youtube.com/watch?v=rxmPbh2igmM&t=1407 2015-03-23 19:56 GMT+01:00 Radim Blazek : > Hi all, > > I have finally launched the crowdfunding campaign to support the GRASS > plugin upgrade. Briefly, it covers upgrade to GRASS 7, browser > integration, drag-and-drop import and new vector editing. All the > details are available here: > > http://www.gissula.eu/qgis-grass-plugin-crowdfunding/ > > Please propagate this info to all relevant channels, national mailing lists etc. > > Radim > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev From trac at osgeo.org Mon Mar 23 17:05:52 2015 From: trac at osgeo.org (GRASS GIS) Date: Tue, 24 Mar 2015 00:05:52 -0000 Subject: [GRASS-dev] [GRASS GIS] #2636: v.buffer, allow selection of columns for opts "distance", "minordistance", and "angle" Message-ID: <044.65ab48008b36ea59a302e46d35b70d8f@osgeo.org> #2636: v.buffer, allow selection of columns for opts "distance", "minordistance", and "angle" -------------------------------+-------------------------------------------- Reporter: isaacullah | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Vector | Version: svn-releasebranch70 Keywords: v.buffer, columns | Platform: Linux Cpu: x86-64 | -------------------------------+-------------------------------------------- Currently, v.buffer only allows a column selection for single radius (opt "column"), but allows the creation of "oblong" buffers using the manual entry opts "distance", "minordistance", and "angle". v.buffer would be a lot more useful if these could all simply be column selectable too. For example, if I have a large vector points file of archaeological site locations, and I have BOTH a length and width column (and, potentially, a "site axis direction" column too), then I could make a "buffer" map of the actual site size and orientation. Currently, in v.buffer, I can only use a calculated "average" site radius column, and make circular buffers for these sites. -- Ticket URL: GRASS GIS From peter.zamb at gmail.com Mon Mar 23 23:00:14 2015 From: peter.zamb at gmail.com (Pietro) Date: Tue, 24 Mar 2015 07:00:14 +0100 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: Hi Radim, together with Francesco Geri, last week we started to write a first draft that generate the GUI for the GRASS module dynamically (based on the xml generated with: --interface-description), so far it is based on grass7 but should work also on grass6 (not tested, should be enough to backport the pygrass.modules.Module class). Best regards Pietro On Mon, Mar 23, 2015 at 7:56 PM, Radim Blazek wrote: > Hi all, > > I have finally launched the crowdfunding campaign to support the GRASS > plugin upgrade. Briefly, it covers upgrade to GRASS 7, browser > integration, drag-and-drop import and new vector editing. All the > details are available here: > > http://www.gissula.eu/qgis-grass-plugin-crowdfunding/ > > Please propagate this info to all relevant channels, national mailing lists etc. > > Radim > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev From markus.metz.giswork at gmail.com Tue Mar 24 01:33:20 2015 From: markus.metz.giswork at gmail.com (Markus Metz) Date: Tue, 24 Mar 2015 09:33:20 +0100 Subject: [GRASS-dev] Planning GRASS GIS 6.4.5 release In-Reply-To: References: Message-ID: On Sat, Mar 21, 2015 at 11:21 AM, Markus Neteler wrote: > > Hi Markus, > > On Fri, Mar 6, 2015 at 8:26 AM, Markus Metz > wrote: > > On Thu, Mar 5, 2015 at 3:04 PM, Markus Neteler wrote: > >> On Thu, Mar 5, 2015 at 11:27 AM, Martin Landa wrote: > >>> 2015-03-05 11:17 GMT+01:00 Markus Neteler : > >>>> Step 2 (day X) - Soft freeze of release branch: suggestion 20 March 2015 > >>> > >>> why not soft freeze since today? Are expecting some heavy changes in > >>> this branch? > >> > >> AFAIK the backport of the topology fixes. > > > > Yes. I want to do the backports next week. > > I saw that you updated the G6 vector lib, did this include the planned > backports? > Just to understand for the planning. > Yes, I have backported all bug fixes to G6. Markus M > > thanks > markusN From radim.blazek at gmail.com Tue Mar 24 01:40:49 2015 From: radim.blazek at gmail.com (Radim Blazek) Date: Tue, 24 Mar 2015 09:40:49 +0100 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: Hi Soeren, thanks for your reaction. I remember we already discussed the possibility to move to Python. On Mon, Mar 23, 2015 at 9:19 PM, S?ren Gebbert wrote: > Hi Radim, > this is a beautiful idea and i hope you will get plenty of funds. > > I have some questions regarding the implementation, since this is not > mentioned in the project description: > > Do you plan to implement the plugin in C++ only, or will you try to > combine C++ (data provider) and Python (all the rest)? The reason i am > asking is, that using Python for the user interaction, module calling, > vector editing and mapset/location handling would allow us GRASS > developer to provide possible improvements and bugfixes for the plugin > more easily. For example, the time series handling [1] in GRASS GIS is > mainly implemented in Python and provides a Python API that could be > used in the QGIS GRASS Plugin to implement time series analysis > support. > Using the QGIS Python plugin approach will reduce the need for > compilation, which allows much faster development of modifications and > bugfix testing. I completely agree that Python would be better, the advantages of Python are obvious and that would be definitely my choice if I had to start from scratch. Un(fortunately) the GRASS plugin + qgsgrassgislib have already 22500 lines of C++ so porting to Python is not an option and mixing C++ in single plugin either (as far to my knowledge). Are there functions in time series implementation which need to be called directly from the plugin or everything may be done just calling t.rast.* modules? Radim > The data provider and vector editing helper classes must be of course > implemented in C++ and should stay in the QGIS source tree. > > Best regards > Soeren > > [1] http://ifgi.uni-muenster.de/~epebe_01/tgrass.pdf > > Btw: Otto Dassau and i mentioned your crowd funding idea at the > FOSSGIS in Germany two weeks ago. It is on Youtube[2] but only in > German. > > [2] https://www.youtube.com/watch?v=rxmPbh2igmM&t=1407 > > 2015-03-23 19:56 GMT+01:00 Radim Blazek : >> Hi all, >> >> I have finally launched the crowdfunding campaign to support the GRASS >> plugin upgrade. Briefly, it covers upgrade to GRASS 7, browser >> integration, drag-and-drop import and new vector editing. All the >> details are available here: >> >> http://www.gissula.eu/qgis-grass-plugin-crowdfunding/ >> >> Please propagate this info to all relevant channels, national mailing lists etc. >> >> Radim >> _______________________________________________ >> grass-dev mailing list >> grass-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/grass-dev From soerengebbert at googlemail.com Tue Mar 24 02:04:42 2015 From: soerengebbert at googlemail.com (=?UTF-8?Q?S=C3=B6ren_Gebbert?=) Date: Tue, 24 Mar 2015 10:04:42 +0100 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: Hi Radim, 2015-03-24 9:40 GMT+01:00 Radim Blazek : > Hi Soeren, > thanks for your reaction. I remember we already discussed the > possibility to move to Python. > > On Mon, Mar 23, 2015 at 9:19 PM, S?ren Gebbert > wrote: >> Hi Radim, >> this is a beautiful idea and i hope you will get plenty of funds. >> >> I have some questions regarding the implementation, since this is not >> mentioned in the project description: >> >> Do you plan to implement the plugin in C++ only, or will you try to >> combine C++ (data provider) and Python (all the rest)? The reason i am >> asking is, that using Python for the user interaction, module calling, >> vector editing and mapset/location handling would allow us GRASS >> developer to provide possible improvements and bugfixes for the plugin >> more easily. For example, the time series handling [1] in GRASS GIS is >> mainly implemented in Python and provides a Python API that could be >> used in the QGIS GRASS Plugin to implement time series analysis >> support. >> Using the QGIS Python plugin approach will reduce the need for >> compilation, which allows much faster development of modifications and >> bugfix testing. > > > I completely agree that Python would be better, the advantages of > Python are obvious and that would be definitely my choice if I had to > start from scratch. Un(fortunately) the GRASS plugin + qgsgrassgislib > have already 22500 lines of C++ so porting to Python is not an option > and mixing C++ in single plugin either (as far to my knowledge). Indeed, porting the C++ code to Python is a large effort. However, maybe you can define a stretch-goal in the crowd funding campaign? If this goal is met, then you have enough funds to port the C++ code to Python and you can add more features? I think that using C++ and Python in a Plugin shouldn't be a big problem in my humble opinion. The main issue would be that the C++ code of the data provide will be part of QGIS and the Python code that makes use of the GRASS data provider will be a separate GRASS Python QGIS plugin. Maybe this approach will allow to implement several independent Python plugins that make use of the GRASS data provider to implement specific algorithms? > Are there functions in time series implementation which need to be > called directly from the plugin or everything may be done just calling > t.rast.* modules? Most of the temporal functionality is available through the temporal modules. However some important algorithms (temporal re-sampling) are available only in the Python framework. This is needed for time series animation creation. Using the framework directly will speed things up, because the module calls, the parsing and interpretation of the module outputs can be avoided. Many thanks for the QGIS GRASS Plugin Best regards Soeren > Radim > >> The data provider and vector editing helper classes must be of course >> implemented in C++ and should stay in the QGIS source tree. >> >> Best regards >> Soeren >> >> [1] http://ifgi.uni-muenster.de/~epebe_01/tgrass.pdf >> >> Btw: Otto Dassau and i mentioned your crowd funding idea at the >> FOSSGIS in Germany two weeks ago. It is on Youtube[2] but only in >> German. >> >> [2] https://www.youtube.com/watch?v=rxmPbh2igmM&t=1407 >> >> 2015-03-23 19:56 GMT+01:00 Radim Blazek : >>> Hi all, >>> >>> I have finally launched the crowdfunding campaign to support the GRASS >>> plugin upgrade. Briefly, it covers upgrade to GRASS 7, browser >>> integration, drag-and-drop import and new vector editing. All the >>> details are available here: >>> >>> http://www.gissula.eu/qgis-grass-plugin-crowdfunding/ >>> >>> Please propagate this info to all relevant channels, national mailing lists etc. >>> >>> Radim >>> _______________________________________________ >>> grass-dev mailing list >>> grass-dev at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/grass-dev From radim.blazek at gmail.com Tue Mar 24 02:56:45 2015 From: radim.blazek at gmail.com (Radim Blazek) Date: Tue, 24 Mar 2015 10:56:45 +0100 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: Hi Soeren On Tue, Mar 24, 2015 at 10:04 AM, S?ren Gebbert wrote: > 2015-03-24 9:40 GMT+01:00 Radim Blazek : >> I completely agree that Python would be better, the advantages of >> Python are obvious and that would be definitely my choice if I had to >> start from scratch. Un(fortunately) the GRASS plugin + qgsgrassgislib >> have already 22500 lines of C++ so porting to Python is not an option >> and mixing C++ in single plugin either (as far to my knowledge). > > Indeed, porting the C++ code to Python is a large effort. However, > maybe you can define a stretch-goal in the crowd funding campaign? If > this goal is met, then you have enough funds to port the C++ code to > Python and you can add more features? I don't have any serious estimation how much porting from C++ to Python costs, but new line of code costs 10-50euro (according to quick internet search). To be really very modest, say that porting would cost 2 euro per line, i.e. 22500*2 = 45000 euro for somethings which brings no new features to users. That is not something I would ever propose. > I think that using C++ and Python in a Plugin shouldn't be a big > problem in my humble opinion. The main issue would be that the C++ > code of the data provide will be part of QGIS and the Python code that > makes use of the GRASS data provider will be a separate GRASS Python > QGIS plugin. The plugin and the provider are sharing some C++ code (qgsgrass and qgsgrasslib). To port the plugin to Python you also have to write and maintain Python bindings for that shared classes which is just extra work. > Maybe this approach will allow to implement several > independent Python plugins that make use of the GRASS data provider to > implement specific algorithms? That should not depend on the GRASS plugin in C++. If you write Python bindings for the provider, you can use it (non standard) in your Python plugin. I believe however that plugins implementing algorithms should be preferably provider independent. >> Are there functions in time series implementation which need to be >> called directly from the plugin or everything may be done just calling >> t.rast.* modules? > > Most of the temporal functionality is available through the temporal > modules. However some important algorithms (temporal re-sampling) are > available only in the Python framework. This is needed for time series > animation creation. Using the framework directly will speed things up, > because the module calls, the parsing and interpretation of the module > outputs can be avoided. If it should be used for dynamic animation in QGIS canvas you could consider the possibility to subclass raster renderer in Python and insert it into raster layer pipe from Python plugin. >>> Btw: Otto Dassau and i mentioned your crowd funding idea at the >>> FOSSGIS in Germany two weeks ago. It is on Youtube[2] but only in >>> German. Thank you a lot! Radim From wenzeslaus at gmail.com Tue Mar 24 07:47:54 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Tue, 24 Mar 2015 10:47:54 -0400 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: On Tue, Mar 24, 2015 at 5:56 AM, Radim Blazek wrote: > >> Are there functions in time series implementation which need to be > >> called directly from the plugin or everything may be done just calling > >> t.rast.* modules? > > > > Most of the temporal functionality is available through the temporal > > modules. However some important algorithms (temporal re-sampling) are > > available only in the Python framework. This is needed for time series > > animation creation. Using the framework directly will speed things up, > > because the module calls, the parsing and interpretation of the module > > outputs can be avoided. > > If it should be used for dynamic animation in QGIS canvas you could > consider the possibility to subclass raster renderer in Python and > insert it into raster layer pipe from Python plugin. > Speaking about animations, some things from GRASS GIS GUI could be perhaps used directly in the same was as Tcl/Tk NVIZ is used in processing for GRASS 6. Animation tool is one of them. This would be great since we would get al least some functionality/code sharing between GRASS and QGIS GUIs which is otherwise not possible due to Python/wxPython and C++/Qt (and would be only possible if both things would be at least in the same language). This is of course not fulfilling the requirement to be general, i.e. work with other data providers in QGIS, but surely some things just have to be like that if they are using GRASS-specific formats (temporal data) or algorithms (e.g. algorithms to work with temporal data, their topology, ...). Vaclav -------------- next part -------------- An HTML attachment was scrubbed... URL: From wenzeslaus at gmail.com Tue Mar 24 07:54:33 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Tue, 24 Mar 2015 10:54:33 -0400 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: On Tue, Mar 24, 2015 at 2:00 AM, Pietro wrote: > Hi Radim, > > together with Francesco Geri, last week we started to write a first > draft that generate the GUI for the GRASS module dynamically (based on > the xml generated with: --interface-description), so far it is based > on grass7 but should work also on grass6 (not tested, should be enough > to backport the pygrass.modules.Module class). > > Hi Pietro and Francesco, this sounds good. Are you speaking about QGIS GUI (in Python) generated from --interface-description? Do you think it would be possible to write it in a way which would be GUI framework independent so that it is usable in both GRASS and QGIS? The GUIs for modules in GRASS are quite good now but the code should be rewritten and this would be a great way how to get this new implementation. Vaclav > Best regards > > Pietro > > On Mon, Mar 23, 2015 at 7:56 PM, Radim Blazek > wrote: > > Hi all, > > > > I have finally launched the crowdfunding campaign to support the GRASS > > plugin upgrade. Briefly, it covers upgrade to GRASS 7, browser > > integration, drag-and-drop import and new vector editing. All the > > details are available here: > > > > http://www.gissula.eu/qgis-grass-plugin-crowdfunding/ > > > > Please propagate this info to all relevant channels, national mailing > lists etc. > > > > Radim > > _______________________________________________ > > grass-dev mailing list > > grass-dev at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/grass-dev > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From radim.blazek at gmail.com Tue Mar 24 09:11:13 2015 From: radim.blazek at gmail.com (Radim Blazek) Date: Tue, 24 Mar 2015 17:11:13 +0100 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: On Tue, Mar 24, 2015 at 7:00 AM, Pietro wrote: > Hi Radim, > > together with Francesco Geri, last week we started to write a first > draft that generate the GUI for the GRASS module dynamically (based on > the xml generated with: --interface-description), so far it is based > on grass7 but should work also on grass6 (not tested, should be enough > to backport the pygrass.modules.Module class). The GUI for GRASS module in the plugin is also generated based on --interface-description, qgm files are only used to define a subset of module's options or to override option attributes (like label) if necessary. So it is already implemented, but always combined with qgm, skipping qgm, it maybe used to generate generic UI for any module. Using qgm gives more power, for example table field combo options based on current layer selected as input, setting input type from input layer, selecting feature categories in map canvas and so on. You may be interested in https://github.com/qgis/QGIS/blob/master/src/plugins/grass/qgsgrassmodule.cpp Do you see a possibility how we could join the effort? Radim > Best regards > > Pietro > > On Mon, Mar 23, 2015 at 7:56 PM, Radim Blazek wrote: >> Hi all, >> >> I have finally launched the crowdfunding campaign to support the GRASS >> plugin upgrade. Briefly, it covers upgrade to GRASS 7, browser >> integration, drag-and-drop import and new vector editing. All the >> details are available here: >> >> http://www.gissula.eu/qgis-grass-plugin-crowdfunding/ >> >> Please propagate this info to all relevant channels, national mailing lists etc. >> >> Radim >> _______________________________________________ >> grass-dev mailing list >> grass-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/grass-dev From peter.zamb at gmail.com Tue Mar 24 10:30:52 2015 From: peter.zamb at gmail.com (Pietro) Date: Tue, 24 Mar 2015 18:30:52 +0100 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: Hi Vaclav, On Tue, Mar 24, 2015 at 3:54 PM, Vaclav Petras wrote: > On Tue, Mar 24, 2015 at 2:00 AM, Pietro wrote: >> together with Francesco Geri, last week we started to write a first >> draft that generate the GUI for the GRASS module dynamically (based on >> the xml generated with: --interface-description), so far it is based >> on grass7 but should work also on grass6 (not tested, should be enough >> to backport the pygrass.modules.Module class). > > Hi Pietro and Francesco, > > this sounds good. Are you speaking about QGIS GUI (in Python) generated from > --interface-description? Do you think it would be possible to write it in a > way which would be GUI framework independent so that it is usable in both > GRASS and QGIS? The GUIs for modules in GRASS are quite good now but the > code should be rewritten and this would be a great way how to get this new > implementation. yes, actually what I wrote it is completely independent from QGIS, it is compatible with pyqt/pyside and with python2/python3, It is just a proof of concept. Now Francesco it is working to better integrate this draft with QGIS stuff. The idea was heavily based on formlayout code: https://code.google.com/p/formlayout/ Basically each parameter is a GUI field that it is add to the main window, therefore based on the parameter type the field could be: if "raster"/"vector" => a combo box with the rasters/vectors available if "integer" => a spinbox if "string"/"double" => a text field if "file" => a file dialog based on the guisection parameter all the options are organized in tabs. The code is under 500 lines of code. I guess should be possible to follow the same approach using the wxpython. I think that with a bit more effort should be possible to make it general enough to make it independent from the GUI framework (Qt/Wx) that we want to use. I have not link to share at this stage because we are still working on it. But I guess we can share the code as soon as we have something that it is able to cover the basic needs. Pietro From peter.zamb at gmail.com Tue Mar 24 10:45:36 2015 From: peter.zamb at gmail.com (Pietro) Date: Tue, 24 Mar 2015 18:45:36 +0100 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: Hi Radim, On Tue, Mar 24, 2015 at 5:11 PM, Radim Blazek wrote: > On Tue, Mar 24, 2015 at 7:00 AM, Pietro wrote: >> together with Francesco Geri, last week we started to write a first >> draft that generate the GUI for the GRASS module dynamically (based on >> the xml generated with: --interface-description), so far it is based >> on grass7 but should work also on grass6 (not tested, should be enough >> to backport the pygrass.modules.Module class). > > The GUI for GRASS module in the plugin is also generated based on > --interface-description, qgm files are only used to define a subset of > module's options or to override option attributes (like label) if > necessary. So it is already implemented, but always combined with t, > skipping qgm, it maybe used to generate generic UI for any module. > Using qgm gives more power, for example table field combo options > based on current layer selected as input, setting input type from > input layer, selecting feature categories in map canvas and so on. > > You may be interested in > https://github.com/qgis/QGIS/blob/master/src/plugins/grass/qgsgrassmodule.cpp > > Do you see a possibility how we could join the effort? Yes I know that that there was this tool already available, but we want to build something that use only the --interface-description, to avoid to synchronize the qgm file for each change that we made on the grass-addon. I would love to join the effort, the main problem here is that I don't know cpp, therefore I can not play actively on this side. However I think that some extra fields in the xml description are missing and should be add to easily go on the direction of the dynamically generated GUI. But I will open a new thread. Pietro From wenzeslaus at gmail.com Tue Mar 24 11:04:34 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Tue, 24 Mar 2015 14:04:34 -0400 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: On Tue, Mar 24, 2015 at 1:30 PM, Pietro wrote: > Hi Vaclav, > > On Tue, Mar 24, 2015 at 3:54 PM, Vaclav Petras > wrote: > > On Tue, Mar 24, 2015 at 2:00 AM, Pietro wrote: > >> together with Francesco Geri, last week we started to write a first > >> draft that generate the GUI for the GRASS module dynamically (based on > >> the xml generated with: --interface-description), so far it is based > >> on grass7 but should work also on grass6 (not tested, should be enough > >> to backport the pygrass.modules.Module class). > > > > Hi Pietro and Francesco, > > > > this sounds good. Are you speaking about QGIS GUI (in Python) generated > from > > --interface-description? Do you think it would be possible to write it > in a > > way which would be GUI framework independent so that it is usable in both > > GRASS and QGIS? The GUIs for modules in GRASS are quite good now but the > > code should be rewritten and this would be a great way how to get this > new > > implementation. > > yes, actually what I wrote it is completely independent from QGIS, it > is compatible with pyqt/pyside and with python2/python3, > It is just a proof of concept. Now Francesco it is working to better > integrate this draft with QGIS stuff. > > That's good to hear. > The idea was heavily based on formlayout code: > > https://code.google.com/p/formlayout/ > > Basically each parameter is a GUI field that it is add to the main > window, therefore based on the parameter type the field could be: > > if "raster"/"vector" => a combo box with the rasters/vectors available > if "integer" => a spinbox > if "string"/"double" => a text field > if "file" => a file dialog > > based on the guisection parameter all the options are organized in tabs. > > Both QGIS and GRASS are adding different extra features like setting region according to a selected raster or dependent fields for vector GRASS layers and attributes. That's why it gets complicated at the end. And of course then there is the extra information which is not stored in XML such as "GRASS standard options". Anyway, skipping qgm is quite important feature for QGIS since it is necessary for GRASS addons as you say. > The code is under 500 lines of code. > > I guess should be possible to follow the same approach using the wxpython. > I think that with a bit more effort should be possible to make it > general enough to make it independent from the GUI framework (Qt/Wx) > that we want to use. > > I have not link to share at this stage because we are still working on it. > But I guess we can share the code as soon as we have something that it > is able to cover the basic needs. > > I'm looking forward to that. > > Pietro > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rakeshdhar at peaktechnical.com Tue Mar 24 12:40:49 2015 From: rakeshdhar at peaktechnical.com (Rakesh Dhar) Date: Tue, 24 Mar 2015 19:40:49 +0000 Subject: [GRASS-dev] Hiring Now - GIS developer in St. Louis, MO Message-ID: <1C8B0734D9DFB74F8F159C9F575233A90EFC5602@MBX203.domain.local> Hi All Good Day !! My name is Rakesh. I am Staffing Manager with PEAK Technical Staffing USA. I saw your profile online and wanted to reach you out for a project available with one of my Direct Client. I have SOFTWARE APPL ENG/PROG III position in St. Louis, MO Please find the Job description & let me know if you will be interested. Thanks. Location - St. Louis, MO Title - SOFTWARE APPL ENG/PROG III Duration 9+ Months Web Developer or related exp. experience with intelligence community. Fluency in geospatial standards and requirements. A hands-on understanding of US Government and international standards with emphasis on current and potential future exchange formats (e.g., WFS, TMS, GML, XML, etc.). Familiarity with Geographic Information Systems software (e.g., ArcGIS and GeoServer). A working knowledge of geospatial domains: including Aeronautical, Topographic, Hydrographic, and Geotechnical Sciences. Knowledge of the readiness and responsiveness strategy for geospatial information, population of the geospatial framework, transition to an information provider, integration of imagery and geospatial information, and geospatial training and education requirements to ensure full utilization of this new information. Knowledge of relational database technology as it effects webpage design and maintenance. Education: Undergraduate or graduate degree in Computer Science or related field or at least five years of programming experience without a specified degree. Required Skills: Familiarity with programming languages (e.g. ColdFusion, .NET, Python, PHP, Java). Development of software on PC platforms; Experience working in a team environment; Comfort in working with advanced computer hardware and software technology and databases. Strong writing, presentation, and interpersonal skills. Desired Skills: Experience with ArcSDE developing client/server applications. Experience with PLTS Great place to work at; really fun and positive environment. Thank you for your time and consideration and I hope we can work with each other in the future. Sincerely, Thanks Rakesh Dhar Staffing Manager PEAK Technical Consulting LLC Engineering IT 7 Corporate Park, Suite 125 Irvine, CA 92606 Phone: (562) 472-1633 Fax: (949) 476-7766 E-mail: rakeshdhar at peaktechnical.com www.peaktechnical.com Office Hours: 8:00AM - 5:00PM Pacific [btn_myprofile_160x33] Confidentiality Notice: This E-mail and any of its attachments contain proprietary information of PEAK Technical Services, Inc. and its affiliates (collectively "PEAK") that is privileged, confidential or subject to copyright belonging to PEAK. If you have received this E-mail in error or are not the named addressee, please notify the sender immediately and permanently delete the original, any copies and any printout. Thank You. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 530 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 1038 bytes Desc: image002.png URL: From neteler at osgeo.org Tue Mar 24 14:25:40 2015 From: neteler at osgeo.org (Markus Neteler) Date: Tue, 24 Mar 2015 22:25:40 +0100 Subject: [GRASS-dev] Planning GRASS GIS 6.4.5 release In-Reply-To: References: Message-ID: On Tue, Mar 24, 2015 at 9:33 AM, Markus Metz wrote: > On Sat, Mar 21, 2015 at 11:21 AM, Markus Neteler wrote: ... >> I saw that you updated the G6 vector lib, did this include the planned >> backports? ... > Yes, I have backported all bug fixes to G6. Great, thanks. Current state is at http://trac.osgeo.org/grass/wiki/Grass6Planning Time to prepare a RC1? Anything still needs to be backported before RC1? markusN From landa.martin at gmail.com Tue Mar 24 14:31:05 2015 From: landa.martin at gmail.com (Martin Landa) Date: Tue, 24 Mar 2015 22:31:05 +0100 Subject: [GRASS-dev] Planning GRASS GIS 6.4.5 release In-Reply-To: References: Message-ID: 2015-03-24 22:25 GMT+01:00 Markus Neteler : > Time to prepare a RC1? Anything still needs to be backported before RC1? +1 for RC1. Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From lrntct at gmail.com Tue Mar 24 14:45:06 2015 From: lrntct at gmail.com (Laurent C.) Date: Tue, 24 Mar 2015 15:45:06 -0600 Subject: [GRASS-dev] remove RasterNumpy class from pygrass In-Reply-To: References: Message-ID: Hello, May I suggest to remove any reference to RasterNumpy in the documentation ? I just spend some time writing a code with RasterNumpy just to realize the class was not existing. Thanks for the workaround. Best regards, Laurent 2014-12-15 6:41 GMT-06:00 Pietro : > Dear all, > > If you are ok with that, I would like to remove the RasterNumpy class, > as far as I aware, nobody is using it. > So I would like to avoid to introduce a class in grass70 and remove > the class in grass71. > However the RasterNumpy class can be easily replaced by functions like: > > {{{ > def raster2numpy(rastname): > """Return a numpy array from a raster map""" > with RasterRow(rastname, mode='r') as rast: > return np.array(rast) > > > def numpy2raster(array, mtype, rastname): > """Save a numpy array to a raster map""" > reg = Region() > if (reg.rows, reg.cols) != array.shape: > msg = "Region and array are different: %r != %r" > raise TypeError(msg % ((reg.rows, reg.cols), array.shape)) > with RasterRow(rastname, mode='w', mtype=mtype) as new: > newrow = Buffer((array.shape[1],), mtype=mtype) > for row in array: > newrow[:] = row[:] > new.put_row(newrow) > }}} > > Any concern on this? > > Best regards > > Pietro > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jyotimisra.99 at gmail.com Tue Mar 24 23:20:09 2015 From: jyotimisra.99 at gmail.com (jyoti misra) Date: Wed, 25 Mar 2015 11:50:09 +0530 Subject: [GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS In-Reply-To: References: Message-ID: Hello, Sorry for the late reply. I was busy with exams last week. I compiled the code from source, read a tutorial on grass gis and I am fairly comfortable with grass environment. I was looking into the Bug: "Quotes not preserved in command after pressing enter in GUI command console" and tried it out on my machine. I was trying to fix it and I think most probably it's some problem with regex search which is deleting the quotes from the command. I was looking into the code for fixing the bug but couldn't find the relevant file to change. Could you please guide me with that. Also for the enhancement: "Button, documentation and perhaps something more interactive for finding EPSG codes online rather then in GRASS GIS list" I was thinking of more interactive process of using EPSG - 1. We can merge epsg.io code into our existing structure. http://epsg.io/ 2. We can add a button that will redirect users to epsg.io I would like to have your suggestions on the same I know I am running a bit late with the bug fixing but I can assure you I won't disappoint you during the course of project. I am very interested in doing GSOC under grass org as it will be an added advantage to my ongoing research in computer science and spatial informatics. I would be thankful if you could help me with submitting GSOC proposal. Regards Jyoti On Thu, Mar 12, 2015 at 9:10 AM, Vaclav Petras wrote: > Hello. > > On Tue, Mar 10, 2015 at 3:46 PM, jyoti misra > wrote: > > > > Dear Sir/Madam, > > > > Myself Jyoti currently working under Dr. KS Rajan as a research student > in Spatial Informatics Lab, IIIT hyderabad . I am currently working in Land > Use modelling of Barrack valley region. Previously i have worked on > Billboard placement optimization problem considering the spatial ,temporal > and traffic features. > > > > I am interested in working with grass org under the project "GUI plugin > system for GRASS GIS". The project is interesting and I have some idea of > the technologies requires for the project as i have already worked in > Python , c/c++. > > Good. Now you should find some enhancements or bugs in GRASS GIS bug > tracker [1] and implement or fix them before the application evaluation to > show level of you proficiency [2, 3]. > > You can also select from this list: > > Enhancement: Let users save/load SQL statements in wxGUI attribute table > manager > http://trac.osgeo.org/grass/ticket/1205 > > Bug: Quotes not preserved in command after pressing enter in GUI command > console > http://trac.osgeo.org/grass/ticket/1435 > http://trac.osgeo.org/grass/ticket/1437 > > Enhancement: Store map elements such as legend, text and scale bar in > workspace file. > http://trac.osgeo.org/grass/ticket/2484 > > Enhancement: Possibility to automatically load last used workspace when > GRASS GIS GUI starts > http://trac.osgeo.org/grass/ticket/2604 > > Enhancement: Store recently used workspaces and offer them in the menu > http://trac.osgeo.org/grass/ticket/2604 > > Enhancement: Implement georeferenced image output for "Save display..." > function in GUI and d.out.file module (and its wxGUI implementation) > http://trac.osgeo.org/grass/ticket/977 > > Bug: Undefined settings variable issue in bivariate scatterplot tool > http://trac.osgeo.org/grass/ticket/2247 > > Enhancement: Button, documentation and perhaps something more interactive > for finding EPSG codes online rather then in GRASS GIS list > http://trac.osgeo.org/grass/ticket/26 > > However, you can explore the open issues on GRASS GIS bug tracker > yourself. Just keep in mind that this GSoC project would be in Python and > wxPython. You can attempt to solve more of these tasks, the more the > better. In any case, the thing you select and do should be in Python and > should sufficiently represent your skills. Draft implementation of non-GUI > (model) part of the plugin system would be helpful to understand the issues > which you should address in the application. > > In any case, start with compiling GRASS GIS from source code (trunk) from > Subversion repository [4], reading tips for students [5] and going through > instructions for other students [6, 7] (you can use Nabble [8] for that). > > Also read Submitting rules [9] and how-to [10] for wxGUI development. Also > learn how to do basic tasks in GRASS GIS graphical user interface (called > wxGUI), use e.g. GRASS wiki or the manual as learning resource. > > Please, always create a new thread on mailing list for distinct topics. > > Best, > Vaclav > > [1] https://trac.osgeo.org/grass/query > [2] > http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students > [3] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html > [4] http://trac.osgeo.org/grass/wiki/DownloadSource > [5] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents > [6] http://lists.osgeo.org/pipermail/grass-dev/2015-March/074420.html > [7] http://lists.osgeo.org/pipermail/grass-dev/2015-March/074433.html > [8] http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html > [9] http://trac.osgeo.org/grass/wiki/Submitting/wxGUI > [10] http://grasswiki.osgeo.org/wiki/WxGUI_Programming_Howto > > > Please guide me in the project and provide some docs and links where i > can proceed with solving it. Also I want to know whether someone is already > committed to this Project or not? > > > > Regards, > > Jyoti Misra > > Btech and Ms by research in Spatial Informatics > > International Institute Of Information Technology ,Hyderabad > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucadeluge at gmail.com Tue Mar 24 23:30:43 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Wed, 25 Mar 2015 07:30:43 +0100 Subject: [GRASS-dev] GSOC: Complete basic cartography suite in GRASS GIS wxGUI Map Display In-Reply-To: References: Message-ID: On 12 March 2015 at 11:07, Adam La?a wrote: > Hi devs, > Hi Adam, > recenlty I expressed my interest in one of your GSoC topic [1]. I was > further reading and found out there is another topic Complete basic > cartography suite in GRASS GIS wxGUI Map Display that is quite related to > maps display. Also I noticed there are requirements of Python, wxPython and > C, which are languages I have some experience and in which I'd like to > improve. > Is there anyone to mentor him? I think there is another candidate but, you should also propose the same topics... the submissions stop this friday! > Adam Laza > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From lucadeluge at gmail.com Tue Mar 24 23:33:55 2015 From: lucadeluge at gmail.com (Luca Delucchi) Date: Wed, 25 Mar 2015 07:33:55 +0100 Subject: [GRASS-dev] GSOC 2015: Improved Metadata for GRASS GIS In-Reply-To: References: Message-ID: On 11 March 2015 at 01:55, Matej Krejci wrote: > Hi all, > Hi, > Last GSOC I was working on ISO based metadata management for GRASS. In this > term I was created 'package' wx.metadata which is currently available in > GRASS add-ons. This part was essential. During playing with possibilities of > implementation I did a draft of metadata catalogue which is the main task of > current GSOC topic[1]. Moreover to implement additional functions (see > list[1]) for current metadata modules is more than suitable. > Since last GSOC I am still slightly in coding for GRASS and I like to > continue in this topic. Please let me know if the topic is still free. > Yes, I think it is still free, please submit your proposal. I saw that you have already a mentor a co-mentor, I added myself as co-mentor too. Friday is the last day for submissions... > Thanks in advance, > Matej > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From trac at osgeo.org Wed Mar 25 00:11:57 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 25 Mar 2015 07:11:57 -0000 Subject: [GRASS-dev] [GRASS GIS] #2606: Bugs in r.sun In-Reply-To: <042.0c578eee7068ec8f15b5021f378c131f@osgeo.org> References: <042.0c578eee7068ec8f15b5021f378c131f@osgeo.org> Message-ID: <051.b95204af2230843f2006fe643c8213e8@osgeo.org> #2606: Bugs in r.sun ----------------------+----------------------------------------------------- Reporter: ojni0001 | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: unspecified Keywords: r.sun | Platform: MSWindows 7 Cpu: x86-64 | ----------------------+----------------------------------------------------- Comment(by ojni0001): I can try creating a test, but it will take some time. I haven't really used Python before and I created the shell script first time for testing above simulation. However, by looking at the page you provided, I may be able to create one. --- Nirmal Replying to [comment:2 wenzeslaus]: > Replying to [ticket:2606 ojni0001]: > > For testing I have attached a zipped file (simulation for slope 0 to 90, step 10 degrees and for aspect 0 to 360, step 15 degrees) with the script and sample elevation (flat landscape) file. The table may look a bit different but the pattern will be similar. > > > > Can you create a test which would be able to run in a fully automated way? Something like: > > * source:grass/trunk/temporal/t.rast.accdetect/testsuite > > General information about writing tests is here: > > * http://grass.osgeo.org/grass71/manuals/libpython/gunittest_testing.html -- Ticket URL: GRASS GIS From peter.zamb at gmail.com Wed Mar 25 00:59:03 2015 From: peter.zamb at gmail.com (Pietro) Date: Wed, 25 Mar 2015 08:59:03 +0100 Subject: [GRASS-dev] g.parser and link a relation between parameters Message-ID: Hi devs, may be I'm missing something stupid, but if I want to write a GRASS modules that takes two different vectors and allows for each vetor to select a column, something like: {{{ #%module #% description: Test #% keyword: vector #%end #%option G_OPT_V_INPUT #% key: vect0 #%end #%option G_OPT_V_FIELD #% key: vect0_layer #% required: no #%end #%option G_OPT_DB_COLUMN #% key: vect0_column_cost #%end #%option G_OPT_DB_COLUMN #% key: vect0_column_maintenance #%end #%option G_OPT_V_INPUT #% key: vect1 #%end #%option G_OPT_V_FIELD #% key: vect1_layer #% required: no #%end #%option G_OPT_DB_COLUMN #% key: vect0_column_other #%end #%option G_OPT_V_OUTPUT #%end from pprint import pprint import grass.script.core as gcore def main(options, flags): pprint(options) pprint(flags) if __name__ == "__main__": main(*gcore.parser()) }}} How can I say to WxGui that vect0_column_cost should display a combobox with the available columns of the table linked with a layer specify in vect0_layer of the vector map with name specify in vect0? For the GRASS addons and GUI that we are developing we decide to use the same root word: "vect0" and "vect1" to link the different parameters to the vector, there are any better way to solve this? May be something that it is working natively in GRASS? Thank you for your help. Pietro From radim.blazek at gmail.com Wed Mar 25 01:33:06 2015 From: radim.blazek at gmail.com (Radim Blazek) Date: Wed, 25 Mar 2015 09:33:06 +0100 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding Message-ID: The first package is financed by 29 contributors! Many thanks to everybody who contributed so far. Please keep on contributing. Radim On Mon, Mar 23, 2015 at 7:56 PM, Radim Blazek wrote: > Hi all, > > I have finally launched the crowdfunding campaign to support the GRASS > plugin upgrade. Briefly, it covers upgrade to GRASS 7, browser > integration, drag-and-drop import and new vector editing. All the > details are available here: > > http://www.gissula.eu/qgis-grass-plugin-crowdfunding/ > > Please propagate this info to all relevant channels, national mailing lists etc. > > Radim From mlennert at club.worldonline.be Wed Mar 25 04:49:14 2015 From: mlennert at club.worldonline.be (Moritz Lennert) Date: Wed, 25 Mar 2015 12:49:14 +0100 Subject: [GRASS-dev] Planning GRASS GIS 6.4.5 release In-Reply-To: References: Message-ID: <5512A0BA.7060304@club.worldonline.be> On 24/03/15 22:31, Martin Landa wrote: > 2015-03-24 22:25 GMT+01:00 Markus Neteler : >> Time to prepare a RC1? Anything still needs to be backported before RC1? > > +1 for RC1. Martin > +1 Moritz From wenzeslaus at gmail.com Wed Mar 25 06:29:12 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Wed, 25 Mar 2015 09:29:12 -0400 Subject: [GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS In-Reply-To: References: Message-ID: On Wed, Mar 25, 2015 at 2:20 AM, jyoti misra wrote: > I was looking into the Bug: "Quotes not preserved in command after > pressing enter in GUI command console" and tried it out on my machine. I > was trying to fix it and I think most probably it's some problem with regex > search which is deleting the quotes from the command. > I was looking into the code for fixing the bug but couldn't find the > relevant file to change. Could you please guide me with that. > > It will be probably one of those: http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/core/gconsole.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/core/gcmd.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/prompt.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/pystc.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/goutput.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/lmgr/frame.py > Also for the enhancement: "Button, documentation and perhaps something > more interactive for finding EPSG codes online rather then in GRASS GIS > list" I was thinking of more interactive process of using EPSG - > 1. We can merge epsg.io code into our existing structure. http://epsg.io/ > This is not desirable. Although there might be some places to get inspired from what the system offers while GRASS system lacks. > 2. We can add a button that will redirect users to epsg.io > This is the most simple and straightforward way how to implement this. Button can just open a web browser. There is a standard way in wxPython to do this. > I would like to have your suggestions on the same Alternative is to somehow use their URLs (or API if there is some) to do some search or show additional information about the projection. This needs a more detailed analysis of the problem. The button mentioned before would be a good start. Even with a simple button, the opened URL could also include something like currently searched URL. Vaclav -------------- next part -------------- An HTML attachment was scrubbed... URL: From wenzeslaus at gmail.com Wed Mar 25 06:36:06 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Wed, 25 Mar 2015 09:36:06 -0400 Subject: [GRASS-dev] GSOC: Complete basic cartography suite in GRASS GIS wxGUI Map Display In-Reply-To: References: Message-ID: On Wed, Mar 25, 2015 at 2:30 AM, Luca Delucchi wrote: > > recenlty I expressed my interest in one of your GSoC topic [1]. I was > > further reading and found out there is another topic Complete basic > > cartography suite in GRASS GIS wxGUI Map Display that is quite related to > > maps display. Also I noticed there are requirements of Python, wxPython > and > > C, which are languages I have some experience and in which I'd like to > > improve. > > > > Is there anyone to mentor him? So far, there are three co-mentors. I can also join the group (I actually wrote this idea down) but I don't have experience with C code for display drivers and modules or NVIZ. I have, however, a strong opinion on which items from the list should be the priority. http://trac.osgeo.org/grass/wiki/GSoC/2015#CompletebasiccartographysuiteinGRASSGISwxGUIMapDisplay -------------- next part -------------- An HTML attachment was scrubbed... URL: From jyotimisra.99 at gmail.com Wed Mar 25 07:51:59 2015 From: jyotimisra.99 at gmail.com (jyoti misra) Date: Wed, 25 Mar 2015 20:21:59 +0530 Subject: [GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS In-Reply-To: References: Message-ID: I was looking into the files you sent and I think I am going in the right direction. I will try to complete the task as soon as possible. As for the enhancement I was thinking of creating a search box in our current structure that takes the users query and redirects it to the result page of espg.io with the query. For e.g. if I search India redirect URL will be http://epsg.io/?q=india. But where exactly do I need to make the changes? Please help me with that. Regards Jyoti On Wed, Mar 25, 2015 at 6:59 PM, Vaclav Petras wrote: > > On Wed, Mar 25, 2015 at 2:20 AM, jyoti misra > wrote: > >> I was looking into the Bug: "Quotes not preserved in command after >> pressing enter in GUI command console" and tried it out on my machine. I >> was trying to fix it and I think most probably it's some problem with regex >> search which is deleting the quotes from the command. >> I was looking into the code for fixing the bug but couldn't find the >> relevant file to change. Could you please guide me with that. >> >> It will be probably one of those: > > > http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/core/gconsole.py > http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/core/gcmd.py > > http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/prompt.py > > http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/pystc.py > > http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/goutput.py > http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/lmgr/frame.py > > >> Also for the enhancement: "Button, documentation and perhaps something >> more interactive for finding EPSG codes online rather then in GRASS GIS >> list" I was thinking of more interactive process of using EPSG - >> 1. We can merge epsg.io code into our existing structure. http://epsg.io/ >> > > This is not desirable. Although there might be some places to get inspired > from what the system offers while GRASS system lacks. > > >> 2. We can add a button that will redirect users to epsg.io >> > > This is the most simple and straightforward way how to implement this. > Button can just open a web browser. There is a standard way in wxPython to > do this. > > >> I would like to have your suggestions on the same > > > Alternative is to somehow use their URLs (or API if there is some) to do > some search or show additional information about the projection. This needs > a more detailed analysis of the problem. The button mentioned before would > be a good start. Even with a simple button, the opened URL could also > include something like currently searched URL. > > Vaclav > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kratochanna at gmail.com Wed Mar 25 08:03:56 2015 From: kratochanna at gmail.com (=?UTF-8?B?QW5uYSBQZXRyw6HFoW92w6E=?=) Date: Wed, 25 Mar 2015 11:03:56 -0400 Subject: [GRASS-dev] g.parser and link a relation between parameters In-Reply-To: References: Message-ID: On Wed, Mar 25, 2015 at 3:59 AM, Pietro wrote: > Hi devs, > > may be I'm missing something stupid, but if I want to write a GRASS > modules that takes two different vectors and allows for each vetor to > select a column, something like: > > {{{ > #%module > #% description: Test > #% keyword: vector > #%end > #%option G_OPT_V_INPUT > #% key: vect0 > #%end > #%option G_OPT_V_FIELD > #% key: vect0_layer > #% required: no > #%end > #%option G_OPT_DB_COLUMN > #% key: vect0_column_cost > #%end > #%option G_OPT_DB_COLUMN > #% key: vect0_column_maintenance > #%end > #%option G_OPT_V_INPUT > #% key: vect1 > #%end > #%option G_OPT_V_FIELD > #% key: vect1_layer > #% required: no > #%end > #%option G_OPT_DB_COLUMN > #% key: vect0_column_other > #%end > #%option G_OPT_V_OUTPUT > #%end > from pprint import pprint > import grass.script.core as gcore > > > def main(options, flags): > pprint(options) > pprint(flags) > > if __name__ == "__main__": > main(*gcore.parser()) > }}} > > How can I say to WxGui that vect0_column_cost should display a > combobox with the available columns of the table linked with a layer > specify in vect0_layer of the vector map with name specify in vect0? > > For the GRASS addons and GUI that we are developing we decide to use > the same root word: "vect0" and "vect1" to link the different > parameters to the vector, there are any better way to solve this? May > be something that it is working natively in GRASS? > > There is 'guidependency' in parser, look at http://trac.osgeo.org/grass/changeset/64914 The problem is that in case of 2 vector inputs, the gui is not working properly - the layers and columns are not found for the second vector. I haven't look into it yet. Anna Thank you for your help. > > Pietro > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wenzeslaus at gmail.com Wed Mar 25 08:10:53 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Wed, 25 Mar 2015 11:10:53 -0400 Subject: [GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS In-Reply-To: References: Message-ID: On Wed, Mar 25, 2015 at 10:51 AM, jyoti misra wrote: > As for the enhancement I was thinking of creating a search box in our > current structure that takes the users query and redirects it to the result > page of espg.io with the query. For e.g. if I search India redirect URL > will be http://epsg.io/?q=india. > There is no user location information available in GRASS GIS, wxPython or standard Python packages as far as I know. So this seems quite challenging. > But where exactly do I need to make the changes? Please help me with that. http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/location_wizard -------------- next part -------------- An HTML attachment was scrubbed... URL: From wenzeslaus at gmail.com Wed Mar 25 09:04:35 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Wed, 25 Mar 2015 12:04:35 -0400 Subject: [GRASS-dev] GSOC Query In-Reply-To: References: Message-ID: Hi Neha, this should discussed on the grass-dev mailing list, so I'm answering also there. On Wed, Mar 25, 2015 at 11:34 AM, Neha Pande wrote: > > [...] > > My name is Neha and working under Dr. KS Rajan as a research student in Spatial Informatics Lab, IIIT-Hyderabad. I had wriiten to osgeo mailing list previously introducing myself. > > I am interested in working with grass org under the project "New easy-to-use command line interface for GRASS GIS". > > [...] Please read my answer to another student applying for the same topic [1]. For bugfixing, you can choose whatever bug/enhancement mentioned there or of course some of your own if you think it would be appropriate. Duplication of topics in student applications is not an issue but read also the details of selection process for this year [2]. Best regards, Vaclav [1] http://lists.osgeo.org/pipermail/grass-dev/2015-March/074433.html [2] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From radim.blazek at gmail.com Wed Mar 25 12:34:40 2015 From: radim.blazek at gmail.com (Radim Blazek) Date: Wed, 25 Mar 2015 20:34:40 +0100 Subject: [GRASS-dev] QGIS GRASS Plugin Upgrade Crowdfunding In-Reply-To: References: Message-ID: Special thanks to Andreas Neumann from City of Uster (http://gis.uster.ch/), Switzerland. Thanks to his 1000 euro we quickly got over 2000! Only 234 euro missing to reach the second package. Thanks to all contributors. Radim On Wed, Mar 25, 2015 at 9:33 AM, Radim Blazek wrote: > The first package is financed by 29 contributors! > Many thanks to everybody who contributed so far. > > Please keep on contributing. > > Radim > > > On Mon, Mar 23, 2015 at 7:56 PM, Radim Blazek wrote: >> Hi all, >> >> I have finally launched the crowdfunding campaign to support the GRASS >> plugin upgrade. Briefly, it covers upgrade to GRASS 7, browser >> integration, drag-and-drop import and new vector editing. All the >> details are available here: >> >> http://www.gissula.eu/qgis-grass-plugin-crowdfunding/ >> >> Please propagate this info to all relevant channels, national mailing lists etc. >> >> Radim From wenzeslaus at gmail.com Wed Mar 25 14:04:17 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Wed, 25 Mar 2015 17:04:17 -0400 Subject: [GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS In-Reply-To: References: Message-ID: On Wed, Mar 25, 2015 at 4:13 PM, jyoti misra wrote: > Hello, > > Hi, please keep conversation on the mailing list, so other people can follow or participate. > Regarding Bug : Quotes not preserved in command after pressing enter in > GUI command console > My idea: > > - Find the code which is taking command as input and passing it to > RunCommand function. > - Most probably error is in reading the input from stdin and storing > it in variable. > - Code might be running some regex search(or something similar) to > remove everything expect alphanumeric characters from the command string. > - My approach to fix this bug is to find that point and study for the > cause of error and fix it. > > Regarding enhancements to add epsg code : > My idea as described earlier : > > - Add a button and a text box to the current implementation of > wizard.py which will take location as an input and redirect the user to > epsg.io with the url "epsg.io/?q=location" . > - This is will require to read the input from the user and appending > it to epsg.io URL. > - User can then select among the different search results on the > espg.io page he is redirected to. > > But with both tasks I am getting same problem, the code is very big and > there are many files to look into, and I'm not able to find the exact place > to do the corrections/enhancements. I know what to do in both situations > but lack the complete and exact knowledge of GRASS code structure. Can you > please guide me to the exact line of code where the changes have to be made. > Sorry, I cannot do that. If I would know where (and how) to fix it I would already do that. You must understand that although now this serves as an exercise for GSoC, it is a real issue which is in GRASS. Also, for the GSoC you will need to understand the existing code to certain extended to be able to incorporate your code and to fix the bugs which can emerge in both new and existing code. Vaclav > Regards, > > Jyoti > On Wed, Mar 25, 2015 at 8:40 PM, Vaclav Petras > wrote: > >> On Wed, Mar 25, 2015 at 10:51 AM, jyoti misra >> wrote: >> >>> As for the enhancement I was thinking of creating a search box in our >>> current structure that takes the users query and redirects it to the result >>> page of espg.io with the query. For e.g. if I search India redirect URL >>> will be http://epsg.io/?q=india. >>> >> >> There is no user location information available in GRASS GIS, wxPython or >> standard Python packages as far as I know. So this seems quite challenging. >> >> >>> But where exactly do I need to make the changes? Please help me with >>> that. >> >> >> >> http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/location_wizard >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Wed Mar 25 15:54:13 2015 From: trac at osgeo.org (GRASS GIS) Date: Wed, 25 Mar 2015 22:54:13 -0000 Subject: [GRASS-dev] [GRASS GIS] #2637: Get direction raster in clockwise degrees starting from the North Message-ID: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> #2637: Get direction raster in clockwise degrees starting from the North -------------------------+-------------------------------------------------- Reporter: cgravelm | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: | Platform: MacOSX Cpu: Unspecified | -------------------------+-------------------------------------------------- I have been looking for a way to create a raster direction map using a DEM in GRASS (I am currently using the stable 7.0.0 version). So far, the 3 different scripts that do so (r.param.scale, r.shaded.aspect, and r.fill.dir) assume that 0 is at the East and count counterclockwise from there. The only way I can create a clockwise direction map with 0 at the North is to use the format "agnps" in r.fill.dir. However, this creates a map with directions ranging from 0 (equivalent to 0) to 8 (equivalent to 360 degrees), which can be easily transformed into a 0-360 scale, but lacks precision. Would it be possible to add a flag in one of those scripts to create maps in degrees that have 0 to the North, 90 to the East and so forth? It would make it easier to integrate GRASS rasters to agent-based models. -- Ticket URL: GRASS GIS From trac at osgeo.org Wed Mar 25 17:24:37 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 26 Mar 2015 00:24:37 -0000 Subject: [GRASS-dev] [GRASS GIS] #2637: Get direction raster in clockwise degrees starting from the North In-Reply-To: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> References: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> Message-ID: <051.4df8fad7698bbe1b360c71849654d084@osgeo.org> #2637: Get direction raster in clockwise degrees starting from the North -------------------------+-------------------------------------------------- Reporter: cgravelm | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: | Platform: MacOSX Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by annakrat): You can just use r.mapcalc "angle_cw = -angle_ccw + 450", this will give you what you need. It outputs angles from 90 to 450, but that's typically not a problem. I guess it could be implemented in r.slope.aspect. -- Ticket URL: GRASS GIS From nik at nikosalexandris.net Thu Mar 26 01:54:27 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Thu, 26 Mar 2015 10:54:27 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> Message-ID: Vaclav Petras wrote: > Please share also the diff. Works for me. Nikos -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: r.sun.daily.py.diff URL: From nik at nikosalexandris.net Thu Mar 26 02:04:08 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Thu, 26 Mar 2015 11:04:08 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> Message-ID: <8d5700ca24d175e6fdc54cd15dc5ccca@nikosalexandris.net> Disregard the previous one. This one without old 'rast' entries (instead, new 'raster'). Nikos -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: r.sun.daily.py.diff URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: r.sun.daily.py Type: text/x-python Size: 18666 bytes Desc: not available URL: From trac at osgeo.org Thu Mar 26 02:34:36 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 26 Mar 2015 09:34:36 -0000 Subject: [GRASS-dev] [GRASS GIS] #2637: Get direction raster in clockwise degrees starting from the North In-Reply-To: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> References: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> Message-ID: <051.04c059d36dbac5da59ab76fd61f25c4e@osgeo.org> #2637: Get direction raster in clockwise degrees starting from the North -------------------------+-------------------------------------------------- Reporter: cgravelm | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: | Platform: MacOSX Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by hellik): Replying to [ticket:2637 cgravelm]: > I have been looking for a way to create a raster direction map using a DEM in GRASS (I am currently using the stable 7.0.0 version). So far, the 3 different scripts that do so (r.param.scale, r.shaded.aspect, and r.fill.dir) assume that 0 is at the East and count counterclockwise from there. The only way I can create a clockwise direction map with 0 at the North is to use the format "agnps" in r.fill.dir. However, this creates a map with directions ranging from 0 (equivalent to 0) to 8 (equivalent to 360 degrees), which can be easily transformed into a 0-360 scale, but lacks precision. > > Would it be possible to add a flag in one of those scripts to create maps in degrees that have 0 to the North, 90 to the East and so forth? It would make it easier to integrate GRASS rasters to agent-based models. have a look e.g. at [http://trac.osgeo.org/grass/browser/grass- addons/grass7/raster/r.northerness.easterness/r.northerness.easterness.py#L61 aspect angles from cartesian (GRASS default) to compass angles] for a r.mapcalc calculation -- Ticket URL: GRASS GIS From trac at osgeo.org Thu Mar 26 02:48:41 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 26 Mar 2015 09:48:41 -0000 Subject: [GRASS-dev] [GRASS GIS] #2637: Get direction raster in clockwise degrees starting from the North In-Reply-To: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> References: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> Message-ID: <051.a75b5f8fd0a9f25987de516a1b8d31ad@osgeo.org> #2637: Get direction raster in clockwise degrees starting from the North -------------------------+-------------------------------------------------- Reporter: cgravelm | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: | Platform: MacOSX Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by neteler): Replying to [comment:1 annakrat]: > You can just use r.mapcalc "angle_cw = -angle_ccw + 450", this will give you what you need. It outputs angles from 90 to 450, but that's typically not a problem. ... or you solve it with an if() condition. Shell script solution: {{{ rotate_angle() { is_negative=`echo "$1" | awk '{printf "%d\n", $1 < 0. ? 1 : 0}'` if [ $is_negative -eq 0 ] ; then tmp=`echo "$1" | awk '{printf "%f\n", 360. - $1 + 90.}'` tmp=`echo "$tmp" | awk '{printf "%f\n", $1 >= 360. ? $1 - 360. : $1}'` echo "$tmp" else echo "NA" fi } rotate_angle 270 #[1] 180 rotate_angle 180 #[1] 270 }}} Likewise you could use r.mapcalc and its eval() function. > I guess it could be implemented in r.slope.aspect. Note the (old) patch: raster/r.slope.aspect/r_sl_asp_northangle_diffs.tar.gz Important: the output of r.slope.aspect can be used as input elsewhere, hence a flag would increase the risk to mess up subsequent calculations. -- Ticket URL: GRASS GIS From trac at osgeo.org Thu Mar 26 02:57:42 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 26 Mar 2015 09:57:42 -0000 Subject: [GRASS-dev] [GRASS GIS] #2637: Get direction raster in clockwise degrees starting from the North In-Reply-To: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> References: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> Message-ID: <051.2ac7b58f1faddbcc0d9d900b66fdcb06@osgeo.org> #2637: Get direction raster in clockwise degrees starting from the North -------------------------+-------------------------------------------------- Reporter: cgravelm | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: | Platform: MacOSX Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by hellik): Replying to [comment:3 neteler]: > Replying to [comment:1 annakrat]: > > You can just use r.mapcalc "angle_cw = -angle_ccw + 450", this will give you what you need. It outputs angles from 90 to 450, but that's typically not a problem. > > ... or you solve it with an if() condition. taken from a python script {{{ grass.mapcalc("$outmap = if( $cartesian == 0, 0, if( $cartesian < 90, 90 - $cartesian, 360 + 90 - $cartesian) )", outmap = r_aspect_compass, cartesian = r_aspect) }}} -- Ticket URL: GRASS GIS From nik at nikosalexandris.net Thu Mar 26 05:13:54 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Thu, 26 Mar 2015 14:13:54 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <8d5700ca24d175e6fdc54cd15dc5ccca@nikosalexandris.net> References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> <8d5700ca24d175e6fdc54cd15dc5ccca@nikosalexandris.net> Message-ID: <418456ed6a12c8ff3fe8b1d2eb9b6ddc@nikosalexandris.net> Note to self: from the command history, add several one liners in the test script for r.sun.daily.py Nikos From trac at osgeo.org Thu Mar 26 07:13:05 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 26 Mar 2015 14:13:05 -0000 Subject: [GRASS-dev] [GRASS GIS] #2523: wxGUI digitiser - GRASS 7.0.0beta4 / persists in 7.1.svn (r64690M) (was: wxGUI digitiser - GRASS 7.0.0beta4) In-Reply-To: <038.86eb3263b7fa15d2069c9a0d34f41735@osgeo.org> References: <038.86eb3263b7fa15d2069c9a0d34f41735@osgeo.org> Message-ID: <047.e2c2808835aa962d612a27df61552a0a@osgeo.org> #2523: wxGUI digitiser - GRASS 7.0.0beta4 / persists in 7.1.svn (r64690M) -----------------------------+---------------------------------------------- Reporter: jeir | Owner: grass-dev@? Type: defect | Status: new Priority: normal | Milestone: 7.1.0 Component: wxGUI | Version: svn-trunk Keywords: digitizer, .gxw | Platform: MacOSX Cpu: OSX/Intel | -----------------------------+---------------------------------------------- Changes (by jeir): * keywords: digitizer => digitizer, .gxw * version: svn-releasebranch70 => svn-trunk * milestone: 7.0.0 => 7.1.0 Comment: I have come across the following irregular/erratic slightly annoying behaviour of the GRASS 7 wxgui, following up this ticket. Environment [Mac OS X 10.10.2] [Mac OS X 10.7.5] [GRASS GIS 7.1.svn (r64690M)] --- Point 1 (Only applies to Mac OS X 10.7.5, as far as I can tell) Open GRASS in nc_spm_08_grass7, User1 g.copy vector=roadsmajor at PERMANENT,test_roadsmajor Add vector map layer test_roadsmajor is displayed - On GRASS GIS 7.1.svn Map Display: 1 - Location: nc_spm_08_grass7 at user1 Select Vector digitizer on right hand button-palette Left hand layer select button - palette has one option: New vector map On Layer Manager window, switch to roadsmajor at PERMANENT On Map Display Window - click on Layer select button-palette, voila: test_roadsmajor layer is a visible option. Selecting it activates digitizer on that map Problem: The layer button-palette options do not get updated, when the Add layer option is used --- Point 2 (Applies to both Mac OS X 10.7.5 and Mac OS X 10.10.2) Same session Resize (enlarge) GRASS GIS 7.1.svn Map Display: 1 - Location: nc_spm_08_grass7 at user1 window File-Workspace-Save as- _test.gxw EXIT GRASS GIS and QUIT GRASS GIS 7.1.svn Map Display: 1 - Location: nc_spm_08_grass7 at user1 Start GRASS GIS - same location and mapset File-Workspace-Open- _test.gxw The GRASS GIS 7.1.svn Map Display: 1 - Location: nc_spm_08_grass7 at user1 window opens up in Save as size, but the test_roadsmajor map is not zoomed to the window size, rather it is displayed in the default display window size. One resize of the window updates the zoom to fuill current (saved) window size. Problem: The map is not zoomed to window size as the Workspace file is opened. --- Point 3 (Applies to both Mac OS X 10.7.5 and Mac OS X 10.10.2) After opening the Vector digitizer, the Quit digitizer button is sometimes not visible until the window has been resized. This seems to be independent of the size of the window at the moment the digitizer is activated. Problem: Lower row on the Map Display window is not updated when the Vector digitizer is activated, even though the window is wide enough. -- Ticket URL: GRASS GIS From trac at osgeo.org Thu Mar 26 12:47:06 2015 From: trac at osgeo.org (GRASS GIS) Date: Thu, 26 Mar 2015 19:47:06 -0000 Subject: [GRASS-dev] [GRASS GIS] #2637: Get direction raster in clockwise degrees starting from the North In-Reply-To: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> References: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> Message-ID: <051.ec81da728c98973ebbf60d77d899cae4@osgeo.org> #2637: Get direction raster in clockwise degrees starting from the North -------------------------+-------------------------------------------------- Reporter: cgravelm | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: | Platform: MacOSX Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by cmbarton): Replying to [comment:3 neteler]: > Replying to [comment:1 annakrat]: > > You can just use r.mapcalc "angle_cw = -angle_ccw + 450", this will give you what you need. It outputs angles from 90 to 450, but that's typically not a problem. > > ... or you solve it with an if() condition. > > Shell script solution: > > {{{ > rotate_angle() > { > is_negative=`echo "$1" | awk '{printf "%d\n", $1 < 0. ? 1 : 0}'` > > if [ $is_negative -eq 0 ] ; then > tmp=`echo "$1" | awk '{printf "%f\n", 360. - $1 + 90.}'` > tmp=`echo "$tmp" | awk '{printf "%f\n", $1 >= 360. ? $1 - 360. : $1}'` > echo "$tmp" > else > echo "NA" > fi > } > > rotate_angle 270 > #[1] 180 > rotate_angle 180 > #[1] 270 > }}} > > Likewise you could use r.mapcalc and its eval() function. > > > I guess it could be implemented in r.slope.aspect. > > Note the (old) patch: > > raster/r.slope.aspect/r_sl_asp_northangle_diffs.tar.gz > > Important: the output of r.slope.aspect can be used as input elsewhere, hence a flag would increase the risk to mess up subsequent calculations. I don't see how a flag would mess up other calculations. Different other routines use different ways of representing aspect. So you need to know what is needed and select that even now. There are also potential uses that could benefit by having aspect in the cardinal directions. It is a pain to always have to convert the output to make it readable for humans in normal ways too. A simple flag seems like a nice improvement here. Michael -- Ticket URL: GRASS GIS From wenzeslaus at gmail.com Thu Mar 26 20:12:50 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Thu, 26 Mar 2015 23:12:50 -0400 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <8d5700ca24d175e6fdc54cd15dc5ccca@nikosalexandris.net> References: <7e69e54cd5408abb25b64ac123379c5b@nikosalexandris.net> <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> <8d5700ca24d175e6fdc54cd15dc5ccca@nikosalexandris.net> Message-ID: On Thu, Mar 26, 2015 at 5:04 AM, Nikos Alexandris wrote: > Disregard the previous one. This one without old 'rast' entries (instead, > new 'raster'). > > Looks OK (I'm only looking at the source code). Just few things: It seems you removed the option to add timestamps without registering to temporal database. I would just leave the else there. (You may want to create timestamps but not register or register later.) It seems that tgis.open_new_stds is actually not according to PEP8. At least one contains whitespace at the end, rerun pep8. I'm not sure if this is part of PEP8 but "comment graphics" is often discouraged; I personally don't see a reason for: # add timestamps either via temporal framework ---------------------- # ------------------------------------------ outputs timestamped --- It would be much better to include there actual sentence(s) which will be explanatory even for everybody. (I know what is behind "outputs timestamped" because I remember Soeren's commit but I don't think that this is well documented and generally known.) Update Copyright year (I think it is OK to use 2013-2015 for simplicity - precise info is in Subversion). When you are doing stylistic changes, you can also put spaces around assignment in r.mapcalc expressions. For your todo: picture to the manual would be nice (perhaps two or three from a series). Nice work otherwise (e.g. option dependencies)! Vaclav Nikos > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jnoortheen at gmail.com Thu Mar 26 22:17:06 2015 From: jnoortheen at gmail.com (Noortheen Raja) Date: Thu, 26 Mar 2015 22:17:06 -0700 Subject: [GRASS-dev] Mapnik rendering engine for GRASS GIS Message-ID: First of all I am really sorry for informing very lately. I want to participate in the GSoC'15 as a student, To get myself familiar with the GRASS GIS development environment I wanted to update s.vol.idw (GRASS GIS 5.3) to the new vector and Rast3d architecture in the GRASS GIS 7. I started this before one month. It is also involved in my Academic Project. Now I feel myself familiar to the GRASS GIS dev environment. I have proficient knowledge in C, C++ and Python. I have created a desktop application using PyQt so I will easily get familiarized with the wxWidgets. So that I wanted to choose this Idea. I am very sorry for this last minute request. If there is any assignment slot assigned to this idea, I am ready to do that. Please guide ma. . . Regards, Noortheen Raja J B.E. in Geo-Informatics Anna University, Chennai, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: From amitabh.tiwari27 at gmail.com Fri Mar 27 01:31:01 2015 From: amitabh.tiwari27 at gmail.com (Amitabh) Date: Fri, 27 Mar 2015 14:01:01 +0530 Subject: [GRASS-dev] Proposal for GSoC-2015 Message-ID: Hello everyone, *My proposal:* I propose to develop a software to mine RSI images' spectral bands including the visual,ultraviolet and infrared bands.This geospatial mining will be done at bit level of bands to ensure maximum accuracy.If you look at the products available in the market they offer predictions for the entire image instead I would allow users to choose customized areas to mine upon. *How this process would work?* *-->*This software can be used for multiple purposes like in case of Crop Yield production for farmers. *-->*The software would need an event(RSI Image of Crop Yield of a geographical region X) and a contributing factor i.e. a factor that contributes towards the success of the event like in this case it would be a RSI Image of rainfall of the same geographical region X. *-->*After the inputs are fed,then a multimedia data mining algorithm would find a kind of mapping between rainfall and crop yield. *-->*Once the mapping is found like Rainfall[ R<180,G>210,B<150 && B>125]-->Crop_yield[R>210,G>220,B<40] etc. then the farmer/user can enter "n" such rainfall RSI images of different geographical images and the yields over there can be predicted. *Web application:* Once I was done with the development of codes.Then I thought of building the web application for my work and I uploaded the codes on the server side and then those were executed using shell scripting in PHP. *Versions of packages:* 1. RGB-->RGB (1 Event and 1 contributing factor) 2.RGB-->GREY (1 Event and 1 contributing factor) 3.RGB-->RGB (One Event and 3 contributing factor) *Explanation of Codes on GITHUB:* parm11.java-->Converts RSI images into Band Sequential Format. parm22.c-->Converts Band Sequential Format into bit Sequential Format. parm33.c-->Generates Itemsets and rules using Peano count Tree association rule mining algorithm. parm44.java-->Using rules and the input generates the predicted image. *Technical specifications : Java swings,C,PHP,HTML5,CSS3.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From trac at osgeo.org Fri Mar 27 09:03:04 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 27 Mar 2015 16:03:04 -0000 Subject: [GRASS-dev] [GRASS GIS] #2637: Get direction raster in clockwise degrees starting from the North In-Reply-To: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> References: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> Message-ID: <051.c8c08a6e1bdf8900a83767a079fffe69@osgeo.org> #2637: Get direction raster in clockwise degrees starting from the North -------------------------+-------------------------------------------------- Reporter: cgravelm | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: | Platform: MacOSX Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by glynn): Replying to [comment:1 annakrat]: > You can just use r.mapcalc "angle_cw = -angle_ccw + 450", this will give you what you need. It outputs angles from 90 to 450, but that's typically not a problem. Or, if you want to limit the range to 0..360, use: r.mapcalc "angle_cw = (450 - angle_ccw) % 360" Similarly, if you want -180..180 (again, clockwise from North): r.mapcalc "angle_cw = (630 - angle_ccw) % 360 - 180" Similar formulae can be used for any other convention. The main caveat is that the left-hand operand to the % (modulo) operator needs to be non- negative in order to obtain a non-negative result. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 27 10:18:11 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 27 Mar 2015 17:18:11 -0000 Subject: [GRASS-dev] [GRASS GIS] #2637: Get direction raster in clockwise degrees starting from the North In-Reply-To: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> References: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> Message-ID: <051.931029e934c0df508a550c1c3b4f848f@osgeo.org> #2637: Get direction raster in clockwise degrees starting from the North -------------------------+-------------------------------------------------- Reporter: cgravelm | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: | Platform: MacOSX Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by cmbarton): Thanks for the simple mapcalc approach. I think, however, the point is not that this cannot be calculated in mapcalc. It is that it would be convenient to have the primary aspect module for GRASS have an option to calculate aspect in cardinal degrees from north, what most users would expect from an aspect calculation in a GIS. The counter clockwise from E. is a path dependent legacy from the early days of GIS when rasters were treated like a 2D graph. Other modules have come to expect that, which is OK. Perhaps it even makes some math easier in some uses. But we no longer calculate raster cell position from the lower left. So it is odd that r.slope.aspect does not at least have an option to treat aspect like a geographic value instead of only like a vector angle on a graph. -- Ticket URL: GRASS GIS From trac at osgeo.org Fri Mar 27 10:46:58 2015 From: trac at osgeo.org (GRASS GIS) Date: Fri, 27 Mar 2015 17:46:58 -0000 Subject: [GRASS-dev] [GRASS GIS] #2637: Get direction raster in clockwise degrees starting from the North In-Reply-To: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> References: <042.7a02d8fd939d34a5d6048472b0a80f58@osgeo.org> Message-ID: <051.c07faf5fe626fef64fedd4978ba64759@osgeo.org> #2637: Get direction raster in clockwise degrees starting from the North -------------------------+-------------------------------------------------- Reporter: cgravelm | Owner: grass-dev@? Type: enhancement | Status: new Priority: normal | Milestone: 7.0.1 Component: Raster | Version: 7.0.0 Keywords: | Platform: MacOSX Cpu: Unspecified | -------------------------+-------------------------------------------------- Comment(by cmbarton): Replying to [comment:7 cmbarton]: > Thanks for the simple mapcalc approach. I think, however, the point is not that this cannot be calculated in mapcalc. It is that it would be convenient to have the primary aspect module for GRASS have an option to calculate aspect in cardinal degrees from north, what most users would expect from an aspect calculation in a GIS. The counter clockwise from E. is a path dependent legacy from the early days of GIS when rasters were treated like a 2D graph. Other modules have come to expect that, which is OK. Perhaps it even makes some math easier in some uses. But we no longer calculate raster cell position from the lower left. So it is odd that r.slope.aspect does not at least have an option to treat aspect like a geographic value instead of only like a vector angle on a graph. The other thing is that all the mapcalc solutions require 2 passes through a map to get aspect as degrees from north. If this were a flag in r.slope.aspect, it could be done in 1 pass. This is important if you are doing a lot of big maps. -- Ticket URL: GRASS GIS From nik at nikosalexandris.net Fri Mar 27 14:14:12 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Fri, 27 Mar 2015 23:14:12 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> <8d5700ca24d175e6fdc54cd15dc5ccca@nikosalexandris.net> Message-ID: <20150327211412.GA4416@tpx1c2g> * Vaclav Petras [2015-03-26 23:12:50 -0400]: > On Thu, Mar 26, 2015 at 5:04 AM, Nikos Alexandris > wrote: > > Disregard the previous one. This one without old 'rast' entries (instead, > > new 'raster'). > > > > Looks OK (I'm only looking at the source code). Just few things: ^^^--- please check your mail clients settings -- first line of your replies get's added to the original sender. I'd like to know if it's something messy in my side! ) > It seems you removed the option to add timestamps without registering to > temporal database. I would just leave the else there. (You may want to > create timestamps but not register or register later.) Misjudgement, lead by the comment "...or something in GRASS6.x". Added back. > It seems that tgis.open_new_stds is actually not according to PEP8. At > least one contains whitespace at the end, rerun pep8. Testing another editor these days, and got absorbed by it. I work with Spyder normally, but I am considering to move into pure vim + plugins. > I'm not sure if this is part of PEP8 but "comment graphics" is often > discouraged; I personally don't see a reason for: > > # add timestamps either via temporal framework ---------------------- > # ------------------------------------------ outputs timestamped --- > > It would be much better to include there actual sentence(s) which will be > explanatory even for everybody. (I know what is behind "outputs > timestamped" because I remember Soeren's commit but I don't think that this > is well documented and generally known.) > > Update Copyright year (I think it is OK to use 2013-2015 for simplicity - > precise info is in Subversion). > > When you are doing stylistic changes, you can also put spaces around > assignment in r.mapcalc expressions. You mean 'output = expression' instead of 'output=expression'? > For your todo: picture to the manual would be nice (perhaps two or three > from a series). Thnx :-), Nikos -------------- next part -------------- Index: r.sun.daily.py =================================================================== --- r.sun.daily.py (revision 64893) +++ r.sun.daily.py (working copy) @@ -2,11 +2,12 @@ ############################################################################ # -# MODULE: r.sun.daily for GRASS 6 and 7; based on rsun_crop.sh from GRASS book +# MODULE: r.sun.daily; based on rsun_crop.sh from GRASS book # AUTHOR(S): Vaclav Petras, Anna Petrasova +# Nikos Alexandris (updates for linke, albedo, latitude, horizon) # # PURPOSE: -# COPYRIGHT: (C) 2013 by the GRASS Development Team +# COPYRIGHT: (C) 2013 - 2015 by the GRASS Development Team # # This program is free software under the GNU General Public # License (>=v2). Read the file COPYING that comes with GRASS @@ -16,29 +17,115 @@ #%module #% description: Runs r.sun for multiple days in loop (mode 2) -#% keyword: raster -#% keyword: sun +#% keywords: raster +#% keywords: sun #%end -#%option + +#%option G_OPT_R_ELEV +#% key: elevation #% type: string +#% description: Name of the input elevation raster map [meters] #% gisprompt: old,cell,raster -#% key: elevation -#% description: Name of the input elevation raster map [meters] #% required : yes #%end + #%option +#% key: aspect #% type: string #% gisprompt: old,cell,raster -#% key: aspect #% description: Name of the input aspect map (terrain aspect or azimuth of the solar panel) [decimal degrees] #%end + #%option +#% key: slope #% type: string #% gisprompt: old,cell,raster -#% key: slope #% description: Name of the input slope raster map (terrain slope or solar panel inclination) [decimal degrees] #%end + +#%option G_OPT_R_INPUT +#% key: linke +#% type: string +#% gisprompt: old,cell,raster +#% description: Name of the Linke atmospheric turbidity coefficient input raster map [-] +#% required : no +#%end + #%option +#% key: linke_value +#% key_desc: float +#% type: double +#% description: A single value of the Linke atmospheric turbidity coefficient [-] +#% options: 0.0-7.0 +#% answer: 3.0 +#% required : no +#%end + +#% rules +#% exclusive: linke, linke_value +#% end + +#%option G_OPT_R_INPUT +#% key: albedo +#% type: string +#% gisprompt: old,cell,raster +#% description: Name of the Linke atmospheric turbidity coefficient input raster map [-] +#% required : no +#%end + +#%option +#% key: albedo_value +#% key_desc: float +#% type: double +#% description: A single value of the ground albedo coefficient [-] +#% options: 0.0-1.0 +#% answer: 0.2 +#% required : no +#%end + +#% rules +#% exclusive: albedo, albedo_value +#% end + +#%option G_OPT_R_INPUT +#% key: lat +#% type: string +#% gisprompt: old,cell,raster +#% description: Name of input raster map containing latitudes (if projection undefined) [decimal degrees] +#% required : no +#%end + +#%option G_OPT_R_INPUT +#% key: long +#% type: string +#% gisprompt: old,cell,raster +#% description: Name of input raster map containing longitudes (if projection undefined) [decimal degrees] +#% required : no +#%end + +#%option G_OPT_R_BASENAME_INPUT +#% key: horizon_basename +#% key_desc: basename +#% type: string +#% gisprompt: old,cell,raster +#% description: The horizon information input map basename +#% required : no +#%end + +#%option +#% key: horizon_step +#% key_desc: stepsize +#% type: string +#% gisprompt: old,cell,raster +#% description: Angle step size for multidirectional horizon [degrees] +#% required : no +#%end + +#% rules +#% requires_all: horizon_basename, horizon_step +#% end + +#%option #% key: start_day #% type: integer #% description: Start day (of year) of interval @@ -45,6 +132,7 @@ #% options: 1-365 #% required : yes #%end + #%option #% key: end_day #% type: integer @@ -52,6 +140,7 @@ #% options: 1-365 #% required : yes #%end + #%option #% key: day_step #% type: integer @@ -59,6 +148,7 @@ #% options: 1-365 #% answer: 1 #%end + #%option #% key: step #% type: double @@ -65,39 +155,45 @@ #% description: Time step when computing all-day radiation sums [decimal hours] #% answer: 0.5 #%end + #%option #% key: civil_time #% type: double #% description: Civil time zone value, if none, the time will be local solar time #%end + #%option +#% key: beam_rad #% type: string #% gisprompt: new,cell,raster -#% key: beam_rad #% description: Output beam irradiation raster map cumulated for the whole period of time [Wh.m-2.day-1] #% required: no #%end + #%option +#% key: diff_rad #% type: string #% gisprompt: new,cell,raster -#% key: diff_rad #% description: Output diffuse irradiation raster map cumulated for the whole period of time [Wh.m-2.day-1] #% required: no #%end + #%option +#% key: refl_rad #% type: string #% gisprompt: new,cell,raster -#% key: refl_rad #% description: Output ground reflected irradiation raster map cumulated for the whole period of time [Wh.m-2.day-1] #% required: no #%end + #%option +#% key: glob_rad #% type: string #% gisprompt: new,cell,raster -#% key: glob_rad #% description: Output global (total) irradiance/irradiation raster map cumulated for the whole period of time [Wh.m-2.day-1] #% required: no #%end + #%option #% key: beam_rad_basename #% type: string @@ -104,6 +200,7 @@ #% label: Base name for output beam irradiation raster maps [Wh.m-2.day-1] #% description: Underscore and day number are added to the base name for daily maps #%end + #%option #% key: diff_rad_basename #% type: string @@ -110,6 +207,7 @@ #% label: Base name for output diffuse irradiation raster maps [Wh.m-2.day-1] #% description: Underscore and day number are added to the base name for daily maps #%end + #%option #% key: refl_rad_basename #% type: string @@ -116,6 +214,7 @@ #% label: Base name for output ground reflected irradiation raster maps [Wh.m-2.day-1] #% description: Underscore and day number are added to the base name for daily maps #%end + #%option #% key: glob_rad_basename #% type: string @@ -122,6 +221,7 @@ #% label: Base name for output global (total) irradiance/irradiation raster maps [Wh.m-2.day-1] #% description: Underscore and day number are added to the base name for daily maps #%end + #%option #% key: nprocs #% type: integer @@ -129,6 +229,7 @@ #% options: 1- #% answer: 1 #%end + #%flag #% key: t #% description: Dataset name is the same as the base name for the output series of maps @@ -149,6 +250,9 @@ def cleanup(): + """ + Clean up temporary maps + """ if REMOVE or MREMOVE: core.info(_("Cleaning temporary maps...")) for rast in REMOVE: @@ -155,25 +259,36 @@ grass.run_command('g.remove', type='raster', name=rast, flags='f', quiet=True) for pattern in MREMOVE: - grass.run_command('g.remove', type='raster', pattern='%s*' % pattern, + grass.run_command('g.remove', type='raster', + pattern='{pattern}*'.format(pattern=pattern), flags='f', quiet=True) -def is_grass_7(): - if core.version()['version'].split('.')[0] == '7': - return True - return False - - def create_tmp_map_name(name): + """ + Create temporary map names + """ return '{mod}{pid}_{map_}_tmp'.format(mod='r_sun_crop', pid=os.getpid(), map_=name) -# add latitude map -def run_r_sun(elevation, aspect, slope, day, step, - beam_rad, diff_rad, refl_rad, glob_rad, suffix): +def run_r_sun(elevation, aspect, slope, latitude, longitude, + linke, linke_value, albedo, albedo_value, + horizon_basename, horizon_step, + day, step, beam_rad, diff_rad, refl_rad, glob_rad, suffix): + ''' + Execute r.sun using the provided input options. Except for the required + parameters, the function updates the list of optional/selected parameters + to instruct for user requested inputs and outputs. + Optional inputs: + + - latitude + - longitude + - linke OR single linke value + - albedo OR single albedo value + - horizon maps + ''' params = {} if beam_rad: params.update({'beam_rad': beam_rad + suffix}) @@ -183,50 +298,66 @@ params.update({'refl_rad': refl_rad + suffix}) if glob_rad: params.update({'glob_rad': glob_rad + suffix}) + if linke: + params.update({'linke': linke}) + if linke_value: + params.update({'linke_value': linke_value}) + if albedo: + params.update({'albedo': albedo}) + if albedo_value: + params.update({'albedo_value': albedo_value}) + if horizon_basename and horizon_step: + params.update({'horizon_basename': horizon_basename}) + params.update({'horizon_step': horizon_step}) - if is_grass_7(): - grass.run_command('r.sun', elevation=elevation, aspect=aspect, - slope=slope, day=day, step=step, - overwrite=core.overwrite(), quiet=True, - **params) - else: - grass.run_command('r.sun', elevin=elevation, aspin=aspect, - slopein=slope, - day=day, step=step, - overwrite=core.overwrite(), quiet=True, - **params) + grass.run_command('r.sun', elevation=elevation, aspect=aspect, + slope=slope, day=day, step=step, + overwrite=core.overwrite(), quiet=True, + **params) def set_color_table(rasters): - if is_grass_7(): - grass.run_command('r.colors', map=rasters, col='gyr', quiet=True) - else: - for rast in rasters: - grass.run_command('r.colors', map=rast, col='gyr', quiet=True) + """ + Set 'gyr' color tables for raster maps + """ + grass.run_command('r.colors', map=rasters, col='gyr', quiet=True) def set_time_stamp(raster, day): + """ + Timestamp script's daily output map + """ grass.run_command('r.timestamp', map=raster, date='%d days' % day, quiet=True) def format_order(number, zeros=3): + """ + Add leading zeros to string + """ return str(number).zfill(zeros) def check_daily_map_names(basename, mapset, start_day, end_day, day_step): + """ + Check if maps exist with name(s) identical to the scripts intented outputs + """ if not basename: return for day in range(start_day, end_day + 1, day_step): - map_ = '%s%s%s' % (basename, '_', format_order(day)) + map_ = '{base}_{day}'.format(base=basename, day=format_order(day)) if grass.find_file(map_, element='cell', mapset=mapset)['file']: - grass.fatal(_("Raster map <%s> already exists. Change the base " - "name or allow overwrite.") % map_) + grass.fatal(_('Raster map <{name}> already exists. ' + 'Change the base name or allow overwrite.' + ''.format(name=map_))) def sum_maps(sum_, basename, suffixes): + """ + Sum up multiple raster maps + """ maps = '+'.join([basename + suf for suf in suffixes]) - grass.mapcalc('{sum_}={sum_} + {new}'.format(sum_=sum_, new=maps), + grass.mapcalc('{sum_} = {sum_} + {new}'.format(sum_=sum_, new=maps), overwrite=True, quiet=True) @@ -233,20 +364,32 @@ def main(): options, flags = grass.parser() + # required elevation_input = options['elevation'] aspect_input = options['aspect'] slope_input = options['slope'] + # optional + latitude = options['lat'] + longitude = options['long'] + linke_input = options['linke'] + linke_value = options['linke_value'] + albedo_input = options['albedo'] + albedo_value = options['albedo_value'] + horizon_basename = options['horizon_basename'] + horizon_step = options['horizon_step'] + + # outputs beam_rad = options['beam_rad'] diff_rad = options['diff_rad'] refl_rad = options['refl_rad'] glob_rad = options['glob_rad'] - beam_rad_basename = beam_rad_basename_user = options['beam_rad_basename'] diff_rad_basename = diff_rad_basename_user = options['diff_rad_basename'] refl_rad_basename = refl_rad_basename_user = options['refl_rad_basename'] glob_rad_basename = glob_rad_basename_user = options['glob_rad_basename'] + # missing output? if not any([beam_rad, diff_rad, refl_rad, glob_rad, beam_rad_basename, diff_rad_basename, refl_rad_basename, glob_rad_basename]): @@ -270,10 +413,6 @@ nprocs = int(options['nprocs']) - temporal = flags['t'] - if not is_grass_7() and temporal: - grass.warning(_("Flag t has effect only in GRASS 7")) - if beam_rad and not beam_rad_basename: beam_rad_basename = create_tmp_map_name('beam_rad') MREMOVE.append(beam_rad_basename) @@ -287,7 +426,7 @@ glob_rad_basename = create_tmp_map_name('glob_rad') MREMOVE.append(glob_rad_basename) - # here we check all the days + # check for existing identical map names if not grass.overwrite(): check_daily_map_names(beam_rad_basename, grass.gisenv()['MAPSET'], start_day, end_day, day_step) @@ -315,13 +454,13 @@ quiet=True, **params) if beam_rad: - grass.mapcalc('%s=0' % beam_rad, quiet=True) + grass.mapcalc('{beam} = 0'.format(beam=beam_rad), quiet=True) if diff_rad: - grass.mapcalc('%s=0' % diff_rad, quiet=True) + grass.mapcalc('{diff} = 0'.format(diff=diff_rad), quiet=True) if refl_rad: - grass.mapcalc('%s=0' % refl_rad, quiet=True) + grass.mapcalc('{refl} = 0'.format(refl=refl_rad), quiet=True) if glob_rad: - grass.mapcalc('%s=0' % glob_rad, quiet=True) + grass.mapcalc('{glob} = 0'.format(glob=glob_rad), quiet=True) grass.info(_("Running r.sun in a loop...")) count = 0 @@ -339,8 +478,13 @@ suffix = '_' + format_order(day) proc_list.append(Process(target=run_r_sun, - args=(elevation_input, aspect_input, - slope_input, day, step, + args=(elevation_input, + aspect_input, slope_input, + latitude, longitude, + linke_input, linke_value, + albedo_input, albedo_value, + horizon_basename, horizon_step, + day, step, beam_rad_basename, diff_rad_basename, refl_rad_basename, @@ -374,6 +518,7 @@ # Empty process list proc_list = [] suffixes = [] + # FIXME: how percent really works? # core.percent(1, 1, 1) @@ -391,22 +536,29 @@ refl_rad_basename_user, glob_rad_basename_user]): return 0 - # add timestamps either via temporal framework in 7 or r.timestamp in 6.x - if is_grass_7() and temporal: + # add timestamps and register to spatio-temporal raster data set + temporal = flags['t'] + if temporal: core.info(_("Registering created maps into temporal dataset...")) import grass.temporal as tgis def registerToTemporal(basename, suffixes, mapset, start_day, day_step, title, desc): + """ + Register daily output maps in spatio-temporal raster data set + """ maps = ','.join([basename + suf + '@' + mapset for suf in suffixes]) - tgis.open_new_stds(basename, type='strds', - temporaltype='relative', - title=title, descr=desc, - semantic='sum', dbif=None, - overwrite=grass.overwrite()) - tgis.register_maps_in_space_time_dataset( - type='raster', name=basename, maps=maps, start=start_day, end=None, - unit='days', increment=day_step, dbif=None, interval=False) + tgis.open_new_stds(basename, type='strds', temporaltype='relative', + title=title, descr=desc, semantic='sum', + dbif=None, overwrite=grass.overwrite()) + + tgis.register_maps_in_space_time_dataset(type='rast', + name=basename, maps=maps, + start=start_day, end=None, + unit='days', + increment=day_step, + dbif=None, interval=False) + # Make sure the temporal database exists tgis.init() @@ -430,6 +582,7 @@ start_day, day_step, title="Total irradiation", desc="Output total irradiation raster maps [Wh.m-2.day-1]") + # just add timestamps, don't register else: for i, day in enumerate(days): if beam_rad_basename_user: @@ -441,6 +594,7 @@ if glob_rad_basename_user: set_time_stamp(glob_rad_basename + suffixes_all[i], day=day) + # set color table for daily maps if beam_rad_basename_user: maps = [beam_rad_basename + suf for suf in suffixes_all] set_color_table(maps) From nik at nikosalexandris.net Fri Mar 27 14:15:43 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Fri, 27 Mar 2015 23:15:43 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <20150327211412.GA4416@tpx1c2g> References: <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> <8d5700ca24d175e6fdc54cd15dc5ccca@nikosalexandris.net> <20150327211412.GA4416@tpx1c2g> Message-ID: <73582c90c43bd73be202af2cc7d4c583@nikosalexandris.net> Vaclav Petras: >> It seems you removed the option to add timestamps without >> registering to >> temporal database. I would just leave the else there. (You may want >> to >> create timestamps but not register or register later.) > > Misjudgement, lead by the comment "...or something in GRASS6.x". > Added > back. I didn't test this carefully, seems it doesn't work (for me). ToDo. Nikos From wenzeslaus at gmail.com Fri Mar 27 14:34:20 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Fri, 27 Mar 2015 17:34:20 -0400 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <20150327211412.GA4416@tpx1c2g> References: <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> <8d5700ca24d175e6fdc54cd15dc5ccca@nikosalexandris.net> <20150327211412.GA4416@tpx1c2g> Message-ID: On Fri, Mar 27, 2015 at 5:14 PM, Nikos Alexandris wrote: > > * Vaclav Petras [2015-03-26 23:12:50 -0400]: > > > On Thu, Mar 26, 2015 at 5:04 AM, Nikos Alexandris < nik at nikosalexandris.net> > > wrote: > > > > Disregard the previous one. This one without old 'rast' entries (instead, > > > new 'raster'). > > > > > > Looks OK (I'm only looking at the source code). Just few things: > > ^^^--- please check your mail clients settings -- first line of your > replies get's added to the original sender. I'd like to know if it's > something messy in my side! The test line. Sorry about that. I remember your about it but I did not figure out what's happening. I'm using Gmail which does a lot of weird things since they switched to rich text as default. I'm trying to remove formatting but sometimes I forget and I don't know if it is actually helpful. In Gmail I can see my lines as mine but mailing list sees this in the way you see it: http://lists.osgeo.org/pipermail/grass-dev/2015-March/074662.html Well, now I tried with removed formatting and blank line after last line with > character, so let's see. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wenzeslaus at gmail.com Fri Mar 27 14:45:21 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Fri, 27 Mar 2015 17:45:21 -0400 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: References: <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> <8d5700ca24d175e6fdc54cd15dc5ccca@nikosalexandris.net> <20150327211412.GA4416@tpx1c2g> Message-ID: On Fri, Mar 27, 2015 at 5:34 PM, Vaclav Petras wrote: > > > On Fri, Mar 27, 2015 at 5:14 PM, Nikos Alexandris wrote: > > > > * Vaclav Petras [2015-03-26 23:12:50 -0400]: > > > > > On Thu, Mar 26, 2015 at 5:04 AM, Nikos Alexandris < nik at nikosalexandris.net> > > > wrote: > > > > > > Disregard the previous one. This one without old 'rast' entries (instead, > > > > new 'raster'). > > > > > > > > Looks OK (I'm only looking at the source code). Just few things: > > > > ^^^--- please check your mail clients settings -- first line of your > > replies get's added to the original sender. I'd like to know if it's > > something messy in my side! > > The test line. > > Sorry about that. I remember your about it but I did not figure out what's happening. I'm using Gmail which does a lot of weird things since they switched to rich text as default. I'm trying to remove formatting but sometimes I forget and I don't know if it is actually helpful. > > In Gmail I can see my lines as mine but mailing list sees this in the way you see it: > > http://lists.osgeo.org/pipermail/grass-dev/2015-March/074662.html > > Well, now I tried with removed formatting and blank line after last line with > character, so let's see. Looking at the HTML attachment which is stored at: http://lists.osgeo.org/pipermail/grass-dev/attachments/20150326/30692779/attachment.html The code looks OK at least considering that it seems that the schema is not designed for "inline" replies. So what is creating the HTML and what is creating the plain text?


On Thu, Mar 26, 2015 at 5:04 AM, Nikos Alexandris <<a href="mailto:nik at nikosalexandris.net" target="_blank">nik at nikosalexandris.net> wrote:
Disregard the previous one. This one without old 'rast' entries (instead, new 'raster').

Looks OK (I'm only looking at the source code). Just few things:

It seems you removed the option to add timestamps without registering to temporal database. I would just leave the else there. (You may want to create timestamps but not register or register later.)

-------------- next part -------------- An HTML attachment was scrubbed... URL: From nik at nikosalexandris.net Sat Mar 28 03:49:39 2015 From: nik at nikosalexandris.net (Nikos Alexandris) Date: Sat, 28 Mar 2015 12:49:39 +0200 Subject: [GRASS-dev] Linke turbidity in r.sun.daily In-Reply-To: <73582c90c43bd73be202af2cc7d4c583@nikosalexandris.net> References: <52359b03ba8e5588f23ceb8d361b9923@nikosalexandris.net> <3991ba3d0d13891eb2367a682f809ee7@nikosalexandris.net> <20bf51341a86daf957e4938bc1e5c931@nikosalexandris.net> <8d5700ca24d175e6fdc54cd15dc5ccca@nikosalexandris.net> <20150327211412.GA4416@tpx1c2g> <73582c90c43bd73be202af2cc7d4c583@nikosalexandris.net> Message-ID: <4b4e5d77381ad079785d7a91022cb387@nikosalexandris.net> Vaclav Petras: >>> It seems you removed the option to add timestamps without >>> registering to >>> temporal database. I would just leave the else there. (You may want >>> to >>> create timestamps but not register or register later.) >> Misjudgement, lead by the comment "...or something in GRASS6.x". >> Added >> back. Nikos Alexandris: > I didn't test this carefully, seems it doesn't work (for me). ToDo. It works for daily maps. It doesn't, of course, for example when requesting 'glob_rad=' which returns the sum of all requested daily maps. I know, we have the t.* stuff, which is the way to get monthly maps or else. However, it would be nice if we can make it more easy to use, for example, monthly "Linke T" maps. Say, for day 1 to day 31 use linke_January, for day 32 to day... use linke_February and so on. -- Comments? Nikos From radim.blazek at gmail.com Mon Mar 30 00:47:45 2015 From: radim.blazek at gmail.com (Radim Blazek) Date: Mon, 30 Mar 2015 09:47:45 +0200 Subject: [GRASS-dev] Temporal data (was QGIS GRASS Plugin Upgrade Crowdfunding) Message-ID: Hi again. On Tue, Mar 24, 2015 at 10:04 AM, S?ren Gebbert wrote: >> Are there functions in time series implementation which need to be >> called directly from the plugin or everything may be done just calling >> t.rast.* modules? > > Most of the temporal functionality is available through the temporal > modules. However some important algorithms (temporal re-sampling) are > available only in the Python framework. This is needed for time series > animation creation. Using the framework directly will speed things up, > because the module calls, the parsing and interpretation of the module > outputs can be avoided. I am getting convinced that the temporal data visualization support should be added to QGIS core. A single time navigation toolbar (from/to, start/stop, previous/next) and temporal support in data providers (QgsVectorDataProvider::getFeatures, QgsRasterDataProvider::block). That would allow simultaneous animation of temporal data from various sources in different formats (time frame defined by band, layer or attribute). There are already 3 plugins for temporal data management [1][2][3], writing another one seems misconception and wasting of resources. [1] https://plugins.qgis.org/plugins/timemanager/ [2] https://plugins.qgis.org/plugins/multiview/ [3] https://plugins.qgis.org/plugins/temporalprofiletool/ Radim From saber.razmjooei at lutraconsulting.co.uk Mon Mar 30 04:37:07 2015 From: saber.razmjooei at lutraconsulting.co.uk (Saber Razmjooei) Date: Mon, 30 Mar 2015 12:37:07 +0100 Subject: [GRASS-dev] [Qgis-developer] Temporal data (was QGIS GRASS Plugin Upgrade Crowdfunding) In-Reply-To: <551917E0.8010607@opengis.ch> References: <551917E0.8010607@opengis.ch> Message-ID: <077001d06add$dab1b3a0$90151ae0$@lutraconsulting.co.uk> Hi all, If the long term aspiration of having support for temporal data is to support NetCDF, HDF, GRIB, etc similar to: http://blogs.esri.com/esri/apl/2015/03/11/dimension-explorer/ then probably we need to have more to it. Martin has done a major update of the crayfish plugin which now supports xdmf (a variation of HDF5) and soon we are looking to add animation feature and more file support: https://github.com/lutraconsulting/qgis-crayfish-plugin Cheers, Saber -----Original Message----- From: qgis-developer-bounces at lists.osgeo.org [mailto:qgis-developer-bounces at lists.osgeo.org] On Behalf Of Matthias Kuhn Sent: 30 March 2015 10:31 To: Nyall Dawson Cc: qgis-developer; grass-dev at lists.osgeo.org Subject: Re: [Qgis-developer] Temporal data (was QGIS GRASS Plugin Upgrade Crowdfunding) Hi I think the very first step in this should be to add proper date (time) support. I don't know the state and requirements for raster layers, but for vector layers I think right now time is converted with the edit types just for visualization but internally it is passed around as string. It would be nice to handle them as QDate(Time) internally. For time-aware databases (postgres...) this should be straightforward. For others (like shapefile?) we probably need to manage the datatype on the project level but conversion should IMHO happen low-level directly in the provider code so things like timezone handling and whatever else needs to be done can happen exactly once when the data is read from the datasource or saved to the datasource. Filtering (from date ... to date ) should best be done on the QgsFeatureRequest level (setFilterExpression should already be ready I guess) Best, Matthias _______________________________________________ Qgis-developer mailing list Qgis-developer at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Whilst reasonable care has been taken to avoid virus transmission, no responsibility for viruses is taken and it is your responsibility to carry out such checks as you feel appropriate. If this email contains a quote or offer to sell products, carry out work or perform services then our standard terms and conditions (which can be found at http://www.lutraconsulting.co.uk/downloads/Lutra%20Consulting%20Standard%20Terms%20and%20Conditions.pdf shall apply unless explicitly stated otherwise. Saber Razmjooei and Peter Wells trading as Lutra Consulting. From amitabh.tiwari27 at gmail.com Mon Mar 30 05:42:46 2015 From: amitabh.tiwari27 at gmail.com (Amitabh) Date: Mon, 30 Mar 2015 18:12:46 +0530 Subject: [GRASS-dev] Fwd: Proposal for GSoC-2015 In-Reply-To: References: Message-ID: Hello everyone, *My proposal:* I propose to develop a software to mine RSI images' spectral bands including the visual,ultraviolet and infrared bands.This geospatial mining will be done at bit level of bands to ensure maximum accuracy.If you look at the products available in the market they offer predictions for the entire image instead I would allow users to choose customized areas to mine upon. *How this process would work?* *-->*This software can be used for multiple purposes like in case of Crop Yield production for farmers. *-->*The software would need an event(RSI Image of Crop Yield of a geographical region X) and a contributing factor i.e. a factor that contributes towards the success of the event like in this case it would be a RSI Image of rainfall of the same geographical region X. *-->*After the inputs are fed,then a multimedia data mining algorithm would find a kind of mapping between rainfall and crop yield. *-->*Once the mapping is found like Rainfall[ R<180,G>210,B<150 && B>125]-->Crop_yield[R>210,G>220,B<40] etc. then the farmer/user can enter "n" such rainfall RSI images of different geographical images and the yields over there can be predicted. *Web application:* Once I was done with the development of codes.Then I thought of building the web application for my work and I uploaded the codes on the server side and then those were executed using shell scripting in PHP. *Versions of packages:* 1. RGB-->RGB (1 Event and 1 contributing factor) 2.RGB-->GREY (1 Event and 1 contributing factor) 3.RGB-->RGB (One Event and 3 contributing factor) *Explanation of Codes on GITHUB:* parm11.java-->Converts RSI images into Band Sequential Format. parm22.c-->Converts Band Sequential Format into bit Sequential Format. parm33.c-->Generates Itemsets and rules using Peano count Tree association rule mining algorithm. parm44.java-->Using rules and the input generates the predicted image. *Technical specifications : Java swings,C,PHP,HTML5,CSS3.* Please provide feedback about the same.I want to add this feature to GRASS GIS. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wenzeslaus at gmail.com Mon Mar 30 07:19:59 2015 From: wenzeslaus at gmail.com (Vaclav Petras) Date: Mon, 30 Mar 2015 10:19:59 -0400 Subject: [GRASS-dev] Fwd: Proposal for GSoC-2015 In-Reply-To: References: Message-ID: Hello, I cannot give you feedback for the actual proposal perhaps somebody else can. This relates to fact that you need somebody who is wiling to mentor this project. Generally, as suggested at GSoC ideas page for GRASS GIS [1], you should show you interest and abilities by fixing some bugs. You can look for example at some bugs related to image processing (i.* modules) [2]. You can start to code your idea, however note that you should have something which is somehow complete and you can present and you don't have much time. Best, Vaclav [1] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents [2] http://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&component=Imagery&order=priority On Mon, Mar 30, 2015 at 8:42 AM, Amitabh wrote: > > > > Hello everyone, > > *My proposal:* > I propose to develop a software to mine RSI images' spectral bands > including the visual,ultraviolet and infrared bands.This geospatial mining > will be done at bit level of bands to ensure maximum accuracy.If you look > at the products available in the market they offer predictions > for the entire image instead I would allow users to choose customized > areas to mine upon. > > *How this process would work?* > > *-->*This software can be used for multiple purposes like in case of Crop > Yield production for farmers. > *-->*The software would need an event(RSI Image of Crop Yield of a > geographical region X) and a contributing factor i.e. a factor that > contributes towards the success of the event like in this case it would be > a RSI Image of rainfall of the same geographical region X. > *-->*After the inputs are fed,then a multimedia data mining algorithm > would find a kind of mapping between rainfall and crop yield. > *-->*Once the mapping is found like Rainfall[ R<180,G>210,B<150 && > B>125]-->Crop_yield[R>210,G>220,B<40] etc. then the farmer/user can > enter "n" such rainfall RSI images of different geographical images and > the yields over there can be predicted. > > *Web application:* > Once I was done with the development of codes.Then I thought of building > the web application for my work and I uploaded the codes on > the server side and then those were executed using shell scripting in PHP. > > *Versions of packages:* > 1. RGB-->RGB (1 Event and 1 contributing factor) > 2.RGB-->GREY (1 Event and 1 contributing factor) > 3.RGB-->RGB (One Event and 3 contributing factor) > > *Explanation of Codes on GITHUB:* > parm11.java-->Converts RSI images into Band Sequential Format. > parm22.c-->Converts Band Sequential Format into bit Sequential Format. > parm33.c-->Generates Itemsets and rules using Peano count Tree association > rule mining algorithm. > parm44.java-->Using rules and the input generates the predicted image. > > *Technical specifications : Java swings,C,PHP,HTML5,CSS3.* > > Please provide feedback about the same.I want to add this feature to GRASS > GIS. > > > _______________________________________________ > grass-dev mailing list > grass-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stefan.Blumentrath at nina.no Mon Mar 30 08:22:30 2015 From: Stefan.Blumentrath at nina.no (Blumentrath, Stefan) Date: Mon, 30 Mar 2015 15:22:30 +0000 Subject: [GRASS-dev] GDAL-GRASS-plugin 1.11.2 Message-ID: <65a7d234560140fd83780740f7ffa915@NINSRV23.nina.no> Hi, I just tried to compile the GDAL-GRASS-plugin 1.11.2 against GRASS 7.0.1 (the release branch). It seems that there are some issues with the configure /configure.in file in the plugin There ".7.0.svn" is hard coded in the library links (while the stable release puts the libraries in a folder ending on ".7.0.1svn"). So, I had to run: sed -i 's/\.7\.0\.svn/.7.0.1svn/g' configure In order to be able to configure the plugin. After that it seems to work fine although I get a warning messages on ./configure: " checking for ranlib... ranlib conftest2.c: In function 'g': conftest2.c:2:1: warning: zero-length gnu_printf format string [-Wformat-zero-length] void g(); void g(){printf("");} ^ " Furthermore, I had to specify the includes for my PostgreSQL in order to make "make" work: CPPFLAGS="-I/usr/include/postgresql" ./configure --with-grass=/usr/local/grass-7.0.1svn --with-gdal=/usr/local/bin/gdal-config I also got an error on "sudo make install": cp: cannot stat '/usr/local/grass-7.0.1svn/etc/ellipse.table': No such file or directory make: *** [install] Error 1 But GDAL / OGR do now read both GRASS 7 raster and vector nicely... Kind regards, Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: From landa.martin at gmail.com Mon Mar 30 08:54:24 2015 From: landa.martin at gmail.com (Martin Landa) Date: Mon, 30 Mar 2015 17:54:24 +0200 Subject: [GRASS-dev] GDAL-GRASS-plugin 1.11.2 In-Reply-To: <65a7d234560140fd83780740f7ffa915@NINSRV23.nina.no> References: <65a7d234560140fd83780740f7ffa915@NINSRV23.nina.no> Message-ID: Hi, 2015-03-30 17:22 GMT+02:00 Blumentrath, Stefan : > I just tried to compile the GDAL-GRASS-plugin 1.11.2 against GRASS 7.0.1 > (the release branch). it should be already fixed in SVN [1], so fixed for upcoming GDAL 1.11.3, see [2]. Martin [1] http://svn.osgeo.org/gdal/branches/1.11/ [2] http://trac.osgeo.org/gdal/ticket/5852 -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From neteler at osgeo.org Mon Mar 30 09:16:16 2015 From: neteler at osgeo.org (Markus Neteler) Date: Mon, 30 Mar 2015 18:16:16 +0200 Subject: [GRASS-dev] GDAL-GRASS-plugin 1.11.2 In-Reply-To: <65a7d234560140fd83780740f7ffa915@NINSRV23.nina.no> References: <65a7d234560140fd83780740f7ffa915@NINSRV23.nina.no> Message-ID: On Mon, Mar 30, 2015 at 5:22 PM, Blumentrath, Stefan wrote: ... > I also got an error on ?sudo make install?: > > cp: cannot stat ?/usr/local/grass-7.0.1svn/etc/ellipse.table?: No such file > or directory > > make: *** [install] Error 1 The path changed between G6 and G7, it should be etc/proj/* @Martin, is this fixed as well? thanks Markus From landa.martin at gmail.com Mon Mar 30 09:27:30 2015 From: landa.martin at gmail.com (Martin Landa) Date: Mon, 30 Mar 2015 18:27:30 +0200 Subject: [GRASS-dev] [gdal-dev] GDAL-GRASS-plugin 1.11.2 In-Reply-To: References: <65a7d234560140fd83780740f7ffa915@NINSRV23.nina.no> Message-ID: 2015-03-30 18:16 GMT+02:00 Markus Neteler : > The path changed between G6 and G7, it should be > > etc/proj/* > > @Martin, is this fixed as well? yes [1]. Martin [1] http://trac.osgeo.org/gdal/browser/branches/1.11/gdal/frmts/grass/pkg/Makefile.in#L30 -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From luipir at gmail.com Mon Mar 30 10:48:59 2015 From: luipir at gmail.com (Luigi Pirelli) Date: Mon, 30 Mar 2015 19:48:59 +0200 Subject: [GRASS-dev] [Qgis-developer] Temporal data (was QGIS GRASS Plugin Upgrade Crowdfunding) In-Reply-To: <077001d06add$dab1b3a0$90151ae0$@lutraconsulting.co.uk> References: <551917E0.8010607@opengis.ch> <077001d06add$dab1b3a0$90151ae0$@lutraconsulting.co.uk> Message-ID: Hi not strictly related with timeseries visualization, but... I was thinking to the time management abilities (and more) of the Pandas python library as an abstracted data provider. The main advantage are that on a pandas data frame, missing data can be coded managed in a simply way. Other than the complexity to match a data frame flexibility (m?pandas or numpy) with a reduce set of interactions of a data provider, there would be also the problem to have pandas installed on osgeo4w that is not simple at all! regards, Luigi Pirelli LinkedIn: https://www.linkedin.com/in/luigipirelli Elance: https://www.elance.com/s/edit/luigipirelli/ GitHub: https://github.com/luipir Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli On 30 March 2015 at 13:37, Saber Razmjooei wrote: > Hi all, > > If the long term aspiration of having support for temporal data is to > support NetCDF, HDF, GRIB, etc similar to: > http://blogs.esri.com/esri/apl/2015/03/11/dimension-explorer/ > then probably we need to have more to it. > > Martin has done a major update of the crayfish plugin which now supports > xdmf (a variation of HDF5) and soon we are looking to add animation feature > and more file support: > https://github.com/lutraconsulting/qgis-crayfish-plugin > > > Cheers, > Saber > > > -----Original Message----- > From: qgis-developer-bounces at lists.osgeo.org > [mailto:qgis-developer-bounces at lists.osgeo.org] On Behalf Of Matthias Kuhn > Sent: 30 March 2015 10:31 > To: Nyall Dawson > Cc: qgis-developer; grass-dev at lists.osgeo.org > Subject: Re: [Qgis-developer] Temporal data (was QGIS GRASS Plugin Upgrade > Crowdfunding) > > Hi > > I think the very first step in this should be to add proper date (time) > support. > I don't know the state and requirements for raster layers, but for vector > layers I think right now time is converted with the edit types just for > visualization but internally it is passed around as string. It would be nice > to handle them as QDate(Time) internally. > > For time-aware databases (postgres...) this should be straightforward. > For others (like shapefile?) we probably need to manage the datatype on the > project level but conversion should IMHO happen low-level directly in the > provider code so things like timezone handling and whatever else needs to be > done can happen exactly once when the data is read from the datasource or > saved to the datasource. > > Filtering (from date ... to date ) should best be done on the > QgsFeatureRequest level (setFilterExpression should already be ready I > guess) > > Best, > Matthias > _______________________________________________ > Qgis-developer mailing list > Qgis-developer at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer > > > -- > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. > If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the > individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately > by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified > that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. > > Whilst reasonable care has been taken to avoid virus transmission, no responsibility for viruses is taken and it is your responsibility to carry out > such checks as you feel appropriate. > > If this email contains a quote or offer to sell products, carry out work or perform services then our standard terms and conditions (which can be found at http://www.lutraconsulting.co.uk/downloads/Lutra%20Consulting%20Standard%20Terms%20and%20Conditions.pdf shall apply unless explicitly stated otherwise. > > Saber Razmjooei and Peter Wells trading as Lutra Consulting. > _______________________________________________ > Qgis-developer mailing list > Qgis-developer at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer From Stefan.Blumentrath at nina.no Mon Mar 30 13:07:03 2015 From: Stefan.Blumentrath at nina.no (Blumentrath, Stefan) Date: Mon, 30 Mar 2015 20:07:03 +0000 Subject: [GRASS-dev] [gdal-dev] GDAL-GRASS-plugin 1.11.2 In-Reply-To: References: <65a7d234560140fd83780740f7ffa915@NINSRV23.nina.no> Message-ID: Thanks Martin, I just downloaded configure.in, configure and Makefile.in and now it works. I still get the conftest2 warning, but that does not matter I guess...(?). Cheers Stefan -----Original Message----- From: Martin Landa [mailto:landa.martin at gmail.com] Sent: 30. mars 2015 18:28 To: Markus Neteler Cc: Blumentrath, Stefan; gdal-dev (gdal-dev at lists.osgeo.org); GRASS developers list (grass-dev at lists.osgeo.org) Subject: Re: [gdal-dev] [GRASS-dev] GDAL-GRASS-plugin 1.11.2 2015-03-30 18:16 GMT+02:00 Markus Neteler : > The path changed between G6 and G7, it should be > > etc/proj/* > > @Martin, is this fixed as well? yes [1]. Martin [1] http://trac.osgeo.org/gdal/browser/branches/1.11/gdal/frmts/grass/pkg/Makefile.in#L30 -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From radim.blazek at gmail.com Tue Mar 31 02:05:21 2015 From: radim.blazek at gmail.com (Radim Blazek) Date: Tue, 31 Mar 2015 11:05:21 +0200 Subject: [GRASS-dev] [Qgis-developer] Temporal data (was QGIS GRASS Plugin Upgrade Crowdfunding) In-Reply-To: References: Message-ID: On Mon, Mar 30, 2015 at 11:17 AM, Nyall Dawson wrote: > On 30 March 2015 at 18:47, Radim Blazek wrote: >> Hi again. > >> >> I am getting convinced that the temporal data visualization support >> should be added to QGIS core. A single time navigation toolbar >> (from/to, start/stop, previous/next) and temporal support in data >> providers (QgsVectorDataProvider::getFeatures, >> QgsRasterDataProvider::block). That would allow simultaneous animation >> of temporal data from various sources in different formats (time frame >> defined by band, layer or attribute). >> >> There are already 3 plugins for temporal data management [1][2][3], >> writing another one seems misconception and wasting of resources. > > +1 from me. I've also given this a lot of thought, and think that the > best solution would be in QGIS core. > > I think porting the functionality from Time Manager would be a good > start, but what I would really like to see would be for QgsDataDefined > to be extended to handle animation support. This is already possible > by a combination of scale_linear and Time Manager's current time > expressions, but a better solution would be for > QgsDataDefined/QgsDataDefinedButton to allow for properties of > symbols/labels/composer items to be animated. For instance, smoothly > vary the symbol size between 2 and 4 mm between these two datetime > values. I am not sure if QgsDataDefined is the right place. Isn't it too high level? There are at least 3 possibilities how to store temporal vector data: 1. single layer with timestamp (and possibly non unique id) field (record per timestamp) 2. single layer with multiple fields (field per timestamp) 3. multiple sublayers (sublayer per timestamp) These differences should be hidden in provider, I believe. The timestamp is just another dimension and it should be added to QgsFeatureRequest as a new member beside mFilterRect. If the format allows to do geometry or value interpolation (i.e. 1. with id field or 2.), it should be done in provider. The timestamp member would be added to QgsMapSettings and set by time navigation toolbar. This way, everything (e.g. table, feature info) may easily use current timestamp (table updated on QgsMapSettings.timestampChanged signal, feature info passing current timestamp to getFeatures()). Radim > I'd be willing to assist in coding this, but can't take the lead due > to time constraints. > > Nyall From hellik at web.de Tue Mar 31 07:15:47 2015 From: hellik at web.de (Helmut Kudrnovsky) Date: Tue, 31 Mar 2015 07:15:47 -0700 (PDT) Subject: [GRASS-dev] g.gui.animation in winG7.0: error messages Message-ID: <1427811347789-5196257.post@n6.nabble.com> hi, using g.gui.animation -> add space-time data set or series of map layers I'll get error messages in the windows command line: C:\>Process Process-2: Traceback (most recent call last): File "C:\OSGEO4~2\apps\Python27\lib\multiprocessing\process.py", line 258, in _bootstrap self.run() File "C:\OSGEO4~2\apps\Python27\lib\multiprocessing\process.py", line 114, in run self._target(*self._args, **self._kwargs) File "C:\OSGEO4~2\apps\grass\grass-7.0.0\etc\python\grass\temporal\c_libraries _interface.py", line 767, in c_library_server data = conn.recv() EOFError Process Process-3: Traceback (most recent call last): File "C:\OSGEO4~2\apps\Python27\lib\multiprocessing\process.py", line 258, in _bootstrap self.run() File "C:\OSGEO4~2\apps\Python27\lib\multiprocessing\process.py", line 114, in run self._target(*self._args, **self._kwargs) File "C:\OSGEO4~2\apps\grass\grass-7.0.0\etc\python\grass\temporal\c_libraries _interface.py", line 767, in c_library_server data = conn.recv() EOFError ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/g-gui-animation-in-winG7-0-error-messages-tp5196257.html Sent from the Grass - Dev mailing list archive at Nabble.com. From adrien.andre at onf.fr Mon Mar 30 22:50:01 2015 From: adrien.andre at onf.fr (=?UTF-8?B?QWRyaWVuIEFORFLDiQ==?=) Date: Tue, 31 Mar 2015 02:50:01 -0300 Subject: [GRASS-dev] Network shortest path Message-ID: <551A3589.2030901@onf.fr> Dear list, i have already used v.net.path with sets of 2D segments. Without ever using v.net, arc were naturally "noded" at matching segment extremities; everything was fine. I'd like to know how to deal with 4D segments (x, y, z, class). The fourth dimension is stored in a 'class' attribute. Is it possible to node only extremities having same x, y and class? Thank you for any help. Regards, Adrien -------------- next part -------------- A non-text attachment was scrubbed... Name: adrien_andre.vcf Type: text/x-vcard Size: 432 bytes Desc: not available URL: