[ka-Map-users] 'format' => 'JPEG'
R. Ortner
reinhard.ortner at edu.fh-kaernten.ac.at
Fri Dec 21 04:46:30 EST 2007
Hi,
I have a ka-map application with the following settings:
> config.php:
> ----------
> $aszGMap = array (
> 'title' => 'geoland_test',
> 'path' =>
> '/usr/share/ka-map-1.0-20070205/htdocs/geoland_test.map',
> 'scales' => array( 600000, 250000, 120000, 75000, 30000, 10000 ),
> 'format' =>'PNG'
> );
>
> mapfile:
> -------
> MAP
> TRANSPARENT ON
> NAME geoland_test
> STATUS ON
> SIZE 2400 1800
> EXTENT 390730 119473 594760 238680
> UNITS METERS
> IMAGECOLOR 255 255 255
> IMAGETYPE PNG
> #LOG /var/www/htdocs/umn/geoland.log
> SYMBOLSET "/maps/umn/symbols/symbset.sym"
> FONTSET "/maps/umn/fonts/fonts.fnt"
>
> OUTPUTFORMAT
> NAME jpeg
> DRIVER "GD/JPEG"
> MIMETYPE "image/jpeg"
> IMAGEMODE RGB
> EXTENSION "jpg"
> END
>
> .
> .
> .
>
> #####################################################################
> ######################### Orthophotos ###############################
> #####################################################################
>
> LAYER
> GROUP Orthophotos #erzeugt Checkbox zum aktivieren/deaktivieren
> des layers
> NAME "Orthofotos"
> TYPE raster
> # TILEINDEX "/home/geodata/shapes/ortho_ecw/focat_ecw.shp"
> TILEINDEX "/home/geodata/shapes/ortho/focat.shp"
> # TILEINDEX "/home/geodata/shapes/ortho_ecw_8bit/focat_ecw_8bit.shp"
> # TILEINDEX "/home/geodata/shapes/tmp/test.shp"
>
> TILEITEM "location"
> # PROCESSING "RESAMPLE=AVERAGE"
> STATUS OFF
>
> METADATA
> # "queryable" "true"
> IMAGEFORMAT "JPEG"
> END #END Metadata
> #
> END
>
the problem now is, that I need the orthophotos in jpeg or png24 format (in
png 8bit the quality is not acceptable!).
When I change the 'format' =>'PNG' option in the config.php to e.g. JPEG or
PNG24, it doesn´t matter to the application. It looks like the images get
allways requested as PNG no matter what I set as output.
I tried to call the images with a simple php_mapscript request to see if the
problem is the mapserver, but the mapserver serves a perfectly rendered
24bit image back!
Anyone get this or a similar problem? or at least I hope someone have a
solution for me.
Tried to change the image format in the config, the mapfile and in the
layersection with no effect!
regards
--
View this message in context: http://www.nabble.com/%27format%27-%3D%3E-%27JPEG%27-tp14452480p14452480.html
Sent from the ka-map-users mailing list archive at Nabble.com.
More information about the ka-Map-users
mailing list