Re: [GRASS-user] ps.map dilemma

2008-07-03 Thread Markus Neteler
On Thu, Jul 3, 2008 at 9:16 AM, Christian Ferreira
[EMAIL PROTECTED] wrote:
 Hi,


 While the core developers decide about the future for ps.map... I will
 keep my idea for a cookbook going,

Please consider to use the GRASS Wiki for that. This is the best place
to develop community documents.

 Also, I not a developer... so, my focus is not so much into the
 future... but in the actual situation... the potential users and
 newbie users that GRASS lose every year because of ps.map. Specially
 for those people, the cookbook is necessary.

That's perfect. (Power) users are the right people to write user documentation.

The document will most likely evolve into the right direction.

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


Re: [GRASS-user] ps.map dilemma

2008-07-03 Thread maning sambale
+1 on the ps.map cookbook

I can provide my ps.map files. Some ideas:
1.  Techniques in making atlas, like a script that can use a single
ps.map config to a number of regions to create a map atlas expanding
the ps.atlas script.

2. More  http://grass.osgeo.org/wiki/AreaFillPatterns for
landuse/cover, geology, etc.

3. Basic/advanced ps.map config for various map layout

4. How-to on integrating ps.map output to other graphics/printing apps
(scribus, gimp, latex)

When I got the hang of ps.map, I find it easier to tweak map layouts.
Much like when you got the hang of using mapserver's map file :).
Actually it seems very similar to mapserver's mapfile.

cheers,
maning


On 7/3/08, Christian Ferreira [EMAIL PROTECTED] wrote:
 Hi,


 While the core developers decide about the future for ps.map... I will
 keep my idea for a cookbook going, since the GRASS version upgrade
 rate for users can take months to years. And considering that GRASS
 6.4 is not out, seems that GRASS 7 final will be out in 2009/2010.

 Then... for some users, grass 7 is years away...

 Also, I not a developer... so, my focus is not so much into the
 future... but in the actual situation... the potential users and
 newbie users that GRASS lose every year because of ps.map. Specially
 for those people, the cookbook is necessary.

 Thomas Adams is with me... who else?

 Christian

 On Wed, Jul 2, 2008 at 11:37 PM, Glynn Clements
 [EMAIL PROTECTED] wrote:

 Martin Landa wrote:

  Why ps.map lacks so much user support?
 
  Good question.

 I am planning to design the GUI for ps.map as a part of wxGUI [1],
 should be done in the next few mouths.

 FWIW, I'm planning to remove ps.map from 7.x.

 Equivalent functionality will be available through d.* commands.

 --
 Glynn Clements [EMAIL PROTECTED]
 ___
 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



-- 
|-|--|
| __.-._  |Ohhh. Great warrior. Wars not make one great. -Yoda |
| '-._7' |Freedom is still the most radical idea of all -N.Branden|
|  /'.-c  |Linux registered user #402901, http://counter.li.org/ |
|  |  /T  |http://esambale.wikispaces.com|
| _)_/LI
|-|--|
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Is mosaicing 24 bit images possible in Grass 6.2?

2008-07-03 Thread Nagesh Bhatkar
Dear all,

I intend to mosaic two 24 bit images in LAT LON location.
I imported a 24 bit coloured PNG image in Grass using r.in.gdal in an x-y 
location.
GRASS treated it as a combination of three 8 bit images, one for red, one for 
green,
and one for blue and imported them as three separate maps.

After going through the archives, I tried to use r.patch to combine all the 
three components.
The output of which wasn't a 24bit image but was only one of the components. 
(Not coloured)

d.rgb module does display a coloured 24 bit image after inputing the three 
components to it.

I geocoded them to get non-coloured 8 bit geocoded images in the target 
location.

I did the same for the second 24 bit image.
Mosaicing works fine(i.image.mosaic), but i need to use 8 bit images(24 bit 
images converted to 8 bit images prior to importing, using xv; resolution weak)
or any one of the 8 bit components of a 24 bit image.

Is there a way to mosaic 24 bit images and to output it as a single 24 bit 
image?

Regards
Nagesh


www.nio.org
www.indian-ocean.org
www.reefindia.org
www.coastalhazards.info
www.coastalhazards.in
www.mangroveindia.org
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Is mosaicing 24 bit images possible in Grass 6.2?

2008-07-03 Thread Moritz Lennert

On 03/07/08 14:35, Nagesh Bhatkar wrote:

Dear all,

I intend to mosaic two 24 bit images in LAT LON location.
I imported a 24 bit coloured PNG image in Grass using r.in.gdal in an 
x-y location.
GRASS treated it as a combination of three 8 bit images, one for red, 
one for green,

and one for blue and imported them as three separate maps.

After going through the archives, I tried to use r.patch to combine all 
the three components.
The output of which wasn't a 24bit image but was only one of the 
components. (Not coloured)


d.rgb module does display a coloured 24 bit image after inputing the 
three components to it.


I geocoded them to get non-coloured 8 bit geocoded images in the target 
location.


I did the same for the second 24 bit image.
Mosaicing works fine(i.image.mosaic), but i need to use 8 bit images(24 
bit images converted to 8 bit images prior to importing, using xv; 
resolution weak)

or any one of the 8 bit components of a 24 bit image.

Is there a way to mosaic 24 bit images and to output it as a single 24 
bit image?


r.composite (Raster-Manage map colors-Create RGB)

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


Re: [GRASS-user] ps.map dilemma

2008-07-03 Thread Hamish
FYI, I've added some more hints  tricks to the wiki page:
  http://grass.osgeo.org/wiki/Ps.map_scripts



Moritz Lennert wrote:
 See http://geog-pc40.ulb.ac.be/grass/psmap/
 
 for two ps.map files and the resulting map, showing thematic mapping,
 proportionate circles and patterns. Unfortunately, I seem
 to have lost the pattern files I used...

Look in $GISBASE/etc/paint/patterns/

 
 Once I have some time, I'll try to contribute some
 more, possibly about using R to create symbols which you can then
 integrate with the eps '$' option in vpoints (see ages.png as an
 example, but can't find the psmap file right now :-( )

Nice bar graphs - lets you do d.vect.chart magic with ps.map.

how to set up an accurate bubble plot legend?


Hamish



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


Re: [GRASS-user] ps.map dilemma

2008-07-03 Thread Hamish
maning sambale:
 I can provide my ps.map files.

thanks  -  http://grass.osgeo.org/wiki/Ps.map_scripts

 Some ideas:
 1.  Techniques in making atlas, like a script that can use
 a single ps.map config to a number of regions to create a map
 atlas expanding the ps.atlas script.

see  http://grass.osgeo.org/wiki/GRASS_AddOns#ps.atlas

 2. More  http://grass.osgeo.org/wiki/AreaFillPatterns for
 landuse/cover, geology, etc.

go for it. instructions to do that are at the above link.

 3. Basic/advanced ps.map config for various map layout

advanced options are only used if you specify them.
by default you just need basic 1 or 2 line instructions.
(?)

 4. How-to on integrating ps.map output to other
 graphics/printing apps (scribus, gimp, latex)

those in the know, please expand:
 http://grass.osgeo.org/wiki/Ps.map_scripts#Integration_with_other_software


regards,
Hamish



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


Re: [GRASS-user] ps.map dilemma

2008-07-03 Thread Moritz Lennert

On 03/07/08 15:56, Hamish wrote:

FYI, I've added some more hints  tricks to the wiki page:
  http://grass.osgeo.org/wiki/Ps.map_scripts



Moritz Lennert wrote:

See http://geog-pc40.ulb.ac.be/grass/psmap/

for two ps.map files and the resulting map, showing thematic mapping,
proportionate circles and patterns. Unfortunately, I seem
to have lost the pattern files I used...


Look in $GISBASE/etc/paint/patterns/


Yes, but I customized them slightly for my needs and I think I must have 
erased those customised versions...




 

Once I have some time, I'll try to contribute some
more, possibly about using R to create symbols which you can then
integrate with the eps '$' option in vpoints (see ages.png as an
example, but can't find the psmap file right now :-( )


Nice bar graphs - lets you do d.vect.chart magic with ps.map.


Yep, actually much more than d.vect.chart since you can create any form 
you want (have also worked with triangles)...




how to set up an accurate bubble plot legend?


I create a new vector point map (belscale in the psmap files) with the 
points placed at the spot where I would like the legend. Then it 
suffices to update the values in the attribute table to relevant values 
related to your map and to display this 'map' just like the real one...


One thing that still bothers me with bubble plot is the lack of the 
possibility to sort the bubbles so that you are sure to have the largest 
in the back...


But I would like to work on all this for a new d.thematic.points...when 
I have time again.



Moritz

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


Re: [GRASS-user] ps.map dilemma

2008-07-03 Thread Moritz Lennert

On 03/07/08 16:47, Hamish wrote:

Hamish:

how to set up an accurate bubble plot legend?


Moritz Lennert wrote:

I create a new vector point map (belscale in the psmap
files) with the points placed at the spot where I would
like the legend.
Then it suffices to update the values in the attribute table to
relevant values related to your map and to display this 'map' just
like the real one...


thanks for the trick.
 

One thing that still bothers me with bubble plot is the
lack of the possibility to sort the bubbles so that you are
sure to have the largest in the back...


fillcolor=none  and go by outer ring  :-/
ISTR some code to sort them was committed somewhere..


I once created a d.vect.chart2 [1] in which I sorted the bubbles, but 
never committed it. At this stage, I'd rather implement it in 
d.thematic.point.




I see the New York Times often has nice bubble plots for their maps.
They make the fill color semi-transparent, then stacked bubbles are
darker where they overlap. PostScript won't do transparency, so
perhaps something to look for in the grass7 display drivers.


Doesn't postscript 3 include transparency ?

But I still think that an option to ordering them should be available.

Moritz

[1] http://lists.osgeo.org/pipermail/grass-dev/2006-October/026624.html

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


Re: [GRASS-user] ps.map dilemma

2008-07-03 Thread Hamish
Moritz
 Doesn't postscript 3 include transparency ?

http://en.wikipedia.org/wiki/Transparency_(graphic)#Transparency_in_PDF
http://en.wikipedia.org/wiki/Transparency_(graphic)#Transparency_in_PostScript


Hamish



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


Re: [GRASS-user] ps.map dilemma

2008-07-03 Thread Glynn Clements

Moritz Lennert wrote:

  I see the New York Times often has nice bubble plots for their maps.
  They make the fill color semi-transparent, then stacked bubbles are
  darker where they overlap. PostScript won't do transparency, so
  perhaps something to look for in the grass7 display drivers.
 
 Doesn't postscript 3 include transparency ?

No.

PostScript will probably never attempt to include translucency in the
same way that video-oriented graphics systems do.

For video, translucency is implemented by alpha-blending, i.e. 
interpolating between the colour being drawn and what's already in the
frame buffer.

Printers only have 1-bit per component in the frame buffer, i.e. 1bpp
for mono, 4bpp for CMYK, and use halftones to simulate intermediate
shades. Interpolation doesn't work when you only have off and on.

You can simulate translucency to an extent in PostScript using pattern
fills. But this is a lot more complex than with video, as you have to
specifically design all of the patterns to produce the correct result
when overlaid, which means figuring out which parts overlap each other
in advance.

The alternative is to render eveything to a 24-bpp image then print
that. But that creates huge PS/PDF files, which isn't a problem if
you're just sending PS to a printer, but isn't good if you're making
PDFs for download.

For similar reasons, PDF only supports translucency for filled areas,
not for images.

SVG doesn't have this problem, as it's targeted at video rather than
hardcopy.

-- 
Glynn Clements [EMAIL PROTECTED]
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] using ArcView data

2008-07-03 Thread Manuel Gerardo Chávez Angeles



Hello from Mexico City,

I'm new using GRASS, migrating from a limited expertise on arcView.

I have a human population database from Spain, built for ArcView.  
Does anybody have any reference that could help me to run it on  
GRASS. So far I been able to install GRASS on my MacBook and I'm  
making my first steps.


Any suggestions?

Regards

Manolo 
 
___

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


[GRASS-user] how to control label size (v.lable)?

2008-07-03 Thread Rei Hayashi
Hello everyone,

I am using a v.label command (+ d.labels command) to present county
names in the states' maps.  I have tried two slightly different
commands.

1)v.label map=XXX type=centroid column=YYY labels=ZZZ fontsize=5 color=red
2)v.label map=XXX type=centroid column=YYY labels=ZZZ size=5 color=red

Both commands resulted in presenting same label size.  Also, I run
this commands for Alabama, Louisiana, Mississippi, New Mexico, Arizona
and Oregon.  Somehow, the label size in Alabama and Louisiana are
same, but bigger than the labels in the rest of states.  Also, I
tested different fontsize and size (i.e. 20), but the result stayed
same way that the label size is bigger in Alabama and Louisiana than
other rest of the states.

Does anyone know how to control the label size?  I downloaded all
shapefiles from the U.S. Census Bureau site
(http://www.census.gov/geo/www/cob/bdy_files.html or
http://www.census.gov/geo/www/cob/co2000.html).

Thank you,

Rei Hayashi
[EMAIL PROTECTED]
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] SRTM and r.fillnulls - using neighboring tiles

2008-07-03 Thread Jamie Adams
Hello all,

I'm trying to devise an efficient way to fill voids in SRTM, using
neighboring tiles when there is edge nodata.  In the end, I want to have
tiles matching the input, just lacking any voids.

My initial thought is to write a simple gdal python script to determine
which tiles have edge nodata and only process those.  I'll then write a
script to:

 - determine which tiles are neighbors
 - merge those into a single temp dem
 - set the region to the desired tile
 - r.fillnull the temp file, creating an output with the correct extents

This should work, though I'm thinking there must be a more efficient way.
Anyone have suggestions?

Thanks!

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


Re: [GRASS-user] Is mosaicing 24 bit images possible in Grass 6.2?

2008-07-03 Thread Maciej Sieczka

Hamish pisze:

Nagesh wrote:



Is there a way to mosaic 24 bit images and to output it as
a single 24 bit image?


To export a 24 bit image make a group of the 3 bands (i.group) and 
export the *group* using r.out.gdal (gdal_translate can do that also 
from outside GRASS, if you choose it's input as a path to your group 
file). This way you don't loose data as it would be the case for 
r.composite.


Note that you can nicely visualise GRASS raster groups in QGIS, if at 
adding the GRASS raster layer you choose a group.


Maciek

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


[GRASS-user] instalation error on Mac

2008-07-03 Thread Manuel Gerardo Chávez Angeles


Any feedback?

GRASS 6.3.0 (zonas):~  v.in.ogr dsn=/manolo/OCDE/GIS/base  
output=ProvinciasEsp layer=Provincias.shp
ERROR 1: dlopen(/Library/Frameworks/GDAL.framework/Versions/1.5/ 
PlugIns/ogr_GRASS.dylib, 1): Library not loaded: /Users/Shared/unix/ 
fftw3-tig/FFTW3.framework/Versions/3.1/FFTW3
  Referenced from: /Applications/GRASS-6.3.app/Contents/MacOS/lib/ 
libgrass_gmath.dylib

  Reason: image not found
ERROR 1: dlopen(/Library/Frameworks/GDAL.framework/Versions/1.5/ 
PlugIns/ogr_GRASS.dylib, 1): corrupt binary, library ordinal too big

ERROR: Unable to open data source /manolo/OCDE/GIS/base
GRASS 6.3.0 (zonas):~

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


Re: [GRASS-user] ps.map dilemma

2008-07-03 Thread Christian Ferreira
Hello Maning,


Yes... I would like to receive your contributions (ps.map files).

On Thu, Jul 3, 2008 at 10:14 AM, maning sambale
[EMAIL PROTECTED] wrote:
 +1 on the ps.map cookbook

 I can provide my ps.map files. Some ideas:
 1.  Techniques in making atlas, like a script that can use a single
 ps.map config to a number of regions to create a map atlas expanding
 the ps.atlas script.

 2. More  http://grass.osgeo.org/wiki/AreaFillPatterns for
 landuse/cover, geology, etc.


This looks interesting.

 3. Basic/advanced ps.map config for various map layout

 4. How-to on integrating ps.map output to other graphics/printing apps
 (scribus, gimp, latex)


This is a point where we need someone with a good experience on it to
contribute.

 When I got the hang of ps.map, I find it easier to tweak map layouts.
 Much like when you got the hang of using mapserver's map file :).
 Actually it seems very similar to mapserver's mapfile.


Yes, this is true.

Markus... I will use the Wiki, ok?

Let's make this way... I will organize the cookbook this way (plus
with the ideas from Maning)

1) Short description how ps.map works (concept);
2) One or two simple scripts (to newbies have a startup);
3) Some advanced scripts;

For the complex/advanced scripts my idea is do something similar to
the Mapserver books from Tyler M. and Bill K. (I have both :-D)...
build a long ps.map file step-by-step. To make it clear what each part
is really doing, and how customize it.

Comments?

Best regards,
Christian

PS: Thanks Hamish and Moritz for the contributions!
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] instalation error on Mac

2008-07-03 Thread William Kyngesburye
Looks like my FFTW framework got messed up.  I'll look into it further  
and get an updated GRASS binary out soon.


On Jul 3, 2008, at 5:47 PM, Manuel Gerardo Chávez Angeles wrote:



Any feedback?

GRASS 6.3.0 (zonas):~  v.in.ogr dsn=/manolo/OCDE/GIS/base  
output=ProvinciasEsp layer=Provincias.shp
ERROR 1: dlopen(/Library/Frameworks/GDAL.framework/Versions/1.5/ 
PlugIns/ogr_GRASS.dylib, 1): Library not loaded: /Users/Shared/unix/ 
fftw3-tig/FFTW3.framework/Versions/3.1/FFTW3
 Referenced from: /Applications/GRASS-6.3.app/Contents/MacOS/lib/ 
libgrass_gmath.dylib

 Reason: image not found
ERROR 1: dlopen(/Library/Frameworks/GDAL.framework/Versions/1.5/ 
PlugIns/ogr_GRASS.dylib, 1): corrupt binary, library ordinal too big

ERROR: Unable to open data source /manolo/OCDE/GIS/base
GRASS 6.3.0 (zonas):~

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


-
William Kyngesburye kyngchaos*at*kyngchaos*dot*com
http://www.kyngchaos.com/

History is an illusion caused by the passage of time, and time is an  
illusion caused by the passage of history.


- Hitchhiker's Guide to the Galaxy


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


Re: [GRASS-user] Is mosaicing 24 bit images possible in Grass 6.2?

2008-07-03 Thread Dylan Beaudette
On Thursday 03 July 2008, Maciej Sieczka wrote:
 Hamish pisze:
  Nagesh wrote:
  Is there a way to mosaic 24 bit images and to output it as
  a single 24 bit image?

 To export a 24 bit image make a group of the 3 bands (i.group) and
 export the *group* using r.out.gdal (gdal_translate can do that also
 from outside GRASS, if you choose it's input as a path to your group
 file). This way you don't loose data as it would be the case for
 r.composite.

 Note that you can nicely visualise GRASS raster groups in QGIS, if at
 adding the GRASS raster layer you choose a group.

 Maciek

This is an excellent tip. Is this documented anywhere?

Cheers,

Dylan

-- 
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user