Hi, I solved the problem, maybe it can help someone to shortly explain:
The problem was that my raster layer with tileindex shapefile had the same name as the name of the tileindex shapefile. So I had something like: LAYER # katastar NAME "katastar_index" STATUS OFF TYPE RASTER TILEINDEX "katastar_index" TILEITEM "LOCATION" END After changing NAME to something else everything was OK. Thanks to everyone 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 > >