[ka-Map-users] Re: ecw imageformat problems

Alessio Di Lorenzo alessio.dilorenzo at gmail.com
Wed Jan 16 06:56:57 EST 2008


Luca De Felice ha scritto:
> I thought maybe the problem is related to the server linux debian, 
> because I have installed FGS package, but I don't know if there is, 
> for default, the ability for ECW.
> Does somebody know if it is necessary to recompile the GDAL library 
> with ECW support with FGS?
> thank you very much

Hi Luca,
try to run the command gdalinfo --formats and check if there's a row 
bout ecw. I think not... so you need to recompile the support.

A few month ago I prepared a little how-to for ubuntu (but i think it 
could work even in debian), based on the how-to in gfoss.it wiki.

This is the url
http://alessio.openmaps.it/drupal-5.1/?q=node/16

the how-to is written in italian. The site is only a

>     ----- Original Message -----
>     *From:* Luca De Felice <mailto:defelice.luca at gmail.com>
>     *To:* ka-map-users at lists.maptools.org
>     <mailto:ka-map-users at lists.maptools.org>
>     *Sent:* Saturday, January 12, 2008 4:35 PM
>     *Subject:* ecw imageformat problems
>
>     Hi kamappers!
>     I need some help from someone because I've implemented a webgis
>     with kamap, but when I tried to publish ecw raster image I found
>     only blank image in the tiles.
>     I know there is some problem with the image format when it is used
>     the ecw format, but I thought to fix using "jpeg" format.
>     here is the setting in config.php==>
>
>     $aszGMap2 = array (
>
>     'title' => 'Dati stazioni di misura',
>
>     'path' => '../../map/dati_stazioni.map',
>
>     'scales' => array(2000000, 1000000, 500000, 100000, 50000, 12000,
>     2000),
>
>     'format' =>'JPEG'
>
>     /* Sample authorized_users entry. See auth.php for more details:
>
>     * ,'authorized_users' => array('popplace' => array('user1', 'user2'),
>
>     * 'park' => array('user1')
>
>     */
>
>     );
>
>     and here is the settting in the mapfile==>
>
>     MAP
>
>     NAME "dati_stazioni.map"
>
>     STATUS ON
>
>     EXTENT 550917 4194760 692792 4445675
>
>     SIZE 1200 900
>
>     IMAGETYPE JPEG
>
>     IMAGECOLOR 255 255 255
>
>     UNITS METERS
>
>     SYMBOLSET "../map/symbol/symbols.sym"
>
>     TRANSPARENT ON
>
>     WEB
>
>     # IMAGEPATH "tmp/ms_tmp/kacache/"
>
>     # IMAGEURL "kacache/"
>
>     IMAGEPATH "../../../tmp/ms_tmp/"
>
>     IMAGEURL "ms_tmp/"
>
>     END
>
>     LEGEND
>
>     STATUS ON
>
>     IMAGECOLOR 255 255 255
>
>     TRANSPARENT TRUE
>
>     POSITION LL
>
>     KEYSIZE 20 10
>
>     KEYSPACING 5 5
>
>     LABEL
>
>     TYPE BITMAP
>
>     SIZE MEDIUM
>
>     OFFSET 0 0
>
>     BUFFER 0
>
>     MINDISTANCE -1
>
>     MINFEATURESIZE -1
>
>     COLOR 0 0 0
>
>     PARTIALS TRUE
>
>     FORCE FALSE
>
>     END
>
>     END
>
>     SCALEBAR
>
>     STATUS ON
>
>     COLOR 0 0 0
>
>     IMAGECOLOR 255 255 255
>
>     UNITS MILES
>
>     INTERVALS 4
>
>     SIZE 200 3
>
>     STYLE 0
>
>     POSITION LL
>
>     LABEL
>
>     TYPE BITMAP
>
>     SIZE MEDIUM
>
>     OFFSET 0 0
>
>     BUFFER 0
>
>     MINDISTANCE -1
>
>     MINFEATURESIZE -1
>
>     COLOR 0 0 0
>
>     PARTIALS TRUE
>
>     FORCE FALSE
>
>     END
>
>     END
>
>     REFERENCE
>
>     IMAGE "../data/dtm.jpg"
>
>     EXTENT 2470012 4174979 2796449 4460080
>
>     SIZE 180 240
>
>     STATUS ON
>
>     MINBOXSIZE 5
>
>     MAXBOXSIZE 100
>
>     COLOR 255 0 0
>
>     OUTLINECOLOR 0 0 0
>
>     MARKERSIZE 8
>
>     MARKER 'star'
>
>     END #REFERENCE
>
>     #OUTPUTFORMAT
>
>     # NAME dithered
>
>     # DRIVER "GD/PNG"
>
>     # EXTENSION "png"
>
>     # MIMETYPE "image/png"
>
>     # IMAGEMODE RGBA
>
>     # TRANSPARENT OFF
>
>     # FORMATOPTION "QUANTIZE_FORCE=ON"
>
>     # FORMATOPTION "QUANTIZE_DITHER=OFF"
>
>     # FORMATOPTION "QUANTIZE_COLORS=256"
>
>     #END
>
>     # OUTPUTFORMAT
>
>     # NAME "PNG24"
>
>     # MIMETYPE "image/png"
>
>     # DRIVER "GD/PNG24"#
>
>     # EXTENSION "png"
>
>     # IMAGEMODE RGBA
>
>     # TRANSPARENT OFF
>
>     # END
>
>     OUTPUTFORMAT
>
>     NAME "JPEG"
>
>     MIMETYPE "image/jpeg"
>
>     DRIVER "GD/JPEG"
>
>     EXTENSION "jpg"
>
>     IMAGEMODE RGB
>
>     TRANSPARENT OFF
>
>     END
>
>     LAYER
>
>     GROUP "ORTOFOTO"
>
>     NAME "ORTOFOTO"
>
>     TYPE raster
>
>     STATUS ON
>
>     # DATA "C:\ms4w\apps\ka-map-1.0\data\mosaico ortofoto\calabria.ecw"
>
>     DATA
>     "ecwp://procivecw.protezionecivilecalabria.it/pkt169_ecw/pkt169-72-1.0_Mosaico_Ortofoto_Calabria.ecw"
>
>     CLASS
>
>     NAME "ORTOFOTO"
>
>     END #CLASS
>
>     END #LAYER
>
>     LAYER
>
>     GROUP "CZ"
>
>     NAME "PRECISO CZ"
>
>     TYPE raster
>
>     STATUS OFF
>
>     DATA
>     "ecwp://procivecw.protezionecivilecalabria.it/pkt169_ecw/IK_RGB_Catanzaro.ecw"
>
>     CLASS
>
>     NAME "PRECISO CZ"
>
>     END #CLASS
>
>     END #LAYER
>
>     LAYER
>
>     GROUP "IGM"
>
>     NAME "IGM"
>
>     TYPE raster
>
>     STATUS OFF
>
>     DATA
>     "ecwp://procivecw.protezionecivilecalabria.it/pkt169_ecw/Cala_IGM25000.ecw"
>
>     CLASS
>
>     NAME "IGM"
>
>     END #CLASS
>
>     END #LAYER
>
>     END #MAP
>
>      
>
>     thank you in advance for any answers
>
>     Luca De Felice
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>   



More information about the ka-Map-users mailing list