Armin

I had already switched the map projection to match the raster, but ran the
internal tiling and overviews as you suggested.  However, didn't make a jot
of difference when rendering the raster.  I wonder if it is to do with my
map definition of the raster layer and the way I am classifying it.  Snippet
below, I know logical classification carries an overhead - found that out on
some of the vector data and discovered the benefits of classifying within
the shapefile (via the mapserver community), not sure what can done with a
raster layer!?

Chris

    LAYER
        NAME 'dem1'
        DATA 'bathy_dd1.tif'
        PROJECTION
            "init=epsg:32631"
        END #end projection
        METADATA
            "ows_title" "dem1"
            "DESCRIPTION"   "Bathymetry"
            END #end metadata
        TRANSPARENCY 100
        TYPE raster
        OFFSITE 255 255 255 # transparency color for raster layer
        STATUS ON
        TOLERANCE 8 #default is 3 for raster, 0 for vector
        #TOLERANCEUNITS meters #default is meters,
[pixels|feet|inches|kilometers|meters|miles|dd]
        TEMPLATE void

#        CLASSITEM "[pixel]"
        CLASS
            NAME '< 5 (m Depth)'
            EXPRESSION ([pixel] >= -5)
            COLOR 182 237 240
        END #end class
        CLASS
            NAME '5 - 10'
             EXPRESSION ([pixel] >= -10 AND [pixel] < -5)
            COLOR 161 218 237
        END #end class
etc

On 3 September 2010 13:39, Armin Burger <armin.bur...@gmail.com> wrote:

> On 02/09/2010 22:39, Chris Jackson wrote:
> > Armin
> >
> > It is only a 50mb GeoTIFF of bathmetry for the UK continental shelf with
> 12
> > classes.  It takes about 8 seconds to draw, I wasn't sure about using a
> > tileindex (my old app didn't), but will start using one.  I also have a
> > slight mix in projections WGS 84 UTM zone 31N and UTM zone 30N, which I
> > think may slow things down too.
> >
> > Chris
> >
> > On 2 September 2010 20:13, Armin Burger<armin.bur...@gmx.net>  wrote:
> >
>
> Just re-project all images to the projection used for your MAP, using
> eg. gdalwarp:
> # gdalwarp -s_srs "EPSG:32631" -t_srs "EPSG:32630" -co "TILED=YES"
> in_img.tix out_img.tif
>
> re-projects from UTM zone 31 to zone 30 and creates a GeoTiff with
> internal tiles.
>
> Then create overviews with gdaladdo, like
> # gdaladdo -ro your_img_file.tif 4 8 16 32
>
> The 4GB image I mentioned took 1-2 s to be rendered into the map image,
> depending on scale.
>
> armin
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to