Maciej Sieczka | 1 Jan 2008 15:04
Picon
Favicon

Re: gdal-grass

gary wrote:
> Is this supposed to point to where I extract the grass tarball?

Yes. Eg. --with-grass=/usr/local/grass-6.3.svn

Maciek
_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

gary | 1 Jan 2008 21:49

Re: gdal-grass

I have tried pointing to where:
1) the tarball was extracted
2) the directory lib, contained in the directory where the tarball was 
extracted
3) a directory called grass-6.2.3, which was created in /usr/local
4) the directory lib in the above directory

That is:
1) /usr/local/src/grass/grass-6.2.3
2) /usr/local/src/grass/grass-6.2.3/lib
3) /usr/local/grass-6.2.3
4) /usr/local/grass-6.2.3/lib

The error message is
configuration error --with-grass= blah blah blah libraries not found

Maciej Sieczka wrote:
> gary wrote:
>> Is this supposed to point to where I extract the grass tarball?
> 
> Yes. Eg. --with-grass=/usr/local/grass-6.3.svn
> 
> Maciek
> 
_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

(Continue reading)

Markus Neteler | 1 Jan 2008 22:05
Favicon

Re: gdal-grass

Gary,

since I am a lazy person, I have made this a script:
http://mpa.itc.it/markus/useful/conf_install_gdal_ogr_grass_plugin.sh

this may help you. It compiles and installs the plugin right away from
the GDAL source code, you don't even have to download the
separate plugin code (which is really just taken from the GDAL
source code).

Maybe that helps,
Markus

On Jan 1, 2008 9:49 PM, gary <lists <at> lazygranch.com> wrote:
> I have tried pointing to where:
> 1) the tarball was extracted
> 2) the directory lib, contained in the directory where the tarball was
> extracted
> 3) a directory called grass-6.2.3, which was created in /usr/local
> 4) the directory lib in the above directory
>
> That is:
> 1) /usr/local/src/grass/grass-6.2.3
> 2) /usr/local/src/grass/grass-6.2.3/lib
> 3) /usr/local/grass-6.2.3
> 4) /usr/local/grass-6.2.3/lib
>
> The error message is
> configuration error --with-grass= blah blah blah libraries not found
>
(Continue reading)

Markus Neteler | 1 Jan 2008 22:30
Favicon

Re: Trying to export a 3d Layer

Matthew,

On Dec 21, 2007 8:09 PM, Matthew Pulis <mpulis <at> gmail.com> wrote:
> I am trying to export a contour layer to PostGIS / Shapefile / GML but to no
> avail. The files I am trying to export are in GRASS Vector format, thus I am
> using v.out.ogr. I am using the dataset found with the Grass Book Edition 3
> (North Carolina). My layer is elev_contour_3m. I tried also to load the 10m
> contour layer in the same dataset but got the same results, so I do not
> think it is a problem of the vector files, but more of an exporting problem.
>
...
> GRASS 6.3.0RC1 (thesis):~/thesis_gis/thesis/yancho/vector/elev_contour_3m  >
> v.db.select elev_contour_3m
>
> DBMI-DBF driver error:
>
> Table 'elev_contour_3m' doesn't exist.
>
> Error in db_open_select_cursor()

There must be something wrong with your copy of the data set.
Here it looks different:

v.info elev_contour_3m | grep dblinks
 |   Number of dblinks:      1                                                |

v.db.select elev_contour_3m | head -5
cat|level
1|58
2|61
(Continue reading)

gary | 1 Jan 2008 22:50

Re: gdal-grass

Well, different errors. I assume you wanted that file in the gdal-grass 
directory as created by tar, which in my case is
/usr/local/src/gdal-grass/gdal-grass-1.4.3

I "sourced" the file. Error message is 
--with-grass=/root/grass63/dist.x86_64-unknown-linux-gnu

Markus Neteler wrote:
> Gary,
> 
> since I am a lazy person, I have made this a script:
> http://mpa.itc.it/markus/useful/conf_install_gdal_ogr_grass_plugin.sh
> 
> this may help you. It compiles and installs the plugin right away from
> the GDAL source code, you don't even have to download the
> separate plugin code (which is really just taken from the GDAL
> source code).
> 
> Maybe that helps,
> Markus
> 
> On Jan 1, 2008 9:49 PM, gary <lists <at> lazygranch.com> wrote:
>> I have tried pointing to where:
>> 1) the tarball was extracted
>> 2) the directory lib, contained in the directory where the tarball was
>> extracted
>> 3) a directory called grass-6.2.3, which was created in /usr/local
>> 4) the directory lib in the above directory
>>
>> That is:
(Continue reading)

ec.jkd | 2 Jan 2008 06:57

grass

hi,
 After executing the following steps for shortest path in grass i get below error:
echo "update roads set travelcost=5 where cat=1" | db.execute
echo "update roads set travelcost=20 where cat=2" | db.execute
echo "update roads set travelcost=40 where cat=3" | db.execute
echo "update roads set travelcost=60 where cat=4" | db.execute
echo "update roads set travelcost=80 where cat=5" | db.execute
echo "select * from roads" | db.select

Then we can run the 'd.path' with our assigned travel costs:

d.path map=roads afcol=travelcost abcol=travelcost

error:Building graph:
ERROR: Column type not supported

Can anyone help me out with this
_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
Markus Neteler | 2 Jan 2008 09:57
Favicon

Re: grass

ec.jkd,

note: the new list address is <grass-user <at> lists.osgeo.org>.

On Jan 2, 2008 6:57 AM,  <ec.jkd <at> tpcsed.com> wrote:
> hi,
>  After executing the following steps for shortest path in grass i get below error:
> echo "update roads set travelcost=5 where cat=1" | db.execute
> echo "update roads set travelcost=20 where cat=2" | db.execute
> echo "update roads set travelcost=40 where cat=3" | db.execute
> echo "update roads set travelcost=60 where cat=4" | db.execute
> echo "update roads set travelcost=80 where cat=5" | db.execute
> echo "select * from roads" | db.select
>
> Then we can run the 'd.path' with our assigned travel costs:
>
> d.path map=roads afcol=travelcost abcol=travelcost
>
> error:Building graph:
> ERROR: Column type not supported

what does
  v.info -c roads
say? Which GRASS version do you use?

Markus

PS: please use a reasonable email subject instead of "grass"
_______________________________________________
grass-user mailing list
(Continue reading)

Nikos Alexandris | 2 Jan 2008 10:06
Picon

Configuring GRASS source code for compilation under Ubuntu 7.10 -- CFLAGS and LDFLAGS parameters no more necessary (?)

I just downloaded GRASS with:

$ sudo svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk

I try to compile (under Ubuntu 7.10) as I did in the past with:

$ sudo CFLAGS="-g -Wall" LDFLAGS="-s" ./configure     --with-cxx
--with-freetype=yes --with-ffmpeg=yes     --with-postgres=no
--with-sqlite=yes     --enable-largefile=yes
--with-tcltk-includes=/usr/include/tcl8.4
--with-freetype-includes=/usr/include/freetype2
--with-ffmpeg-includes=/usr/include/ffmpeg
--with-opengl-libs=/usr/include/GL     --with-readline

but  I get:

"sudo: CFLAGS=-g -Wall: command not found"

and an error as well for "LDFLAGS="-s" (in case I remove CFLAGS)

These "configure-parameters" are in the script makegrass.sh
http://david.p.finlayson.googlepages.com/makegrass.sh 

found in
http://grass.gdf-hannover.de/wiki/Compile_and_Install#Ubuntu_6.06.2C_7.10

After removing these parameters the configuration worked fine (with the
exception of errors about missing documentation).
---

(Continue reading)

Nikos Alexandris | 2 Jan 2008 10:31
Picon

About importing VMAP into GRASS... (as shapefiles)

My apologies for the long post and, not to forget,

I wish Health above all to all of you and a creative and peaceful 2008.
....

Following the how-to in GRASS-NEWS vol.3 and based on the scripts of
Markus N (adjusted for paths and name of the vmap data base). 

I try to get shapefiles out of the VMAP data base.

I do... :

(Dowloaded the file v0eur.tar.gza from
http://geoengine.nga.mil/ftpdir/archive/vpf_data/v0eur.tar.gz )

1. tar -xzvf v0eur.tar.gz

2. sudo sh FixNames_script_MN.sh D

Here I get as an output:

Supported Formats:
[...]
-> "OGDI" (readonly)
[...]
Removing trailing dot ...
mv: missing destination file operand after `.'
Try `mv --help' for more information.
Changing upper case directories to lower case names...

(Continue reading)

G. Allegri | 2 Jan 2008 11:09
Picon
Gravatar

FCELL, Float32 and colors

Hi everyone!

I have an FCELL raster that I need to export it to distribute it on a webgis. I've used r.out.gdal to produce a Float32 Geotiff (to mantain the original floating values), but I've lost my color table, as gdal cannot associate a LUT to a 32 bit output. The result is a grey scaled image.

Is there a way to change the color table of a 32 bit image? I would need to use my predefined color ramp, and make Mapserver output the colored raster with the original values.
Otherwise I have to export as Byte, but I loose the original pixel values...

Thanks for your help.
_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Gmane