It works! The translation I mean :)

Requested information:

  [EMAIL PROTECTED]:~$ gdal_translate --version
  GDAL 1.4.3.0, released 2007/10/28

I'll do the test when the translation finish.

THANKS!

On Tue, December 11, 2007 18:41, Simone Giannecchini wrote:
> add this option to your command
>
> -co "PHOTOMETRIC=RGB"
>
> Simone.
> On Dec 11, 2007 7:39 PM, Simone Giannecchini <[EMAIL PROTECTED]> wrote:
>> Are you using fwtools ? If so which version?
>>
>> Simone.
>>
>>
>> On Dec 11, 2007 7:37 PM, Diego Fdez. Durán <[EMAIL PROTECTED]> wrote:
>> > If I do:
>> >
>> >     gdal_translate -co "TILED=YES" -co "BLOCKYSIZE=512" -co
>> > "BLOCKXSIZE=512" -co "COMPRESS=JPEG" Sur2_A1.tif Sur2_A1.procesado.tif
>> >
>> > I get thousands of:
>> >
>> >     ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed
>> for JPEG
>> >
>> > and a 50KB .tif from a 869MB .tif.
>> > My images aren't in the right format?
>> >
>> >
>> > On Tue, December 11, 2007 18:17, Diego Fdez.Durán wrote:
>> > > The image is 8bit palette (packbits/LZW compressed) (image optimized
>> > > palette) exported using GlobalMapper.
>> > >
>> > > I'll process the images as you say and make a test.
>> > >
>> > > On Tue, December 11, 2007 18:09, Simone Giannecchini wrote:
>> > >> Diego, you need to add overviews to these files since they are
>> pretty
>> > >> big.
>> > >>
>> > >> You've got to be careful though. These files are compressed packbit
>> > >> however their palette is RGB (who picked up the compression
>> scheme?).
>> > >> Can you confirm that these images are RGB?
>> > >>
>> > >> In order to add overviews using gdaladdo I would strongly recommend
>> > >> using the nearest interpolation or you'll mess up the  images,
>> since
>> > >> they are paletted. If it were up to me I would probably do what
>> > >> follows in order to get better overviews.
>> > >>>recreate the images as follows:
>> > >>   gdal_translate -co "TILED=YES" -co "BLOCKYSIZE=512" -co
>> > >> "BLOCKXSIZE=512" -co "COMPRESS=JPEG" in_file out_file
>> > >>
>> > >>>add overviews using a non-trivial interpolation scheme to avoid
>> > >> aliasing. I would probably do
>> > >>
>> > >> gdaladdo -r average in_file 2 4 8 16 32 64 128
>> > >>
>> > >>>rebuild the index file
>> > >>
>> > >>
>> > >> Hope this helps,
>> > >> Simone.
>> > >>
>> > >>
>> > >> On Dec 11, 2007 6:56 PM, Diego Fdez. Durán <[EMAIL PROTECTED]> wrote:
>> > >>> There are 9 like this with and index shapefile and a properties
>> file.
>> > >>>
>> > >>> [EMAIL PROTECTED]:/var/lib/maps/Sur$ ls -lh Sur2_A1.tif
>> > >>> -rwxrw-r-- 1 nobody maps 868M Dec 10 18:07 Sur2_A1.tif
>> > >>>
>> > >>> -- gdalinfo information follows:
>> > >>> Driver: GTiff/GeoTIFF
>> > >>> Size is 48963, 30779
>> > >>> Coordinate System is:
>> > >>> PROJCS["ED50 / UTM zone 30N",
>> > >>>     GEOGCS["ED50",
>> > >>>         DATUM["European_Datum_1950",
>> > >>>             SPHEROID["International
>> 1924",6378388,297.000000000005,
>> > >>>                 AUTHORITY["EPSG","7022"]],
>> > >>>             AUTHORITY["EPSG","6230"]],
>> > >>>         PRIMEM["Greenwich",0],
>> > >>>         UNIT["degree",0.0174532925199433],
>> > >>>         AUTHORITY["EPSG","4230"]],
>> > >>>     PROJECTION["Transverse_Mercator"],
>> > >>>     PARAMETER["latitude_of_origin",0],
>> > >>>     PARAMETER["central_meridian",-3],
>> > >>>     PARAMETER["scale_factor",0.9996],
>> > >>>     PARAMETER["false_easting",500000],
>> > >>>     PARAMETER["false_northing",0],
>> > >>>     UNIT["metre",1,
>> > >>>         AUTHORITY["EPSG","9001"]],
>> > >>>     AUTHORITY["EPSG","23030"]]
>> > >>> Origin = (55083.924175396794453,4444229.412504355423152)
>> > >>> Pixel Size = (4.999971237289430,-4.999971237289440)
>> > >>> Metadata:
>> > >>>   AREA_OR_POINT=Area
>> > >>> Image Structure Metadata:
>> > >>>   COMPRESSION=PACKBITS
>> > >>> Corner Coordinates:
>> > >>> Upper Left  (   55083.924, 4444229.413) (  8d12'47.04"W, 40d
>> 1'48.92"N)
>> > >>> Lower Left  (   55083.924, 4290335.298) (  8d 6'40.35"W,
>> 38d38'57.18"N)
>> > >>> Upper Right (  299897.516, 4444229.413) (  5d20'53.73"W, 40d
>> 7'26.06"N)
>> > >>> Lower Right (  299897.516, 4290335.298) (  5d18'7.84"W,
>> 38d44'18.23"N)
>> > >>> Center      (  177490.720, 4367282.355) (  6d44'40.76"W,
>> 39d23'38.85"N)
>> > >>> Center      (  177490.720, 4367282.355) (  6d44'40.76"W,
>> 39d23'38.85"N)
>> > >>> Band 1 Block=48963x1 Type=Byte, ColorInterp=Palette
>> > >>>   Color Table (RGB with 256 entries)
>> > >>>     0: 0,0,0,255
>> > >>>     1: 96,51,31,255
>> > >>>     2: 233,233,37,255
>> > >>>     3: 221,224,38,255
>> > >>>     4: 200,59,56,255
>> > >>>     5: 83,158,64,255
>> > >>>     6: 83,70,67,255
>> > >>>     7: 199,184,68,255
>> > >>>     8: 90,96,79,255
>> > >>>     9: 144,101,80,255
>> > >>>    10: 141,157,96,255
>> > >>>    11: 210,134,117,255
>> > >>>    12: 158,139,131,255
>> > >>>    13: 141,195,133,255
>> > >>>    14: 181,189,140,255
>> > >>>    15: 202,173,146,255
>> > >>>    16: 150,150,150,255
>> > >>>    17: 75,108,152,255
>> > >>>    18: 95,226,161,255
>> > >>>    19: 214,214,166,255
>> > >>>    20: 189,189,173,255
>> > >>>    21: 255,181,181,255
>> > >>>    22: 181,239,181,255
>> > >>>    23: 188,165,196,255
>> > >>>    24: 230,239,197,255
>> > >>>    25: 137,180,208,255
>> > >>>    26: 222,214,214,255
>> > >>>    27: 239,255,231,255
>> > >>>    28: 237,237,237,255
>> > >>>    29: 8,255,255,255
>> > >>>    30: 181,255,255,255
>> > >>>    31: 255,255,255,255
>> > >>>    32: 255,255,206,255
>> > >>>    33: 0,0,0,255
>> > >>>    [... until 255 ...]
>> > >>> -- end file info
>> > >>>
>> > >>> On Tue, December 11, 2007 17:45, Simone Giannecchini wrote:
>> > >>> > Ops,
>> > >>> > sorry Diego, I did not read your code carefully enough. If you
>> were
>> > >>> > providing the map pane with the reader you were already doing
>> the
>> > >>> > right thing.
>> > >>> >
>> > >>> > So we have to go back to the other suggestions I gave you, that
>> > >>> > basically meant "preprocess you data to have good performances".
>> > >>> >
>> > >>> > Can you do  a gdalinfo on one of your coverage and copy & pasate
>> > >>> here?
>> > >>> >
>> > >>> >
>> > >>> > Simone.
>> > >>> >
>> > >>>
>> > >>> --
>> > >>>
>> > >>> Diego Fdez. Durán <[EMAIL PROTECTED]> | http://www.goedi.net
>> > >>> GPG : 925C 9A21 7A11 3B13 6E43 50DB F579 D119 90D2 66BB
>> > >>>
>> > >>>
>> > >>> -------------------------------------------------------------------------
>> > >>> SF.Net email is sponsored by:
>> > >>> Check out the new SourceForge.net Marketplace.
>> > >>> It's the best place to buy or sell services for
>> > >>> just about anything Open Source.
>> > >>> http://sourceforge.net/services/buy/index.php
>> > >>> _______________________________________________
>> > >>> Geotools-gt2-users mailing list
>> > >>> Geotools-gt2-users@lists.sourceforge.net
>> > >>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>> > >>>
>> > >>
>> > >>
>> > >>
>> > >> --
>> > >> -------------------------------------------------------
>> > >> Eng. Simone Giannecchini
>> > >> President /CEO GeoSolutions S.A.S.
>> > >> Via Carignoni 51
>> > >> 55041  Camaiore (LU)
>> > >> Italy
>> > >>
>> > >> phone: +39 0584983027
>> > >> fax:      +39 0584983027
>> > >> mob:    +39 333 8128928
>> > >>
>> > >>
>> > >> http://www.geo-solutions.it
>> > >>
>> > >> -------------------------------------------------------
>> > >>
>> > >
>> > >
>> > > --
>> > > Diego Fdez. Durán <[EMAIL PROTECTED]> | http://www.goedi.net
>> > > GPG : 925C 9A21 7A11 3B13 6E43 50DB F579 D119 90D2 66BB
>> > >
>> > >
>> > > -------------------------------------------------------------------------
>> > > SF.Net email is sponsored by:
>> > > Check out the new SourceForge.net Marketplace.
>> > > It's the best place to buy or sell services for
>> > > just about anything Open Source.
>> > > http://sourceforge.net/services/buy/index.php
>> > > _______________________________________________
>> > > Geotools-gt2-users mailing list
>> > > Geotools-gt2-users@lists.sourceforge.net
>> > > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>> > >
>> >
>> >
>> > --
>> >
>> > Diego Fdez. Durán <[EMAIL PROTECTED]> | http://www.goedi.net
>> > GPG : 925C 9A21 7A11 3B13 6E43 50DB F579 D119 90D2 66BB
>> >
>> >
>> > -------------------------------------------------------------------------
>> > SF.Net email is sponsored by:
>> > Check out the new SourceForge.net Marketplace.
>> > It's the best place to buy or sell services for
>> > just about anything Open Source.
>> > http://sourceforge.net/services/buy/index.php
>> > _______________________________________________
>> > Geotools-gt2-users mailing list
>> > Geotools-gt2-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>> >
>>
>>
>>
>> --
>>
>> -------------------------------------------------------
>> Eng. Simone Giannecchini
>> President /CEO GeoSolutions S.A.S.
>> Via Carignoni 51
>> 55041  Camaiore (LU)
>> Italy
>>
>> phone: +39 0584983027
>> fax:      +39 0584983027
>> mob:    +39 333 8128928
>>
>>
>> http://www.geo-solutions.it
>>
>> -------------------------------------------------------
>>
>
>
>
> --
> -------------------------------------------------------
> Eng. Simone Giannecchini
> President /CEO GeoSolutions S.A.S.
> Via Carignoni 51
> 55041  Camaiore (LU)
> Italy
>
> phone: +39 0584983027
> fax:      +39 0584983027
> mob:    +39 333 8128928
>
>
> http://www.geo-solutions.it
>
> -------------------------------------------------------
>


-- 
Diego Fdez. Durán <[EMAIL PROTECTED]> | http://www.goedi.net
GPG : 925C 9A21 7A11 3B13 6E43 50DB F579 D119 90D2 66BB


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to