[Gdal-dev] Help With Transparent Colors

Lennox Antoine lxnyce at gmail.com
Fri Feb 3 10:30:54 EST 2006


I still haven't released it yet, but you have a partial solution to
this problem with my latest release. I have worked with the NY GIS
images as well, and found no package (including LizardTech's) can
graphically display or mosaic all the files. Most seem to die at
around 50. Go here : http://www.lennoxgis.com/

Download the 0.6 stable release.

1. Add all your files into GeoPaint either through drag and drop from
internet explorer or use the file open button in GeoPaint.
Alternatively, right click on the layer tree and there is an "Add
Directory" option which will recursively scan.

2. The rasters/vectors will start to load. When it all loads the tree
will refresh. You can right click on it to refresh it yourself. You
can also monitor the progress by clicking the little stop light
blinking in the main window.

3. Once they are all loaded, highlight them all in the treeview (make
sure you highlight them as only the highlighted ones will be
exported). Right click on it, and go to mosaic (or export). With
mosaic, choose a format that doesn't have the 2GB limit (like ERDAS
IMAGINE). You can modify the output dimensions as well as other
options. Type in the output filename last please [stupid bug where it
starts after it receives a filename].

I should be finished hooking up coordinate systems this weekend, so
you could do both steps in one pass. Try it with something smaller
first to get acquainted with it. I am taking any suggestions that you
guys might have.

Note that you can roam around thousands of SID's with even a very weak
machine. heck your memory footprint, very low. This goes for pretty
much all formats except ECW since the ECW sdk takes up ~1/3 system
memory by default.

Keep in mind the GeoSpatial IM is down currently, as I am still
searching for server hosting.

-Lennox


On 1/24/06, Reinaldo Escada Chohfi <rec at geodesign.com.br> wrote:
>  GeoExpress has both GUI and command line versions for batch processing.
> You can add 1000s of images to process using either version.
>
>  R.
>
>
>  At 10:15 PM 1/24/2006, Dolloff, Matthew D. (JSC-ER7) wrote:
>
>  I'm not sure how well GeoExpress is an option because we are talking about
> thousands of files and GB of data.  I need to batch the process.
>
>  ________________________________
>
>  From: Reinaldo Escada Chohfi [ mailto:rec at geodesign.com.br]
>  Sent: Tuesday, January 24, 2006 5:48 PM
>  To: Frank Warmerdam; Dolloff, Matthew D. (JSC-ER7)
>  Cc: gdal-dev at lists.maptools.org
>  Subject: Re: [Gdal-dev] Help With Transparent Colors
>
>  You can also use the GeoExpress 5.0 trial download from LizardTech (
> www.lizardtech.com) that allows you to mosaic and reproject .sid images in
> one step.  The trial download allows you to work with images that already
> are in .sid format without problems.  That way you don't need to go from
> MrSID to GeoTiff and make a large mosaic as a .sid image.
>
>  Best regards,
>
>  Reinaldo
>
>  At 09:06 PM 1/24/2006, Frank Warmerdam wrote:
>
>  On 1/24/06, Dolloff, Matthew D. (JSC-ER7) <matthew.d.dolloff at nasa.gov>
> wrote:
>  >
>  >
>  >
>  > Hello.  I am trying to convert some MrSID images into Geotiffs and tiling
>  > them together.  The MrSIDs are in state plane coordinate system and I
> need
>  > them in WGS84.  So I convert the MrSIDs to geotiffs using mrsiddecode
> from
>  > lizard tech.  Then I use gdal warp to change the projection type.  Then
> use
>  > gdal_merge to merge them together.  The problem is that I end up with a
>  > black collar when I warp the images and then when I merge them the images
>  > cover each other up.  Is there anyway, that I can crop those collars out?
>  > Here is the link where I am getting the sids
>  >
> http://www.nysgis.state.ny.us/gateway/mg/2001/suffolk/01ic_t_babylon_l06col.htm
>
>  Matt,
>
>  A couple of approaches would be:
>
>   o Use gdal_merge to merge the TIFFs before
>      reprojecting them.  Then gdalwarp the resulting
>      mosaic.
>
>   o Or create a big WGS84 mosaic file and gdalwarp
>      each non-WGS84 file into that, mosaicing at the
>      same time as reprojecting.
>
>  In the future gdalwarp will support multiple input
>  files, essentially replacing gdal_merge for many
>  purposes.  This is already in CVS if you were building
>  from source.  Another option would be to generate a
>  nodata value or better yet an alpha channel in the files
>  output by gdalwarp to keep track of the nodata pixels.
>
>  My suggestion would be the top most option, mosaic
>  then reproject.  Keep in mind that GeoTIFF only
>  supports file sizes up to 4GB.  So if your mosaic is
>  going to be large, you may need to do it in a format
>  like Erdas Imagine.
>
>  Best regards,
>  --
> ---------------------------------------+--------------------------------------
>  I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
>  light and sound - activate the windows | http://pobox.com/~warmerdam
>  and watch the world go round - Rush    | Geospatial Programmer for Rent
>
>  _______________________________________________
>  Gdal-dev mailing list
>  Gdal-dev at lists.maptools.org
>  http://lists.maptools.org/mailman/listinfo/gdal-dev
>
>  Reinaldo Escada Chohfi, Ph.D.
>  Diretor
>  GeoDesign Internacional
>
>  www.geodesign.com.br
>
>  E-mail: rec at geodesign.com.br
>
>  Tel./Fax: 0-XX-12-3153-5115 (Local)
>        55-12-3153-5115 (Intl.)
>
>  Inteligência e Tecnologia Espacial de Ponta
>
>  Urbanismo, Estudos Ambientais, Monitoriamento Ambiental,
>  Geoprocessamento, GIS, Processamento de Imagens Geográficas,
>  Sensoriamento Remoto: Imagens de Satélites
>
>  Compressão de Imagens e Documentos Escanerizados
>  Servidor de Conteúdo - Sistemas de Visualização - Integração de Sistemas
>
>  Revendedor Autorizado da LizardTech e da Applied Imagery no Brasil
>
>  Vila Peralta, 42
>  12607-040 - Lorena - SP - Brasil
>
>  Informação confidencial. Não retransmitir sem autorização.
>  Copyright (c) 2005 GeoDesign Internacional
>  Todos os direitos reservados.
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>
>




More information about the Gdal-dev mailing list