Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. gdalwarp -srcnodata 255 -dstalpha ... # completely transparent. See no image
  2. gdalwarp -srcnodata 0 -dstalpha ... # completely transparent. See no image
  3. gdalwarp -srcnodata 255 ... # has no effect
  4. gdalwarp -srcnodata 0 ... # also has no effect
  5.  
  6. gdal_translate -of VRT 1-A.tif color.vrt
  7.  
  8. ....
  9. <VRTRasterBand dataType="Byte" band="1">
  10. <Metadata domain="IMAGE_STRUCTURE">
  11. <MDI key="NBITS">1</MDI>
  12. </Metadata>
  13. <NoDataValue>255</NoDataValue>
  14. <ColorInterp>Palette</ColorInterp>
  15. <ColorTable>
  16. <Entry c1="255" c2="255" c3="255" c4="255" />
  17. <Entry c1="0" c2="0" c3="0" c4="255" />
  18. </ColorTable>
  19. <SimpleSource>
  20. <SourceFilename relativeToVRT="1">1-A.tif</SourceFilename>
  21. <SourceBand>1</SourceBand>
  22. <SourceProperties RasterXSize="5990" RasterYSize="5995" DataType="Byte" BlockXSize="5990" BlockYSize="10" />
  23. <SrcRect xOff="0" yOff="0" xSize="5990" ySize="5995" />
  24. <DstRect xOff="0" yOff="0" xSize="5990" ySize="5995" />
  25. </SimpleSource>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement