Re: [GRASS-user] Re: GRASS Promotion Team

2010-10-25 Thread Andreas Neumann
Hi,

I am just commenting on the software.

Inkscape is a vector graphics editor based on SVG (for single pages
currently), similar to Illustrator or CorelDraw (although those may also
support multipage documents).

Inkscape, does not, per se produce large files if you stay with text and
vector graphics. The files can only get large if you embed a lot of raster
graphics. Embedding raster files can result in large files.

Scribus is more a DTP software than a graphics editor, similar to InDesign.

LaTeX is an entirely different beast with it's own strengths, best suited
for writing scientific papers and articles. I don't think it is very well
suited to design posters.

For posters, flyers, clipart and vector graphics I would go with Inkscape,
for multipage brochures I would go with Scribus and for manuals I would go
with LaTeX.

Btw: Inkscape can be used to produce and edit vector graphics that can
later be embedded in Scribus (as SVG) and in LaTeX (I think best as PDF or
PNG, or maybe also SVG in more recent versions).

Andreas

On Sun, October 24, 2010 12:35 pm, Milena Nowotarska wrote:
 Hi Carlos, Micha et al.

 Anyone who has a vision of a new catchy GRASS brochure, flayer or even
 video commercial [1] is kindly asked to stood up and join the GRASS
 Promotion Team [2].
 We just gained a new contributor who is willing to proofread english
 and german documents, welcome Daniel!
 All the existing promotion materials are listed on the appropriate
 wiki page [3].

 Carlos Grohmann wrote:
 I'm in, am I am comfortable with LaTeX, although maybe we could think
 on using some illustration program, like Inkscape to make the poster
 and folders.

 Does Inkscape produce large files? I am asking because we already have
 a very nice poster [4], translated to several languages, which weights
 about 9MB for each language. Since it needs to be updated for every
 GRASS stable release, Martin proposed to rewrite it in LaTeX to share
 at least the graphics. If you could rewrite it for one language, I can
 use the LaTeX layout and catch up with other languages.

 I think the software we will use for promotional materials is to be
 discussed. For sure LaTeX will be the lightest and good to deal with
 localization but it will not gain many contributors. For smaller
 materials than the poster we might use other solutions.
 Chip has proposed Scribus [5]. Since my knowledge of Scribus is that
 it exists, I am going to read  try and waiting for your opinions.

 [1] http://grass.osgeo.org/grass_movie_CERL_1987/
 [2] http://grass.osgeo.org/wiki/GRASS_promotion_team
 [3] http://grass.osgeo.org/wiki/Promotional_material
 [4] http://grass.osgeo.org/wiki/Promotional_material#GRASS_Poster
 [5] http://www.scribus.net/

 Micha Silver wrote:
 Hello Milena:
 Maybe it's time for an article in the OSGeo Journal focusing on GRASS
 for
 Windows users?

 Good idea, I am thinking about that and actually I am writing
 something in Polish now. Some of the ideas might be true for the whole
 world, too. Would you mind to co-author?

 Best,
 Milena
 --
 Milena Nowotarska
 http://wiki.osgeo.org/wiki/Milena_Nowotarska
 http://quantum-gis.pl/ || http://grass-gis.pl/
 http://www.qgis.org/wiki/4._QGIS_Hackfest_in_Wroclaw_2010
 ___
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user



-- 
Andreas Neumann
http://www.carto.net/neumann/
http://www.svgopen.org/

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


[GRASS-user] List of illegal characters for filenames

2010-10-25 Thread Franz Schiller
Hi

I want to know if there is a GRASS GIS wiki with a list of illegal
characters to be used in raster/vector names?
Is there?

Thanks

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


[GRASS-user] Check if a raster map has any valid pixel

2010-10-25 Thread Kim Besson
Greetings
I have a python script where I need to check if an input raster map has any
valid pixel (at least one pixel that is not null). How can I check this
(easy and quick way?) in order to be integrated in my Script?

Thjanks
Kim
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] List of illegal characters for filenames

2010-10-25 Thread Glynn Clements

Franz Schiller wrote:

 I want to know if there is a GRASS GIS wiki with a list of illegal
 characters to be used in raster/vector names?
 Is there?

For rasters, the restrictions can be found in the source code for
G_legal_filename():

http://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/legal_name.c#L33

Specifically, any of the characters:

/  \ ' @ , = *

plus space (32), DEL (127), control characters (0-31) and 8-bit
characters (128-255).

Furthermore, the characters:

\ / : * ?|

aren't allowed in filenames on Windows, so you can't use those if you
want portability.

The same restrictions apply to names of locations and mapsets.

Currently, vector map names must be valid as an SQL table name,
meaning that it can only contain letters, digits and underscore, and
may not be an SQL keyword.

-- 
Glynn Clements gl...@gclements.plus.com
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Check if a raster map has any valid pixel

2010-10-25 Thread Glynn Clements

Kim Besson wrote:

 I have a python script where I need to check if an input raster map has any
 valid pixel (at least one pixel that is not null). How can I check this
 (easy and quick way?) in order to be integrated in my Script?

Check the range:

$ r.mapcalc --o 'foo = null()'
$ r.info -r foo
min=NULL
max=NULL

The range can only have min=max=NULL if there are no non-null cells.

-- 
Glynn Clements gl...@gclements.plus.com
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Database question

2010-10-25 Thread Rich Shepard

On Mon, 25 Oct 2010, Adam Dershowitz, Ph.D., P.E. wrote:


Now if I do db.connect -p I see the correct path, but if I try to access a
vector that uses that database I get an error No such table. If I move
the file back to the old location then the error goes away, even if I
don't use db.connect to point to the other location.  So, I am just
missing something about how to have grass know the correct location of a
database. If I just move the file, how can I get the vector map to know
the correct file to use, since db.connect is not doing the job?


Adam,

  I doubt that the confusion is within the sqlite3 database. To confirm
that, you could dump all data to a .sql file, create a new database in your
project directory, then read in the sql file to re-create the database
there.

  If you look in your project's PERMANENT directory you'll find a
subdirectory for the database; there's probably something in there that's
pointing in the old location and you can edit the file to point it in the
proper location.

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


Re: [GRASS-user] Database question

2010-10-25 Thread Achim Kisseler

Hi,

try v.db.reconnect.all or v.db.connect for single vector layers.

Achim

Am 25.10.2010 18:54, schrieb Adam Dershowitz, Ph.D., P.E.:

This seems like it must be really easy and I am just missing something
I have a project but I accidentally created the sqlite database file in the 
wrong location.
So, all of my project files are in one directory, but, in my home directory I 
have a file sqlite.db.

I just moving that file to where I want it.  Then I did:
db.connect driver=sqlite database=/NewLocation/test.db

Now if I do db.connect -p I see the correct path, but if I try to access a vector that 
uses that database I get an error No such table.
If I move the file back to the old location then the error goes away, even if I 
don't use db.connect to point to the other location.  So, I am just missing 
something about how to have grass know the correct location of a database.
If I just move the file, how can I get the vector map to know the correct 
file to use, since db.connect is not doing the job?

Thanks.

--Adam



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

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


Re: [GRASS-user] Database question

2010-10-25 Thread Adam Dershowitz, Ph.D., P.E.
Thanks.  That is just what I needed!
(There was still a little trick that the first time I used it I used the whole 
path to the old db, instead of just sqlite.db.  The path failed, while just the 
file name worked)



--Adam



On Oct 25, 2010, at 11:30 AM, Achim Kisseler wrote:

 Hi,
 
 try v.db.reconnect.all or v.db.connect for single vector layers.
 
 Achim
 
 Am 25.10.2010 18:54, schrieb Adam Dershowitz, Ph.D., P.E.:
 This seems like it must be really easy and I am just missing something
 I have a project but I accidentally created the sqlite database file in the 
 wrong location.
 So, all of my project files are in one directory, but, in my home directory 
 I have a file sqlite.db.
 
 I just moving that file to where I want it.  Then I did:
 db.connect driver=sqlite database=/NewLocation/test.db
 
 Now if I do db.connect -p I see the correct path, but if I try to access a 
 vector that uses that database I get an error No such table.
 If I move the file back to the old location then the error goes away, even 
 if I don't use db.connect to point to the other location.  So, I am just 
 missing something about how to have grass know the correct location of a 
 database.
 If I just move the file, how can I get the vector map to know the correct 
 file to use, since db.connect is not doing the job?
 
 Thanks.
 
 --Adam
 
 
 
 ___
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user

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