Re: [GRASS-dev] [GRASS GIS] #2448: Fontconfig error with cairo on Windows

2014-10-16 Thread GRASS GIS
#2448: Fontconfig error with cairo on Windows
-+--
 Reporter:  annakrat |   Owner:  grass-dev@…  
 Type:  defect   |  Status:  new  
 Priority:  normal   |   Milestone:  7.0.0
Component:  Display  | Version:  svn-trunk
 Keywords:  font |Platform:  MSWindows 8  
  Cpu:  Unspecified  |  
-+--

Comment(by hellik):

 Replying to [comment:4 annakrat]:
  Does anyone know where this config file should be located and where does
 it come from?

 he related data lives in
 ''C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\fontcap'' and AFAIK it is
 generated during compilation by g.mkfontcap [1].

 for the wingrass standalone installer years ago I've implemented a new
 g.mkfontcap run during installation as the fonts list differs between the
 compilation computer (Martin's compiling server) and your computer.

 [1] http://grass.osgeo.org/grass71/manuals/g.mkfontcap.html

 [2]  http://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-
 Installer.nsi.tmpl#L538

-- 
Ticket URL: http://trac.osgeo.org/grass/ticket/2448#comment:5
GRASS GIS http://grass.osgeo.org

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

Re: [GRASS-dev] [GRASS GIS] #2450: Grass7: improve font selection dialog in GUI option for map display

2014-10-16 Thread GRASS GIS
#2450: Grass7: improve font selection dialog in GUI option for map display
-+--
 Reporter:  hellik   |   Owner:  grass-dev@…  
 Type:  enhancement  |  Status:  new  
 Priority:  normal   |   Milestone:  7.0.0
Component:  wxGUI| Version:  unspecified  
 Keywords:  fonts|Platform:  Unspecified  
  Cpu:  Unspecified  |  
-+--

Comment(by hellik):

 Replying to [comment:1 annakrat]:
  I would definitely agree, I just don't understand where d.fontlist takes
 the fonts

 probably from this file
 ''C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\fontcap''

-- 
Ticket URL: http://trac.osgeo.org/grass/ticket/2450#comment:2
GRASS GIS http://grass.osgeo.org

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

Re: [GRASS-dev] [GRASS GIS] #2448: Fontconfig error with cairo on Windows

2014-10-16 Thread GRASS GIS
#2448: Fontconfig error with cairo on Windows
-+--
 Reporter:  annakrat |   Owner:  grass-dev@…  
 Type:  defect   |  Status:  new  
 Priority:  normal   |   Milestone:  7.0.0
Component:  Display  | Version:  svn-trunk
 Keywords:  font |Platform:  MSWindows 8  
  Cpu:  Unspecified  |  
-+--

Comment(by hellik):

 Replying to [comment:4 annakrat]:
  Does anyone know where this config file should be located and where does
 it come from?

 in the d.font-manual:


 {{{
 font=name
 Name of a font type, from among the font types italicized below.
 Default: romans
 Options: (italized)
 cyrilc Cyrillic
 gothgbt Gothic Great Britain triplex
 gothgrt Gothic German triplex
 gothitt Gothic Italian triplex
 greekc Greek complex
 greekcs Greek complex script
 greekp Greek plain
 greeks Greek simplex
 italicc Italian complex
 italiccs Italian complex small
 italict Italian triplex
 romanc Roman complex
 romancs Roman complex small
 romand Roman duplex
 romanp Roman plain
 romans Roman simplex
 romant Roman triplex
 scriptc Script complex
 scripts Script simplex
 }}}


 these are the fonts bundled with GRASS GIS livin in
 C:\OSGeo4W\apps\grass\grass-7.1.svn\fonts

 with Default: romans

 a quick look in the fontcap file
 C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\fontcap of OSGeo4W-winGRASS


 {{{
 cyrilc|Cyrillic|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\cyrilc.hmp|0|utf-8|
 gothgbt|Gothic Great Britain
 triplex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\gothgbt.hmp|0|utf-8|
 gothgrt|Gothic German triplex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\gothgrt.hmp|0|utf-8|
 gothitt|Gothic Italian triplex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\gothitt.hmp|0|utf-8|
 greekc|Greek complex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\greekc.hmp|0|utf-8|
 greekcs|Greek complex script|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\greekcs.hmp|0|utf-8|
 greekp|Greek plain|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\greekp.hmp|0|utf-8|
 greeks|Greek simplex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\greeks.hmp|0|utf-8|
 italicc|Italian complex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\italicc.hmp|0|utf-8|
 italiccs|Italian complex small|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\italiccs.hmp|0|utf-8|
 italict|Italian triplex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\italict.hmp|0|utf-8|
 romanc|Roman complex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\romanc.hmp|0|utf-8|
 romancs|Roman complex small|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\romancs.hmp|0|utf-8|
 romand|Roman duplex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\romand.hmp|0|utf-8|
 romans|Roman simplex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\romans.hmp|0|utf-8|
 romant|Roman triplex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\romant.hmp|0|utf-8|
 scriptc|Script complex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\scriptc.hmp|0|utf-8|
 scripts|Script simplex|0|C:\OSGeo4W\src\grass7_trunk\dist.i686-pc-
 mingw32\fonts\scripts.hmp|0|utf-8|

 }}}

 and in a standalone winGRASS

 C:\Program Files\GRASS GIS 7.1.svn\etc\fontcap


 {{{
 cyrilc|Cyrillic|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\cyrilc.hmp|0|utf-8|
 gothgbt|Gothic Great Britain triplex|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\gothgbt.hmp|0|utf-8|
 gothgrt|Gothic German triplex|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\gothgrt.hmp|0|utf-8|
 gothitt|Gothic Italian triplex|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\gothitt.hmp|0|utf-8|
 greekc|Greek complex|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\greekc.hmp|0|utf-8|
 greekcs|Greek complex script|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\greekcs.hmp|0|utf-8|
 greekp|Greek plain|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\greekp.hmp|0|utf-8|
 greeks|Greek simplex|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\greeks.hmp|0|utf-8|
 italicc|Italian complex|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\italicc.hmp|0|utf-8|
 italiccs|Italian complex small|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\italiccs.hmp|0|utf-8|
 italict|Italian triplex|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\italict.hmp|0|utf-8|
 romanc|Roman complex|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\romanc.hmp|0|utf-8|
 romancs|Roman complex small|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\romancs.hmp|0|utf-8|
 romand|Roman duplex|0|C:\Program Files\GRASS GIS
 7.1.svn\fonts\romand.hmp|0|utf-8|
 romans|Roman simplex|0|C:\Program Files\GRASS GIS
 

Re: [GRASS-dev] Backport r.li memory allocation fixes?

2014-10-16 Thread Markus Metz
On Wed, Oct 15, 2014 at 7:52 AM, Markus Neteler nete...@osgeo.org wrote:
 On Wed, Oct 15, 2014 at 3:35 AM, Vaclav Petras wenzesl...@gmail.com wrote:
 Hi Markus and others,

 I would do a backport or r61812 but I'm not sure if it works correctly. It
 seems to work and I got the same results as with the old version but I
 remember that you (Markus) had some doubts at one point. Now I actually see
 that you said you will backport it, so if you have your plan disregard this
 message.

 Please backport it.

... after removing the C++ style comment in raster/r.li/r.li.daemon/avl.c.

Markus M


 It should probably also go into G6 which is almost
 identical.

 I also wanted to use the things bellow to write a test but I don't know how.

 Would this script give some ideas?
 raster/r.li/r.li.testing_nc_asc.sh

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


Re: [GRASS-dev] [GRASS GIS] #2450: Grass7: improve font selection dialog in GUI option for map display

2014-10-16 Thread GRASS GIS
#2450: Grass7: improve font selection dialog in GUI option for map display
-+--
 Reporter:  hellik   |   Owner:  grass-dev@…  
 Type:  enhancement  |  Status:  new  
 Priority:  normal   |   Milestone:  7.0.0
Component:  wxGUI| Version:  unspecified  
 Keywords:  fonts|Platform:  Unspecified  
  Cpu:  Unspecified  |  
-+--

Comment(by glynn):

 Replying to [comment:1 annakrat]:
  I would definitely agree, I just don't understand where d.fontlist takes
 the fonts
 d.fontlist gets the list via D_font_list(), which calls COM_Font_list(),
 which first reads the fonts from the file specified by $GRASS_FONT_CAP
 (falling back to $GISBASE/etc/fontcap), then adds any fonts obtained by
 the driver's Font_list method if provided (currently, only the cairo
 driver implements this method).

-- 
Ticket URL: http://trac.osgeo.org/grass/ticket/2450#comment:3
GRASS GIS http://grass.osgeo.org

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

[GRASS-dev] [GRASS GIS] #2452: v.surf.rst option devi Windows problem

2014-10-16 Thread GRASS GIS
#2452: v.surf.rst option devi Windows problem
-+--
 Reporter:  annakrat |   Owner:  grass-dev@…  
 Type:  defect   |  Status:  new  
 Priority:  normal   |   Milestone:  7.0.0
Component:  Vector   | Version:  svn-releasebranch70  
 Keywords:  v.surf.rst   |Platform:  MSWindows 8  
  Cpu:  Unspecified  |  
-+--
 I have weird problems with devi option on Windows. When I run this command
 in nc_spm:

 {{{
 g.region rural_1m res=1
 v.surf.rst elev_lid792_randpts elev=elev_rstdef_1m zcol=value
 aspect=asp_rstdef_1m segmax=30 npmin=140
 }}}

 and then try to rerun it again with overwrite flag, I get:

 {{{
 ...
 WARNING: Vector map elev_rstdef_devi is not opened
 WARNING: Vector map elev_rstdef_devi is not opened
 WARNING: Vector map elev_rstdef_devi is not opened
 WARNING: Vector map elev_rstdef_devi is not opened
  100%
 Building topology for vector map elev_rstdef_devi@us
 Registering primitives...
 WARNING: Vector map is not open for reading
 WARNING: Unable to read vector map
 WARNING: Unable to close vector elev_rstdef_devi@use
 v.surf.rst complete.
 }}}

 Interestingly, when I try to remove the vector file manually, I can't and
 I have to close grass session completely and after that I can delete it.
 So it looks something is left behind.

 d.vect had at one point problem to display the vector after the first run
 but I was not able to reproduce it, now it displays fine.

 Any hint what could be wrong? Unfortunately I am not able to reproduce the
 error on Ubuntu.

-- 
Ticket URL: http://trac.osgeo.org/grass/ticket/2452
GRASS GIS http://grass.osgeo.org

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

Re: [GRASS-dev] [GRASS GIS] #2448: Fontconfig error with cairo on Windows

2014-10-16 Thread GRASS GIS
#2448: Fontconfig error with cairo on Windows
-+--
 Reporter:  annakrat |   Owner:  grass-dev@…  
 Type:  defect   |  Status:  new  
 Priority:  normal   |   Milestone:  7.0.0
Component:  Display  | Version:  svn-trunk
 Keywords:  font |Platform:  MSWindows 8  
  Cpu:  Unspecified  |  
-+--

Comment(by annakrat):

 The problem appears with standalone installer too. Fontcap file has the
 osgeo4w absolute path. The problem is that during installation,
 run_gmkfontcap fails and the error message (when I run it afterwards
 separately) is:

 {{{
 ERROR: Cannot open C:\Program Files (x86)\GRASS GIS svn/etc/fontcap for
 writing: Permission denied
 }}}

 Running run_gmkfontcap as administrator doesn't help.

-- 
Ticket URL: http://trac.osgeo.org/grass/ticket/2448#comment:7
GRASS GIS http://grass.osgeo.org

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

Re: [GRASS-dev] [GRASS GIS] #2451: rendering vector in map display freezes when fonts is changed in GUI options: map display

2014-10-16 Thread GRASS GIS
#2451: rendering vector in map display freezes when fonts is changed in GUI
options: map display
-+--
 Reporter:  hellik   |   Owner:  grass-dev@…  
 Type:  defect   |  Status:  new  
 Priority:  normal   |   Milestone:  7.0.0
Component:  Display  | Version:  svn-trunk
 Keywords:  fonts|Platform:  MSWindows 7  
  Cpu:  Unspecified  |  
-+--

Comment(by annakrat):

 I tried to fix it in r62269 and backported. The fix assumes there is no
 font with non-ascii characters which might not be always true, I don't
 know.

-- 
Ticket URL: http://trac.osgeo.org/grass/ticket/2451#comment:1
GRASS GIS http://grass.osgeo.org

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

[GRASS-dev] What should d.erase do in the main wxGUI?

2014-10-16 Thread Vaclav Petras
Hi,

in GRASS 7, the d.erase command is not supported in the main GUI.

For `d.mon wx0` d.erase removes all rasters and shows the backgroud.
d.erase bgcolor is ignored.

For `d.mon png` d.erase uses bgcolor as expected.

For the main GUI, the question is if the Layers in Layer Manager should be
removed or just unchecked. I'm for removing them.

The second question is if the background should be changed. The same
applies to `d.mon wx0`. The settings of background color in GUI is done
differently but perhaps d.erase can change the color temporary (I'm not
sure how hard this would be to implement).

Is there something else what d.erase is doing? I got the impression that it
zooms to computational region but manual page is silent about it.

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

Re: [GRASS-dev] What should d.erase do in the main wxGUI?

2014-10-16 Thread Helena Mitasova
Vasek,

the main reason we have d.erase in the assignments and in the book is for 
zooming to computational region,
including changing the resolution 

# for d.erase: Zoom to computational region and switch off previous map layers 

the manual page does not say it, probably because it was implied.
If possible it may be useful to have the zoom to region as a flag?
d.erase would just switch off the layers (I am not sure it should remove them - 
let us see what others say)
d.erase -r would remove the layers and zoom the display to computational region.

This would be extremely helpful in the assignments when switching to 3D view

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
hmit...@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 Oct 16, 2014, at 11:43 PM, Vaclav Petras wrote:

 Hi,
 
 in GRASS 7, the d.erase command is not supported in the main GUI.
 
 For `d.mon wx0` d.erase removes all rasters and shows the backgroud. d.erase 
 bgcolor is ignored.
 
 For `d.mon png` d.erase uses bgcolor as expected.
 
 For the main GUI, the question is if the Layers in Layer Manager should be 
 removed or just unchecked. I'm for removing them.
 
 The second question is if the background should be changed. The same applies 
 to `d.mon wx0`. The settings of background color in GUI is done differently 
 but perhaps d.erase can change the color temporary (I'm not sure how hard 
 this would be to implement).
 
 Is there something else what d.erase is doing? I got the impression that it 
 zooms to computational region but manual page is silent about it.
 
 Vaclav
 ___
 grass-dev mailing list
 grass-dev@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-dev

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