Re: [GRASS-dev] [GRASS GIS] #3391: r.learn.ml : the list of caterory map indices is not handled properly.

2017-08-09 Thread GRASS GIS
#3391: r.learn.ml : the list of caterory map indices is not handled properly.
-+-
  Reporter:  maitl   |  Owner:  grass-dev@…
  Type:  defect  | Status:  closed
  Priority:  normal  |  Milestone:  7.2.2
 Component:  Addons  |Version:  unspecified
Resolution:  fixed   |   Keywords:
   CPU:  All |   Platform:  All
-+-
Changes (by spawley):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Thanks again for this Jaan, I have updated the Add-Ons with #71358 and I'm
 closing the ticket.

--
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] #3390: r.learn.ml crossvalidation fails if category map class codes increase more then +1

2017-08-09 Thread GRASS GIS
#3390: r.learn.ml crossvalidation fails if category map class codes increase 
more
then +1
-+-
  Reporter:  maitl   |  Owner:  grass-dev@…
  Type:  defect  | Status:  closed
  Priority:  normal  |  Milestone:  7.2.2
 Component:  Addons  |Version:  unspecified
Resolution:  fixed   |   Keywords:
   CPU:  All |   Platform:  All
-+-
Changes (by spawley):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Thanks for reporting this and providing the bug fix. This has been updated
 in the Add-Ons in #71358 and I'm closing the ticket.

 Steve

--
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] #2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)

2017-08-09 Thread GRASS GIS
#2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)
--+-
  Reporter:  pieside  |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:  7.2.2
 Component:  Default  |Version:  7.2.0
Resolution:   |   Keywords:  FreeBSD
   CPU:  x86-64   |   Platform:  Other Unix
--+-

Comment (by mmetz):

 Replying to [comment:18 neteler]:
 > Replying to [comment:17 lbartoletti]:
 > > The most changes to the sources is to replace hardcoded python to the
 specific version used.

 This can be avoided with `pkg install python` which does not install
 python, but creates a link to a specific python version: python -> python2
 >
 > @devs: do we want this upstream?
 >
 >
 https://svnweb.freebsd.org/ports/head/databases/grass7/Makefile?view=markup
 >
 > > You can see all changes on
 [https://svnweb.freebsd.org/ports/head/databases/grass7/Makefile?view=markup
 Makefile] and
 [https://svnweb.freebsd.org/ports/head/databases/grass7/files/ patches]
 >
 > I see specifically these patches:
 >
 > # test writable check change
 >
 > https://svnweb.freebsd.org/ports/head/databases/grass7/files/patch-
 include_Make_Install.make?view=markup

 This patch removes the writable check. IMHO it is a good idea to have this
 check.
 >
 > # ctypes GCC flag change:
 >
 > https://svnweb.freebsd.org/ports/head/databases/grass7/files/patch-
 lib_python_ctypes_ctypesgencore_parser_preprocessor.py?view=markup

 Added to trunk and relbr72 in r71356,7 (applied only for FreeBSD).

--
Ticket URL: 
GRASS GIS 

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

Re: [GRASS-dev] [release planning] GRASS GIS 7.2.2

2017-08-09 Thread Moritz Lennert

On 04/08/17 12:04, Martin Landa wrote:

2017-08-04 11:37 GMT+02:00 Markus Neteler :

r71253 dbmi_base lib: add missing arg type
r71191 lidarlib: free structs

They are not backport yet in case they should be.


I think so, done in r71323-4. Ma



As can be seen from [1], there is confusion about v.in.ogr syntax for 
importing PostGIS layers. This was modified in May (r71093/r71096) to 
correspond to ogr syntax. The man page still has other info, however.


IIUC, in the current (trunk and release72) version, this is enough to 
import a layer:


v.in.ogr input="PG:host=localhost dbname=postgis user=postgres" 
layer=polymap \

output=polygons type=boundary,centroid

and with schema:

v.in.ogr input="PG:host=localhost dbname=postgis user=postgres" 
layer=schema.polymap \

output=polygons type=boundary,centroid

I'm not sure if any of the info in the "Default connection settings as 
datasource (PostgreSQL only)" section of the man page is still valid. If 
not, I suggest to erase the entire section and add an example with a 
schema into the "PostGIS tables" section.


Martin, any comments ?

Moritz

[1] https://lists.osgeo.org/pipermail/grass-user/2017-August/076804.html


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

[GRASS-dev] [GRASS GIS] #3391: r.learn.ml : the list of caterory map indices is not handled properly.

2017-08-09 Thread GRASS GIS
#3391: r.learn.ml : the list of caterory map indices is not handled properly.
+-
 Reporter:  maitl   |  Owner:  grass-dev@…
 Type:  defect  | Status:  new
 Priority:  normal  |  Milestone:  7.2.2
Component:  Addons  |Version:  unspecified
 Keywords:  |CPU:  All
 Platform:  All |
+-
 # convert to lists
 """
 if ',' in categorymaps:
 categorymaps = [int(i) for i in categorymaps.split(',')]
 print(categorymaps)
 else: categorymaps = None
 """

 fails if there is only one category map.

 --
 The proposed solution is


 if categorymaps.strip() == '':
 categorymaps = None
 else:
 try:
 categorymaps = [int(i.strip()) for i in
 categorymaps.split(',')]
 # negatiivse ja maplist, _ = maps_from_group(group) suurima
 indeksi kontroll, dublikaatide kontroll (unique)
 nCategories = len(maps_from_group(group)[0])
 if min(categorymaps) < 0:
 gscript.fatal('Category map index can not be negative.')
 if max(categorymaps) > nCategories - 1:
 gscript.fatal('Category map index input can not exceed ' +
 str(nCategories - 1))
 if not len(np.unique(categorymaps)) == len(categorymaps):
 gscript.fatal('Duplicate indices in category map index
 list.')
 except:
 gscript.fatal('Error in category map list input.')

 if ',' in indexes:
 indexes = [int(i) for i in indexes.split(',')]
 else:
 indexes = int(indexes)
 if indexes == -1: indexes = None

 # credits for this fix go to Jaan Janno from Tartu University, Estonia

--
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] #3391: r.learn.ml : the list of caterory map indices is not handled properly.

2017-08-09 Thread GRASS GIS
#3391: r.learn.ml : the list of caterory map indices is not handled properly.
-+-
  Reporter:  maitl   |  Owner:  grass-dev@…
  Type:  defect  | Status:  new
  Priority:  normal  |  Milestone:  7.2.2
 Component:  Addons  |Version:  unspecified
Resolution:  |   Keywords:
   CPU:  All |   Platform:  All
-+-
Changes (by maitl):

 * Attachment "r.learn.ml" added.

 The copy of r.learn.ml with bugfix example

--
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] #3390: r.learn.ml crossvalidation fails if category map class codes increase more then +1

2017-08-09 Thread GRASS GIS
#3390: r.learn.ml crossvalidation fails if category map class codes increase 
more
then +1
-+-
  Reporter:  maitl   |  Owner:  grass-dev@…
  Type:  defect  | Status:  new
  Priority:  normal  |  Milestone:  7.2.2
 Component:  Addons  |Version:  unspecified
Resolution:  |   Keywords:
   CPU:  All |   Platform:  All
-+-
Changes (by maitl):

 * Attachment "r.learn.ml" added.

 r.learn.ml with bugfix example

--
Ticket URL: 
GRASS GIS 

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

[GRASS-dev] [GRASS GIS] #3390: r.learn.ml crossvalidation fails if category map class codes increase more then +1

2017-08-09 Thread GRASS GIS
#3390: r.learn.ml crossvalidation fails if category map class codes increase 
more
then +1
+-
 Reporter:  maitl   |  Owner:  grass-dev@…
 Type:  defect  | Status:  new
 Priority:  normal  |  Milestone:  7.2.2
Component:  Addons  |Version:  unspecified
 Keywords:  |CPU:  All
 Platform:  All |
+-
 Crossvalidation fails if class ID values in category maps do not increase
 strictly by +1 i.e 1, 2, 3, 4, 5, 6 ... .

 E.g. a cass code list  10, 11, 12, 13, 25, 26 is not handled properly.

 The bug is here:

 if mode == 'classification' and cv > np.histogram(
 y, bins=len(np.unique(y)))[0].min():

 The solution is to use

 if mode == 'classification' and cv > np.histogram(
y, bins=np.unique(y))[0].min():

--
Ticket URL: 
GRASS GIS 

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

Re: [GRASS-dev] compilation of addons for windows

2017-08-09 Thread Anna Petrášová
Thank you!

On Aug 9, 2017 5:58 AM, "Martin Landa"  wrote:

Hi,

2017-07-27 19:52 GMT+02:00 Anna Petrášová :
> I noticed the last log of addon Windows compilation is from May:
>
> https://wingrass.fsv.cvut.cz/grass72/x86_64/addons/latest/logs/
>
> Are you aware of that?

thanks for report, the link (latest) was pointing to 7.2.1RC2 and not
7.2.1. I have fixed that. Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] winGRASS 7-32bit builds broken

2017-08-09 Thread Martin Landa
Hi,

2017-07-09 12:25 GMT+02:00 Martin Landa :
>> it seems the winGRASS 7-32bit nightly builds are broken since 16-Jun-2017
>> due to
>>
>> checking for deflate in -lz... no
>> configure: error: *** Unable to locate zlib library.
>
> will take a look. Thanks for info. Ma

should be fixed in r71350. Let's check tomorrow's build (trunk). Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] compilation of addons for windows

2017-08-09 Thread Martin Landa
Hi,

2017-07-27 19:52 GMT+02:00 Anna Petrášová :
> I noticed the last log of addon Windows compilation is from May:
>
> https://wingrass.fsv.cvut.cz/grass72/x86_64/addons/latest/logs/
>
> Are you aware of that?

thanks for report, the link (latest) was pointing to 7.2.1RC2 and not
7.2.1. I have fixed that. Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev