Error in displaying raster in tileindex shape
Gambin Dejan
Dejan.Gambin at PULA.HR
Thu Jun 1 23:49:54 PDT 2006
Unfortunatelly I get the same error with mapserver 4.8.3. I'll explain
all I have done before I go to bugzilla because maybe I am doing
something wrong, since I have another "raster set" using tileindex that
works...
So, I have a hundred of tif files (170MB each). All of them were jpegs
before. So I have translated them to tif using "gdal_translate -co
TILED=YES" and then using "gdaladdo tif_file 2 4 8 16 32" on each. After
that I have run gdaltindex katastar_index.shp path_to_tifs/*.tif. I got
the message "unable to open..:" but index shapefile was created
correctly.
That is all. When trying to show the layer, I get this in php error log:
[02-Jun-2006 08:52:48] PHP Warning: [MapServer Error]: msDrawMap():
Failed to draw layer named 'katastar_index'.
in /var/www/pmapper1/incphp/map.php on line 311
[02-Jun-2006 08:52:48] PHP Warning: [MapServer Error]:
msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only
supported after a raster query.
in /var/www/pmapper1/incphp/map.php on line 311
[02-Jun-2006 08:52:48] PHP Fatal error: Call to a member function on a
non-object in /var/www/pmapper1/incphp/map.php on line 332
By the way, the line 311 is :$mapImg = $this->map->draw(); the line 332
is: $this->mapURL = $mapImg->saveWebImage();
regards, dejan
> -----Original Message-----
> From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf
> Of Frank Warmerdam
> Sent: Thursday, June 01, 2006 9:55 PM
> To: Gambin Dejan
> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Error in displaying raster
> in tileindex shape
>
>
> Gambin Dejan wrote:
> > Hi,
> >
> > I have created tileindex shapefile with my rasters using
> gdaltindex.
> > When trying to show the raster layer I get the following
> errors in my
> > php error log:
> >
> > [01-Jun-2006 16:11:12] PHP Warning: [MapServer Error]:
> msDrawMap():
> > Failed to draw layer named 'katastar_index'. in
> > /var/www/pmapper1/incphp/map.php on line 311 [01-Jun-2006 16:11:12]
> > PHP Warning: [MapServer Error]:
> > msRASTERLayerOpen(): Attempt to open a RASTER layer, but
> this is only
> > supported after a raster query.
>
> Dejan,
>
> What version of MapServer are you using? I think we used to
> run into this in some circumstances with MapServer 4.6 but it
> should be fixed in 4.8. I can't remember exactly what causes
> it to happen though.
>
> If you are using 4.8, please provide me a complete but
> minimal test case to reproduce the problem via bugzilla.
>
> Best regards,
> --
> ---------------------------------------+----------------------
> ----------
> ---------------------------------------+------
> I set the clouds in motion - turn up | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush | President OSGF,
> http://osgeo.org
>
>
More information about the MapServer-users
mailing list