[Mapserver-users] Tileindex and raster image
Vincent Schut
schut at sarvision.com
Thu May 1 08:23:38 PDT 2003
fx,
I don't know of a direct solution for your question, but there might be some
more complex ways to achieve it...
Are you on linux?
If you know the size of your images, you can write a shell script to use
'gdal_translate -srcwin xoff yoff xsize ysize in.tif out.tif', looping
automatically over your raster image using the appropriate window.
Even if you don't know the imagesize, you could get that by parsing the
gdalinfo output in your script, but that might be a bit more trickier.
Another option:
If your raster can be saved as a normal tif (or otherwise non-geographic image
format), you could use the convert program (coming with imagemagick), it has
some automatic tile command, check the docs, I don't know it by heart. You
can then after that add geo information with gdal or just by adding world
files (which you could generate with a script again :-)).
Third option:
make a map file with your raster in a layer and write a simple php/mapscript
program that loops over the extent of your raster, changes the extent to the
tile you want to have, have mapserver draw your image (if you have a recent
version of mapserver and gdal, mapserver will even be able to generate
geotiff image files (or any image format gdal can write) for you if you set
the outputformat section accordingly!), and save it.
Hope these ideas help you,
Regards,
Vincent Schut.
On Thursday 01 May 2003 18:05, you wrote:
> thanks for your request
> but i am looking for a script which is able to break automatically large
> georeferenced raster files into smaller ones with arcview or mapinfo.
> i have already managed to proccess raster image with mapserver. my problem
> is to cut large raster file..
> thanks
> fx
>
> ----- Original Message -----
> From: "Vincent Schut" <schut at sarvision.com>
> To: "fx gamoy" <fx.gamoy at mapxplore.com>;
> <mapserver-users at lists.gis.umn.edu> Sent: Thursday, May 01, 2003 3:54 PM
> Subject: Re: [Mapserver-users] Tileindex and raster image
>
> > See the raster-howto in the docs on the mapserver site:
> > http://mapserver.gis.umn.edu/doc/raster-howto.html (section: rasters and
>
> tile
>
> > indexing).
> > For more info on the gdaltindex utility, see the gdal pages
> > (www.remotesensing.org/gdal ), utility programs.
> >
> > Regards.
> > Vincent Schut.
> >
> > On Thursday 01 May 2003 17:24, fx gamoy wrote:
> > > hello everybody,
> > > i have tested successfully the script made by Chip Hankley in order to
> > > break large vector shapefiles into regular-sized shapefiles. Thanks to
>
> him
>
> > > for this very efficient contribution
> > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VectorTileIndex
> > >
> > > Now i would like to do the same with large raster image and arcview. So
>
> i
>
> > > am looking for a script working with ARCVIEW or MAPINFO which is able
> > > to generate rastertileindex.. Any idea??
> > >
> > > thanks
> > > fx gamoy
> > > http://www.mapxplore.com/
> >
> > --
> > ______________________________________
> > Vincent Schut (schut at sarvision.com)
> > Sarvision B.V.
> > Wageningen, The Netherlands
> > www.sarvision.com
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
--
______________________________________
Vincent Schut (schut at sarvision.com)
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com
More information about the MapServer-users
mailing list