I use GRASS 5.0.2 and Mapserver 3.6.6, and I am trying to make a connection between GRASS and Mapserver. I downloaded the DEMO 1 from http://grass.itc.it/start.html
and everything was fine except the soils map.
Thus I tried to write a very small map file:
---------------------------------------
name grsmap
extent 590000 4914000 609000 4928000
size 500 500
shapepath "/var/www/html/spearfish"
layer
name "grsmap"
data "elevation.tif"
status default
type raster
end
end
---------------------------------------
and it was ok, but after I changed 2 places:
shapepath "/data/grassdata/spearfish"
data "PERMANENT/cellhs/soils"
and ran mapserv, it showed
msDrawRaster():Image handliing error. Unrecognized or unsupported image format.
Is it because the data in my grass database is not 8 bit format? if so, how could I fix this?
Thank you...
On Fri, Aug 29, 2003 at 10:09:42AM -0400, Ling-Yen Liao wrote:
Hi,
I use GRASS 5.0.2 and Mapserver 3.6.6, and I am trying to make a connection between GRASS and Mapserver. I downloaded the DEMO 1 from http://grass.itc.it/start.html
and everything was fine except the soils map.
[...]
and it was ok, but after I changed 2 places:
shapepath "/data/grassdata/spearfish"
data "PERMANENT/cellhs/soils"
and ran mapserv, it showed
msDrawRaster():Image handliing error. Unrecognized or unsupported image format.
Is it because the data in my grass database is not 8 bit format? if so,
how could I fix this? Thank you...
First you have to convert the vector map into a shape file:
#vector layer in SHAPE: #v.out.shape map=soils type=area pref=soils cats=string
...
DATA /path_to_htmldocs/spearfish/soils
...
DATA /path_to_htmldocs/spearfish/soils
...
or, if you want to display a raster map: GRASS GIS raster map directly from location (8bit only):
LAYER
STATUS ON
DATA "/path_to_grassdata/spearfish/PERMANENT/cellhd/soils"
END
And also be carefully with the file's permisions.
Sorry for my poor english.
Markus Neteler(neteler@itc.it)@08.09.2003 18:38:19 +0000:
On Fri, Aug 29, 2003 at 10:09:42AM -0400, Ling-Yen Liao wrote:
> Hi,
>
> I use GRASS 5.0.2 and Mapserver 3.6.6, and I am trying to make a connection between GRASS and Mapserver. I downloaded the DEMO 1 from
> http://grass.itc.it/start.html
> and everything was fine except the soils map.
[...]
> and it was ok, but after I changed 2 places:
> shapepath "/data/grassdata/spearfish"
> data "PERMANENT/cellhs/soils"
> and ran mapserv, it showed
> msDrawRaster():Image handliing error. Unrecognized or unsupported image format.
>
> Is it because the data in my grass database is not 8 bit format? if so,
> how could I fix this? Thank you...