Re: [GRASS-dev] [GRASS GIS] #3510: wxpython 4: fix warnings for Attribute Table Manager

2018-03-06 Thread GRASS GIS
#3510: wxpython 4: fix warnings for Attribute Table Manager
--+-
  Reporter:  annakrat |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  minor|  Milestone:  7.6.0
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:  wxpython 4, attribute table
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by sanjeet):

 I've updated the patch file.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3510: wxpython 4: fix warnings for Attribute Table Manager

2018-03-06 Thread GRASS GIS
#3510: wxpython 4: fix warnings for Attribute Table Manager
--+-
  Reporter:  annakrat |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  minor|  Milestone:  7.6.0
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:  wxpython 4, attribute table
   CPU:  Unspecified  |   Platform:  Linux
--+-
Changes (by sanjeet):

 * Attachment "patch.diff" added.

 Patch file to fix the deprecation warnings/messages for Attribute Table
 Manager. (Added CheckBox class in wrap.py)

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GSoC Project

2018-03-06 Thread Luca Delucchi
On 27 February 2018 at 10:29, sharry gill  wrote:

> Hello Luca,
>
>
Hi,


> There will be a tool, in which the user enters the name of the module, and
> select the flags and parameters of the modules, and select which test to be
> done.
> after selecting these option, the user click "Create Test", then their
> will be a python file generated on the desktop, by using the python file
> user can test the module.
>
> And When the user will enter the module name, the window will extend and
> at the side it will show manual of the module.
>

ok, but since there are a lot of modules in GRASS it is better if the tool
will be able to work without the user choses. It should be more automatic
possible.


>
> Thank You
> Supreet Singh
> https://singhsupreet.github.io/
>
>
-- 
ciao
Luca

www.lucadelu.org
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3510: wxpython 4: fix warnings for Attribute Table Manager

2018-03-06 Thread GRASS GIS
#3510: wxpython 4: fix warnings for Attribute Table Manager
--+-
  Reporter:  annakrat |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  minor|  Milestone:  7.6.0
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:  wxpython 4, attribute table
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by annakrat):

 Thank you, I just have one note, here:


 {{{
 self.addLayerWidgets['addCat'][0].SetToolTip(wx.ToolTip(
 }}}

 it would be better to just use SetToolTip, in this case the widget is
 wx.CheckBox, so create a new class CheckBox in wrap.py similarly to other
 classes there and then you won't need to use wx.ToolTip.

 Please upload a new patch with this change and I will then apply it.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GSOC 2018 project for GRASS GIS

2018-03-06 Thread Sanjeet
On Mar 6, 2018 11:26 AM, "Newcomb, Doug"  wrote:

Sanjeet,
Spotted this the other day if it helps.

https://medium.com/@boxed/moving-a-large-and-old-codebase-to-python3-
33a5a13f8c99

Hi Doug,

Thank you so much for sharing that. It is going to be really helpful in
listing the steps to port to  python 3.

Sanjeet
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GSOC 2018 project for GRASS GIS

2018-03-06 Thread Sanjeet
On Mar 6, 2018 3:38 AM, "Margherita Di Leo"  wrote:



On Tue, Mar 6, 2018 at 5:37 AM, Sanjeet  wrote:

> On Sat, Mar 3, 2018 at 10:50 PM, Anna Petrášová 
> wrote:
>
> Hi Anna,
>
> I've created a patch file for the ticket #3510.
>
> > To post a patch in that ticket, you need to get osgeo id:
> > https://www.osgeo.org/community/getting-started-osgeo/osgeo_userid/
>
> I'm waiting for 'mantra' to create the osgeo user id, so that I can
> upload the patch file.
>

What's your username?

>
Hi Margherita,

I got the email from osgeo and I was able to proceed further and create id.
So, my osgeo userid is 'sanjeet'. Is this the username that you were
referring to?

Thanks
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GSOC 2018 project for GRASS GIS

2018-03-06 Thread Newcomb, Doug
Sanjeet,
Spotted this the other day if it helps.

https://medium.com/@boxed/moving-a-large-and-old-codebase-to-python3-33a5a13f8c99

Doug

On Tue, Mar 6, 2018 at 4:38 AM, Margherita Di Leo 
wrote:

>
>
> On Tue, Mar 6, 2018 at 5:37 AM, Sanjeet  wrote:
>
>> On Sat, Mar 3, 2018 at 10:50 PM, Anna Petrášová 
>> wrote:
>> > Basically, the GUI is mostly ported to work with wxPython4 (phoenix),
>> > which is (unlike wxpython 3) Python 3 ready. So far we are running the
>> > GUI on Python 2.7 only. There are some loose ends and depreciation
>> > warnings, which would be nice to get rid of. Since we need to keep
>> > backwards compatibility with wxpython 3, we wrapped some GUI classes
>> > (gui/wxpython/gui_core/wrap.py), so you can start there. You need to
>> > test your changes under both wxpython 3 and 4. Let me know if you need
>> > more clarification. More info what is Attribute Table manager:
>> >
>> > https://grass.osgeo.org/grass75/manuals/wxGUI.dbmgr.html
>> > https://grasswiki.osgeo.org/wiki/WxGUI_Attribute_Table_Manager
>>
>> Hi Anna,
>>
>> I've created a patch file for the ticket #3510.
>>
>> > To post a patch in that ticket, you need to get osgeo id:
>> > https://www.osgeo.org/community/getting-started-osgeo/osgeo_userid/
>>
>> I'm waiting for 'mantra' to create the osgeo user id, so that I can
>> upload the patch file.
>>
>
> What's your username?
>
>>
>
>
> --
> Margherita Di Leo
>
> ___
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
>



-- 
Doug Newcomb
USFWS
551F Pylon Dr
Raleigh, NC
919-856-4520 ext. 14 doug_newc...@fws.gov
-

*NOTE: This email correspondence and any attachments to and from this
sender is subject to the Freedom of Information Act (FOIA) and may be
disclosed to third parties.*​
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] [GRASS GIS] #3512: r.in.lidar: Implement trim support for all methods

2018-03-06 Thread GRASS GIS
#3512: r.in.lidar: Implement trim support for all methods
-+-
 Reporter:  marisn   |  Owner:  grass-dev@…
 Type:  enhancement  | Status:  new
 Priority:  minor|  Milestone:  7.6.0
Component:  Raster   |Version:  unspecified
 Keywords:  lidar|CPU:  Unspecified
 Platform:  Unspecified  |
-+-
 At the moment r.in.lidar supports trim option only for trimmean method
 (r72329). Still it would be useful also for other methods ("n" could be an
 exception) when dealing with potentially noisy data sets.

 Discuss.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3510: wxpython 4: fix warnings for Attribute Table Manager

2018-03-06 Thread GRASS GIS
#3510: wxpython 4: fix warnings for Attribute Table Manager
--+-
  Reporter:  annakrat |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  minor|  Milestone:  7.6.0
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:  wxpython 4, attribute table
   CPU:  Unspecified  |   Platform:  Linux
--+-
Changes (by sanjeet):

 * Attachment "patch.diff" added.

 Patch file to fix the deprecated warnings for Attribution Table Manager.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] pygrass: how to use GridModule with a module that has a 'width' parameter

2018-03-06 Thread Moritz Lennert

Hi,

I'm trying to run the i.zc module in parallel on several tiles. I use 
this syntax


if options['tile_width']:
parallel = True
width = int(options['tile_width'])
height = int(options['tile_height'])
overlap = int(options['overlap'])

processes = int(options['processes'])



kwargs = {'input' : inputraster,
  'output' : temp_edge_map,
  'width' : int(options['zc_width']),
  'threshold' : float(options['zc_threshold']),
  'quiet' : True}

if parallel:
   grd = GridModule('i.zc',
width=width,
height=height,
overlap=overlap,
processes=processes,
split=False,
**kwargs)


However, this fails (understandably) with

TypeError: type object got multiple values for keyword argument 'width'

Is there a way to work around this name conflict ? Do I have to define 
my own class derived from GridModule to change the parameter names ?


Moritz
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3506: 3D view mode not available: Reason: name '__int64' is not defined

2018-03-06 Thread GRASS GIS
#3506: 3D view mode not available: Reason: name '__int64' is not defined
--+-
  Reporter:  hellik   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  major|  Milestone:  7.6.0
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  MSWindows 8
--+-

Comment (by mmetz):

 Replying to [comment:1 mmetz]:
 > Applies to trunk only. It seems to be a ctypes problem with the new 64
 integer type.

 The problem is apparently in
 
[https://trac.osgeo.org/grass/browser/grass/trunk/lib/python/ctypes/ctypesgencore/ctypedescs.py#L26
 ctypedescs.py]: the `ctypes_type_map` does not include `__int64` if
 `sys.platform == 'win32'`

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2967: [PATCH] Super quiet mode

2018-03-06 Thread GRASS GIS
#2967: [PATCH] Super quiet mode
--+-
  Reporter:  rouault  |  Owner:  grass-dev@…
  Type:  enhancement  | Status:  new
  Priority:  normal   |  Milestone:  7.4.1
 Component:  Parser   |Version:  svn-trunk
Resolution:   |   Keywords:  patch
   CPU:  Unspecified  |   Platform:  Unspecified
--+-

Comment (by mlennert):

 Replying to [comment:11 martinl]:
 > What is status of this issue?

 AFAIK, no one has touched this issue since. Since it wasn't largely
 announced I don't know how many people are actually aware of the --qq
 flag's existence. So no one has hit the choice of --qq as name as a
 problem in conflict with the convention of shortening flags.

 IIUC, the most sustainable option would be to follow Glynn's suggestion
 and replace the --q, --v and --qq flags with a generalized verbose=
 parameter which the user can set to any of the values accepted by
 GRASS_VERBOSE. But I imagine this implies seriously rewriting of the
 parser ?

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GSOC 2018 project for GRASS GIS

2018-03-06 Thread Margherita Di Leo
On Tue, Mar 6, 2018 at 5:37 AM, Sanjeet  wrote:

> On Sat, Mar 3, 2018 at 10:50 PM, Anna Petrášová 
> wrote:
> > Basically, the GUI is mostly ported to work with wxPython4 (phoenix),
> > which is (unlike wxpython 3) Python 3 ready. So far we are running the
> > GUI on Python 2.7 only. There are some loose ends and depreciation
> > warnings, which would be nice to get rid of. Since we need to keep
> > backwards compatibility with wxpython 3, we wrapped some GUI classes
> > (gui/wxpython/gui_core/wrap.py), so you can start there. You need to
> > test your changes under both wxpython 3 and 4. Let me know if you need
> > more clarification. More info what is Attribute Table manager:
> >
> > https://grass.osgeo.org/grass75/manuals/wxGUI.dbmgr.html
> > https://grasswiki.osgeo.org/wiki/WxGUI_Attribute_Table_Manager
>
> Hi Anna,
>
> I've created a patch file for the ticket #3510.
>
> > To post a patch in that ticket, you need to get osgeo id:
> > https://www.osgeo.org/community/getting-started-osgeo/osgeo_userid/
>
> I'm waiting for 'mantra' to create the osgeo user id, so that I can
> upload the patch file.
>

What's your username?

>


-- 
Margherita Di Leo
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3506: 3D view mode not available: Reason: name '__int64' is not defined

2018-03-06 Thread GRASS GIS
#3506: 3D view mode not available: Reason: name '__int64' is not defined
--+-
  Reporter:  hellik   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  major|  Milestone:  7.6.0
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  MSWindows 8
--+-
Changes (by mmetz):

 * version:  7.4.0 => svn-trunk
 * milestone:  7.4.1 => 7.6.0


Comment:

 Applies to trunk only. It seems to be a ctypes problem with the new 64
 integer type.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev