[ka-Map-users] Black tiles when using JPEG
R. Ortner
reinhard.ortner at edu.fh-kaernten.ac.at
Thu Oct 4 03:05:16 EDT 2007
Hi,
i have a .shp layer type raster made with gdaltindex for my orthophotos.
when i change the imageformat to jpeg (in the config.php and in the layer
metadata section of my orthophotolayer) i get only black tiles!
when i remove the entry for the imageformat i get displayed the orthophotos
in png 8bit and thats not very useful.
is there a bug or something i have to change?
config.php entry:
$aszGMap = array (
'title' => 'geoland.at',
'path' =>
'/usr/share/ka-map-1.0-20070205/htdocs/orthophotos.map',#geoland_test.map',
'scales' => array( 600000, 250000, 120000, 75000, 30000, 10000 ),
'format' =>'JPG'
/* Sample authorized_users entry. See auth.php for more details:
* ,'authorized_users' => array('popplace' => array('user1',
'user2'),
* 'park' => array('user1')
*/
);
--------------------
the same when i change the format to png24
-------------------
my mapfile:
-------------
#Mapfile für Ka-Map
MAP
TRANSPARENT ON
NAME geoland_test
STATUS ON
SIZE 2400 1800
EXTENT 390730 119473 594760 238680
UNITS METERS
IMAGECOLOR 255 255 255
IMAGETYPE PNG
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
#OUTPUTFORMAT
# NAME png8_t
# DRIVER "GD/PNG"
# EXTENSION "png"
# MIMETYPE "image/png"
# IMAGEMODE RGBA
# TRANSPARENT ON
# FORMATOPTION "QUANTIZE_FORCE=ON"
# FORMATOPTION "QUANTIZE_DITHER=OFF"
# FORMATOPTION "QUANTIZE_COLORS=10"
#END
# OUTPUTFORMAT
# NAME PNG24
# MIMETYPE "image/png"
# DRIVER "GD/PNG24"
# EXTENSION "png"
# IMAGEMODE RGBA
# TRANSPARENT ON
# FORMATOPTION "INTERLACE=ON"
# END
WEB
IMAGEPATH '/maps/images.tmp'
IMAGEURL '/images.tmp'
# LOG /var/www/htdocs/umn/geoland.log
METADATA
# "WFS_TITLE" "Geoland WMS(WFS) Kärnten"
# "WFS_SRS" "EPSG:4326" #dringend empfohlen
# "WFS_ABSTRACT" "Geodaten des Bundeslandes Kärnten als OGC-WFS"
# "WFS_ONLINERESOURCE"
"http://172.21.18.45/cgi-bin/mapserv?map=/usr/share/ka-map-1.0-20070205/htdocs/orthophotos.map"
# "wfs_maxfeatures" "200" #dient als Einschränkung während der
Teststellung
"WMS_SRS" "EPSG:31285 EPSG:31284 EPSG:31286 EPSG:4326 EPSG:0"
"WMS_TITLE" "___________Geoland WMS Kärnten"
"WMS_feature_INFO_MIME_TYPE" "text/html"
"WMS_ABSTRACT" "Geodaten des Bundeslandes Kärnten als OGC-WMS"
"WMS_ONLINERESOURCE"
"http://172.21.18.45/cgi-bin/mapserv?map=/usr/share/ka-map-1.0-20070205/htdocs/orthophotos.map"
END
END
PROJECTION
"init=EPSG:31258"
END
# WEB
# IMAGEPATH "/maps/images.tmp/"
# IMAGEURL "/images.tmp/"
# END
LEGEND
TRANSPARENT TRUE
END
SCALEBAR
TRANSPARENT TRUE
END
REFERENCE
EXTENT 390730 119473 594760 238680
SIZE 217 109
IMAGE data/kaernten.png
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
QUERYMAP
STYLE HILITE
COLOR 255 0 0
END
#####################################################################
######################### Orthophotos ###############################
#####################################################################
LAYER
NAME "Orthofotos"
GROUP Orthophotos #erzeugt Checkbox zum aktivieren/deaktivieren des
layers
TYPE Raster
TILEINDEX "/home/geodata/shapes/ortho_ecw/focat_ecw.shp"
TILEITEM "location"
STATUS ON
# TRANSPARENT ON
METADATA
# "queryable" "true"
# imageformat "JPEG"
"WMS_TITLE" "Orthophotos"
#"WMS_extent" "390730 119473 594760 238680" # echte BMN
Koordinaten
"WMS_SRS" "EPSG:31285 EPSG:31284 EPSG:31286 EPSG:4326
EPSG:0"
END #END Metadata
PROJECTION
"init=EPSG:31258"
END
END
END
------------------------------------------------------------------------------------------
i try to solve the problem since last week and i don´t have a cloue what i
can do anymore!
--
View this message in context: http://www.nabble.com/Black-tiles-when-using-JPEG-tf4566179.html#a13033709
Sent from the ka-map-users mailing list archive at Nabble.com.
More information about the ka-Map-users
mailing list