Re: [GRASS-dev] How to develop on windows.

2017-10-02 Thread Helmut Kudrnovsky
[please keep it on the GRASS dev ML! that other are able to benefit]

Gesendet: Montag, 02. Oktober 2017 um 18:46 Uhr
Von: "CM Reddy" 
Betreff: Re: [GRASS-dev] How to develop on windows.

Thanks Helmut for your help. Root folder ( OSGEO4W_ROOT) was incorrectly
set in the BAT file.

Application is up and running.

- Thanks

CM

On 02-10-2017 14:48, Helmut Kudrnovsky wrote:
> CM Reddy wrote
>> Hi Moritz
>>
>> I did the steps mentioned in the following and compiled the code
>> successfully on Windows 10 machine.
>>
>> * https://trac.osgeo.org/grass/wiki/CompileOnWindows
>>
>> No errors in the error.log file. It created grass executable successfully.
>>
>> Found following error in running the grass executable.
>> 
>> C:\OSGeo4W64\bin>grass73svn.bat
>> '""' is not recognized as an internal or external command,
>> operable program or batch file.
>> Press any key to continue . . .
>> 
> quoting here C:\OSGeo4W64\bin\grass73svn.bat:
>
> @echo off
> rem
> #
> rem #
> rem # GRASS initialization bat script (OSGeo4W)
> rem #
> rem
> #
>
> SET OSGEO4W_ROOT=C:\OSGeo4W64
>
> rem
> rem Set environmental variables
> rem
> call %OSGEO4W_ROOT%\bin\o4w_env.bat
> call %OSGEO4W_ROOT%\apps\grass\grass-7.3.svn\etc\env.bat
>
> rem
> rem Launch GRASS GIS
> rem
> "%GRASS_PYTHON%" "%GISBASE%\etc\grass73.py" %*
>
> rem
> rem Pause on error
> rem
> if %ERRORLEVEL% GEQ 1 pause
>
>
>
> -
> best regards
> Helmut
> --
> Sent from: 
> http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html[http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html]
> ___
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev[https://lists.osgeo.org/mailman/listinfo/grass-dev]
 
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [release planning] 7.4.0

2017-10-02 Thread Markus Neteler
On Mon, Oct 2, 2017 at 3:48 PM, Martin Landa  wrote:
> 2017-10-02 15:01 GMT+02:00 Luca Delucchi :
>>> G7A:r.geomorphon
>>> G7A:r.object.geometry - +/- equivalent to v.to.db, but for raster
>>> objects: very useful for many other modules (notably OBIA)
>>> G7A:r.vect.stats - very simple, but nice functionality to have in core
>>> G7A:v.centerpoint - basic GIS functionality
>>> G7A:v.clip - very easy to use and expected GIS functionality without
>>> hassle of complicated commmands :-)
>>> G7A:v.profile - expected GIS functionality
>>>
>>
>> +1 for all the candidates
>
> please note, that new modules in trunk should have (ideally) tests. Martin

Right. As usual, especially the addon authors are kindly invited to
provide test cases.

Here some suggestions:

###
r.geomorphon:
--> in the directory is an initial "test_rgeomorphon_NC.sh"

###
r.object.geometry:  NC dataset
g.region raster=facility -p n=n+100 s=s-100 w=w-100 e=e+100
r.report facility unit=me | grep "facility"
 100%
|MAP: Rural area: Footprint of planned facility (facility in PERMANENT)   |
|1|facility footprint . . . . . . . . . . . . . . . . . . . . . . .| 13,130.00|

r.object.geometry input=facility separator=comma -m --q
cat,area,perimeter,compact_square,compact_circle,fd
1,13130.00,478.00,0.958880,1.176767,1.301241

###
r.vect.stats:  NC dataset

eval `g.region raster=ncmask_500m -g`
v.random output=binary_random npoints=$cells
# assumption: in average one random point per cell

r.vect.stats input=binary_random output=nc_binary_random_sum method=sum
r.univar nc_binary_random_sum -g | grep "mean="
mean=1

###
v.centerpoint:  too many warning still:

g.extension v.centerpoint
Fetching  from GRASS GIS Addons repository (be patient)...
Compiling...
areas.c: In function ‘areas_center’:
areas.c:165:7: warning: this ‘if’ clause does not guard...
[-Wmisleading-indentation]
   if (ICats->field[i] == layer)
   ^~
areas.c:167:4: note: ...this statement, but the latter is misleadingly
indented as if it were guarded by the ‘if’
cat = ICats->cat[i];
^~~
areas.c:428:14: warning: declaration of ‘tot_w’ shadows a previous
local [-Wshadow]
  double *wb, tot_w;
  ^
areas.c:18:15: note: shadowed declaration is here
 double w, tot_w;
   ^
Installing...


###
v.clip: NC dataset
https://grass.osgeo.org/grass72/manuals/addons/v.clip.html

A clip test could be made by counting points falling into a polygon,
similar to the example in the manual page.

###
v.profile: NC dataset
https://grass.osgeo.org/grass72/manuals/addons/v.profile.html

A profile test could be made from the second example in the manual page.

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

Re: [GRASS-dev] Fwd: [SoC] Google Code In (GCI) 2017 just announced! And we want to participate

2017-10-02 Thread Veronica Andreo
Ciao Lu,

2017-09-28 7:53 GMT+02:00 Luca Delucchi :

> On 25 September 2017 at 18:25, Veronica Andreo 
> wrote:
> > Ciao Lu,
> >
>
> Ciao Vero,
>
> > I signed in and will attend the meeting tonight through IRC chat. I had
> some
> > ideas in mind:
> >
>
> thanks to follow it
>
> > - Design the t-shirt for the next code-sprint
> > - Add examples to xx manual pages
> > - Make a promo video for GRASS GIS
> > - Make new tutorial videos for GRASS GIS
> > - Enhance the visual index
> > - Make screenshots for release pages (eg.
> > https://trac.osgeo.org/grass/wiki/Grass7/NewFeatures74)
> > - Create screenshot for the next 74 release announcement
> >
> > what do you think? too simple? too complicated?
> >
>
> +1, could you start a wiki page (on GRASS wiki) with ideas please?
>

Done :)

Draft page here: https://grasswiki.osgeo.org/wiki/GRASS_GCI_Ideas_2017

more info and details to be added.

Importantly, what we need the most now is more mentors. Then, we need to
transform ideas into tasks. Note that translations in transifex are not
allowed as tasks.

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

Re: [GRASS-dev] addons repo

2017-10-02 Thread Markus Neteler
Hi Martin,

On Sat, Sep 30, 2017 at 1:12 PM, Vincent Bain  wrote:
> Hi,
>
> while trying to fetch an extension, I noticed g.extension fails this
> morning, it appears the file :
>
> https://grass.osgeo.org/addons/grass7/modules.xml
>
> is empty (last modified 2017-09-30 04:00).
>
> Any idea what happened ?

currently geo102.fsv.cvut.cz delivers modules.xml no more (wget fails).

Can you please check the server?

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

Re: [GRASS-dev] [release planning] 7.4.0

2017-10-02 Thread Martin Landa
Hi,

2017-10-02 15:01 GMT+02:00 Luca Delucchi :
>> G7A:r.geomorphon
>> G7A:r.object.geometry - +/- equivalent to v.to.db, but for raster
>> objects: very useful for many other modules (notably OBIA)
>> G7A:r.vect.stats - very simple, but nice functionality to have in core
>> G7A:v.centerpoint - basic GIS functionality
>> G7A:v.clip - very easy to use and expected GIS functionality without
>> hassle of complicated commmands :-)
>> G7A:v.profile - expected GIS functionality
>>
>
> +1 for all the candidates

please note, that new modules in trunk should have (ideally) tests. Martin

-- 
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] [release planning] 7.4.0

2017-10-02 Thread Luca Delucchi
On 1 October 2017 at 15:28, Markus Neteler  wrote:
> Hi,
>

Hi,

> I would also like to make progress on the Addons to be moved:
> https://trac.osgeo.org/grass/wiki/Grass7Planning#Addoncandidatetobemovedtotrunk
>
> Candidates:
> G7A:r.geomorphon
> G7A:r.object.geometry - +/- equivalent to v.to.db, but for raster
> objects: very useful for many other modules (notably OBIA)
> G7A:r.vect.stats - very simple, but nice functionality to have in core
> G7A:v.centerpoint - basic GIS functionality
> G7A:v.clip - very easy to use and expected GIS functionality without
> hassle of complicated commmands :-)
> G7A:v.profile - expected GIS functionality
>

+1 for all the candidates

> thanks,
> Markus
>

-- 
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] How to develop on windows.

2017-10-02 Thread Helmut Kudrnovsky
CM Reddy wrote
> Hi Moritz
> 
> I did the steps mentioned in the following and compiled the code
> successfully on Windows 10 machine.
> 
>   *   https://trac.osgeo.org/grass/wiki/CompileOnWindows
> 
> No errors in the error.log file. It created grass executable successfully.
> 
> Found following error in running the grass executable.
> 
> C:\OSGeo4W64\bin>grass73svn.bat
> '""' is not recognized as an internal or external command,
> operable program or batch file.
> Press any key to continue . . .
> 

quoting here C:\OSGeo4W64\bin\grass73svn.bat:

@echo off
rem
#
rem #
rem # GRASS initialization bat script (OSGeo4W)
rem #
rem
#

SET OSGEO4W_ROOT=C:\OSGeo4W64

rem
rem Set environmental variables
rem
call %OSGEO4W_ROOT%\bin\o4w_env.bat
call %OSGEO4W_ROOT%\apps\grass\grass-7.3.svn\etc\env.bat

rem
rem Launch GRASS GIS
rem
"%GRASS_PYTHON%" "%GISBASE%\etc\grass73.py" %*

rem
rem Pause on error
rem
if %ERRORLEVEL% GEQ 1 pause



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] How to develop on windows.

2017-10-02 Thread Helmut Kudrnovsky
CM Reddy wrote
> Hi Moritz
> 
> I did the steps mentioned in the following and compiled the code
> successfully on Windows 10 machine.
> 
>   *   https://trac.osgeo.org/grass/wiki/CompileOnWindows
> 
> No errors in the error.log file. It created grass executable successfully.
> 
> Found following error in running the grass executable.
> 
> C:\OSGeo4W64\bin>grass73svn.bat
> '""' is not recognized as an internal or external command,
> operable program or batch file.
> Press any key to continue . . .
> 
> 
> Please help me in resoling the above issue.
> 
> - Thanks in advance.
> 
> CM
> 
> On 25-09-2017 23:08, Moritz Lennert wrote:
> On 25/09/17 19:00, CM Reddy wrote:
> Hi All,
> 
> We would like compile and install the Grass source on Windows 10
> machine. Is it possible to set up the environment on Windows 10 and
> develop some modules ?
> 
>If so, please provide the steps to setup on windows machine ? Do we
> need to have any specific IDE for development( like eclipse etc )?
> 
> 
> No special IDE needed. Start with the info at [1] and come back to us if
> you have any questions.
> 
> Moritz
> 
> [1] https://trac.osgeo.org/grass/wiki/CompileOnWindows
> 
> 
> 
> ___
> grass-dev mailing list

> grass-dev@.osgeo

> https://lists.osgeo.org/mailman/listinfo/grass-dev

Please post the content of


C:\OSGeo4W64\bin>grass73svn.bat

How did you invoked it?



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] How to develop on windows.

2017-10-02 Thread CM Reddy
Hi Moritz

I did the steps mentioned in the following and compiled the code successfully 
on Windows 10 machine.

  *   https://trac.osgeo.org/grass/wiki/CompileOnWindows

No errors in the error.log file. It created grass executable successfully.

Found following error in running the grass executable.



C:\OSGeo4W64\bin>grass73svn.bat
'""' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .




Please help me in resoling the above issue.

- Thanks in advance.

CM

On 25-09-2017 23:08, Moritz Lennert wrote:
On 25/09/17 19:00, CM Reddy wrote:
Hi All,

We would like compile and install the Grass source on Windows 10
machine. Is it possible to set up the environment on Windows 10 and
develop some modules ?

   If so, please provide the steps to setup on windows machine ? Do we
need to have any specific IDE for development( like eclipse etc )?


No special IDE needed. Start with the info at [1] and come back to us if you 
have any questions.

Moritz

[1] https://trac.osgeo.org/grass/wiki/CompileOnWindows


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