[mapserver-users] preparing orthos for Mapserver?

Julien-Samuel Lacroix jlacroix at mapgears.com
Mon Oct 7 07:22:27 PDT 2013


Hello,

To complement on this, and mainly for the records, you can refer to the 
following page. Those are the commands to get an optimal result (tiff, 
8bit, internal tiling, internal overlay) for speed.

http://mapserver.org/input/raster.html#raster-display-performance-tips

Note that the 8bit part can be counter intuitive, but I found out that 
in many cases it reduced the disk space used and got things faster 
without reducing the quality of the output in a human visible way. It 
really depends on the data. I suggest you to try it and see the result.

Julien

On 13-10-06 08:08 PM, Worth Lutz wrote:
> Thanks,
>
> For both the information and the example commands. I'll give it a try.
>
> This thread has continued with lots of information way over my head and
> shown me that there is lots to learn!
>
> Worth
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka
> Sent: Saturday, October 05, 2013 6:31 AM
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] preparing orthos for Mapserver?
>
> Hi,
>
> Have also definitely a try with JPEG compressed tiffs. You can save 90% of
> the disk space with nominal effect on speed and quality, but that depends on
> your hardware and imagery.  It is still worth testing. The command to use is
>
> gdal_translate -of GTiff -co tiled=yes -co compress=JPEG -co
> photometric=YCBCR
>
> For overviews use
> gdaladdo -r average -ro --config COMPRESS_OVERVIEW JPEG --config
> PHOTOMETRIC_OVERVIEW YCBCR
>
> With or without -ro is a matter of taste. By using internal overviews you
> will save a bit more space because external overviews have some ballast but
> if you want to archive images sometimes you can discard the external
> overviews and save some disk space by that time.
>
> Tiffs are not as hopeless than plain JPEGs of PNGs and images do not need to
> be read totally into memory.
> Untiled tiffs are usually written in stripes so for reading a box from an
> arbitrary place inside the image it is enough to read all the scan lines
> which intersect that box. It is still more data than what is needed with
> tiled images.
>
> There are also clever tiff readers which can read fast, let's say, every
> 10th row and column from uncompressed tiff and create an subsampled, nearest
> neighbour subsample in-the-fly. I have used one such in the 90's and Intel
> 386 computers could handle pretty well uncompressed tiffs of size
> 10000x10000 pizels without overviews. I think that GDAL can't do that kind
> of selecting and this is more nice-to-know stuff from the stone age. What to
> remember is that tiles and overviews are essential for GDAL and Mapserver.
>
> -Jukka Rahkonen-
> ________________________________________
> Stephen Woodbridge wrote:
>
>> On 10/4/2013 3:45 PM, Worth Lutz wrote:
>>> I have a question on preparing a set of orthophoto tiff files for use
>>> with MapServer.
>>>
>>> The orthophotos are 10,000 x 10,000 pixels with 6 in. resolution.
>>>
>>> Currently I have a tile index pointing to these files.
>>>
>>> I'm wondering about internal tiling and overlays. Should I process these
>>> tiles with gdal to internally tile each one and add internal overlays.
>>>
>>> I'm thinking that the overlays would be more useful that the internal
>>> tiling based upon the size of the current tiles.
>
>> Yes, you should do both of these. The internal tiling is very important
>> when you access a very small part of the image so you do not have to
>> pull the whole image into memory just to access a small part of it.
>
>> The overlays are import when you are zooming out so you do not have to
>> resample on the fly.
>
>> -Steve W
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2014.0.4142 / Virus Database: 3604/6725 - Release Date: 10/05/13
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/



More information about the MapServer-users mailing list