Raster data experience

blaise bpicinbono at WORLDONLINE.FR
Tue Feb 28 09:59:07 EST 2006


On Tuesday 28 February 2006 14:23, Apeksha Bhambhani wrote:
> Hi luca ,
>
> We have developed a web-mapping application . Our mapping application uses
> Mapserver , Php/Mapscript as the scripitng language and MySql as the
> database.And this application accepts user clicks and allows the user to
> edit the map : adding points, etc. Now for this map , we require a base map
> - which is a raster layer . We have tried editing the mapfile as follows:
>
> LAYER
> NAME "base"
> TYPE raster
> DATA "india.tif"
> END
>
> But this is of no help. The tiff file resides in the shapefiles directory
> .There is no world file for this tiff file. Do we have to create one on our
> own ? How is it possible to create a world file out of a plain image. We
> want to include this raster image as our base map. Is this the right way or
> is there any other way?
>
> Could someone please help us.
> Thanks
> Apeksha
>
>
>
> luca marletta <lucamarle at GMAIL.COM> wrote:
>   I've never perform benchmark but I have a bunch of raster, tif format,
> each about 7Mb and with tileindex it's pretty quick.
> Jpeg is lower in size but due to compression it asks more CPU work for sure
>
> luca
>
> On 2/23/06, Frode Wiseth Jørgensen wrote:
> > Hi!
> >
> > I have a quite large raster dataset (JPG) which i use with
> > TILE/TILEINDEX, It works pretty nice, but is extremely slow processing.
> >
> > Any suggestions on which kind of format I should use instead of JPG,
> > which Mapserver handles more effective?
>
> --
> luca marletta
>

Yes, you need a world file to display your raster tif. Just create it with a 
text editor and put it in the same directory as your tif. Have a look at the 
doc :
http://mapserver.gis.umn.edu/docs/howto/raster_data/#georeference-with-world-files
Blaise



More information about the mapserver-users mailing list