[gdal-dev] Best way to mosaic and compress lots of tiff Black/white?
Pietro Rossin
pierigis at gmail.com
Wed Nov 14 02:57:33 PST 2012
Ok
I made a test VRT and I applied your gdal_translate command.
It work and the result is a tiff with a weight of about the sum of the two
test mosaiced tiffs.
But as you can see in this image
http://www.flickr.com/photos/90029615@N05/8184720800/
the two tiffs have a white orizzontal stripe that separate them.
This is because each tif to be mosaiced have a white frame and every frame
overlap to "data" areas of adiacent images.
If I eliminate the 255 value from original tiffs the result is like this
http://www.flickr.com/photos/90029615@N05/8184744636/
I tried using -a_nodata 255 in gdal_translate command but the result is the
same white separation..
How can I set 255 values to nodata before mosaic each tiff?
Thank you very much for your help!
Pietro
2012/11/13 MORREALE Jean Roc [via OSGeo.org] <
ml-node+s1560n5016032h37 at n6.nabble.com>
> Hi,
>
> You could start by merging all your tiff in a VRT then do
> gdal_translate -of Gtiff -co SPARSE_OK=TRUE -a_nodata 0 -co NBITS=1 -co
> "TILED=YES" -co "COMPRESS=CCITTFAX4" -co "INTERLEAVE=BAND" "example.vrt"
> "example.tif"
>
> Le 2012-11-13 17:14, Pietro Rossin a écrit :
>
> > Hello all
> > I have ~1000 tiff/tfw RGB but with only 0 or 255 color value in all
> > bands
> > (black/white).
> > I want to mosaic them in a single image to be used in qgis and other
> > gis
> > software.
> >
> > Which is the best way to do this? And to compress the resulting
> > image? May
> > be Tiff?? Single band??
> > Another problem is that I must apply a formula to input images to
> > transform
> > 255 value to null, because of some white portion of each image that
> > overlap
> > to black portion of the adiacent one..
> >
> > Thanks
> > Pietro
>
> Le 2012-11-13 17:14, Pietro Rossin a écrit :
>
> > Hello all
> > I have ~1000 tiff/tfw RGB but with only 0 or 255 color value in all
> > bands
> > (black/white).
> > I want to mosaic them in a single image to be used in qgis and other
> > gis
> > software.
> >
> > Which is the best way to do this? And to compress the resulting
> > image? May
> > be Tiff?? Single band??
> > Another problem is that I must apply a formula to input images to
> > transform
> > 255 value to null, because of some white portion of each image that
> > overlap
> > to black portion of the adiacent one..
> >
> > Thanks
> > Pietro
> _______________________________________________
> gdal-dev mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=5016032&i=0>
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1560.n6.nabble.com/Best-way-to-mosaic-and-compress-lots-of-tiff-Black-white-tp5016021p5016032.html
> To unsubscribe from Best way to mosaic and compress lots of tiff
> Black/white?, click here<http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5016021&code=cGllcmlnaXNAZ21haWwuY29tfDUwMTYwMjF8MjMwODY1MTQ5>
> .
> NAML<http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Best-way-to-mosaic-and-compress-lots-of-tiff-Black-white-tp5016021p5016218.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121114/5b2d3b24/attachment-0001.html>
More information about the gdal-dev
mailing list