Hi,
2016-03-26 18:52 GMT+01:00 Glynn Clements :
>
> Martin Landa wrote:
>
>> > d.mon is designed for interactive use. If you're writing a script,
>> > don't use it. Set GRASS_RENDER_IMMEDIATE=png (or =cairo) and use the
>> > environment variables.
>>
>> not really,
Martin Landa wrote:
> > d.mon is designed for interactive use. If you're writing a script,
> > don't use it. Set GRASS_RENDER_IMMEDIATE=png (or =cairo) and use the
> > environment variables.
>
> not really, beside wx monitors, you can use cairo or png (useful for
> scripting). Martin
You
d.mon is designed for interactive use. If you're writing a script,
don't use it. Set GRASS_RENDER_IMMEDIATE=png (or =cairo) and use the
environment variables.
--
Glynn Clements
___
grass-user mailing list
Hi,
2016-03-10 10:14 GMT+01:00 Moritz Lennert :
> Martin has done some serious rewriting of d.mon in trunk (grass71). Too much
> to be backported to the stable branch. I don't know if these things can
> easily be fixed in grass, or whether this is another serious
On 10/03/16 09:48, jean pierre huart wrote:
I did it also directly in the terminal and it's the same result.
[...]
With these tests, I have the impression that 'GRASS_RENDER_TRANSPARENT',
'GRASS_RENDER_HEIGHT', 'GRASS_RENDER_WIDTH' are not taken into account
by d.mon.
Thanks for all these
I did it also directly in the terminal and it's the same result.
Adding 'width' and 'height' parameters to d.mon has given the expected
result.
viascript.png PNG 1280x960 1280x960+0+0 8-bit DirectClass 72.7KB 0.000u
0:00.000
(NB I tried it before unsuccessfully, but I was not deleting the
On 09/03/16 18:01, jean pierre huart wrote:
Launching the two scripts directly in GRASS7 console using my
location/mapset give the following results for just one width, height
(1280,960):
Using d.mon (not ok)
viascript.png PNG 640x480 640x480+0+0 8-bit DirectClass 30.5KB 0.000u
0:00.000
I
Launching the two scripts directly in GRASS7 console using my
location/mapset give the following results for just one width, height
(1280,960):
Using d.mon (not ok)
viascript.png PNG 640x480 640x480+0+0 8-bit DirectClass 30.5KB 0.000u
0:00.000
With GRASS_RENDER_IMMEDIATE (ok)
viascript2.png
I launch a script without starting GRASS explicitly on an existing
location, inspired by the solution proposed at
https://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly.
I do not have any error in the logs, the image is created, but with
default size (640x480)
On 09/03/16 16:55, jean pierre huart wrote:
Bingo! Thanks Moritz,
- the existing file... I didn't care about it, convinced that the
--overwrite parameter will wipe it out.
I agree that is a bit confusing (and could maybe be handled better), but
--overwrite comes into action at the time of
Bingo! Thanks Moritz,
- the existing file... I didn't care about it, convinced that the
--overwrite parameter will wipe it out.
- os.environ['GRASS_RENDER_FILE_READ']='TRUE' to pile layers in one
file, I thought it was only to import the first layer from an existing
image.
Launching this
On 09/03/16 15:39, jean pierre huart wrote:
Thanks Vinay, for the suggestion but I get an error on the d.out.file
instruction.
By the way, I've investigated the problem a bit further and found that I
mixed up instructions from manuals of different versions.
So coming back to GRASS v 7.0.x
Thanks Vinay, for the suggestion but I get an error on the d.out.file
instruction.
By the way, I've investigated the problem a bit further and found that I
mixed up instructions from manuals of different versions.
So coming back to GRASS v 7.0.x references I finally succeed in
obtaining a
1
> Date: Tue, 8 Mar 2016 16:15:01 +0100
> From: jean pierre huart <j...@openjph.be>
> To: grass-user@lists.osgeo.org
> Subject: [GRASS-user] How to define the png image dimensions when
> using d.mon?
> Message-ID: <56deec75.5030...@openjph.be>
> Content
Sorry I've forgotten to precise that I'm using Grass v7.0.3 on ubuntu 14.04.
On 08/03/16 16:15, jean pierre huart wrote:
Hello,
I've written a python script to generate an image combining a vector
map (myvector) and a raster (myraster) that has been generated using a
mask.
It works great by
Hello,
I've written a python script to generate an image combining a vector map
(myvector) and a raster (myraster) that has been generated using a mask.
It works great by default and creates an image with the default
dimensions 640x480 on a white background.
16 matches
Mail list logo