Hy list,<br><br>Has anyone reproduce the bug?<br><br>Thank you.<br><br><br><br><div class="gmail_quote">2012/4/12 Saâd HESSANE <span dir="ltr"><<a href="mailto:saad.hessane@gmail.com">saad.hessane@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Yes of course :</div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"></blockquote>
<div><span></span>
<div><div class="im">
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><VRTDataset rasterXSize="52436" rasterYSize="32400"><br> <SRS>...</SRS><br>
<GeoTransform>...</GeoTransform><br> <VRTRasterBand dataType="UInt16" band="1"><br> <NoDataValue>0</NoDataValue><br> <ColorInterp>Gray</ColorInterp><br>
<KernelFilteredSource><br> <SourceFilename relativeToVRT="1">1.tif</SourceFilename><br> <SourceBand>1</SourceBand><br> <SourceProperties RasterXSize="8449" RasterYSize="6429" DataType="UInt16" BlockXSize="8449" BlockYSize="1" /><br>
<SrcRect xOff="0" yOff="0" xSize="8449" ySize="6429" /><br> <DstRect xOff="0" yOff="0" xSize="10721" ySize="8158" /><br>
<NODATA>0</NODATA><br> </KernelFilteredSource><br> <KernelFilteredSource><br> <SourceFilename relativeToVRT="1">2.tif</SourceFilename><br> <SourceBand>1</SourceBand><br>
<SourceProperties RasterXSize="8772" RasterYSize="6407" DataType="UInt16" BlockXSize="8772" BlockYSize="1" /><br> <SrcRect xOff="0" yOff="0" xSize="8772" ySize="6407" /><br>
<DstRect xOff="43664" yOff="25993" xSize="8772" ySize="6407" /><br> <NODATA>0</NODATA><br> </KernelFilteredSource><br> </VRTRasterBand><br>
</VRTDataset></blockquote>
<div> </div>
</div><div>It's really simple to reproduce the problem : do a "buildvrt" on a set of raster ( > 1 raster ). Edit the vrt file and rename "ComplexSource" tag with "KernelFilteredSource". add if you want the kernel definition.</div>
<div>Now you can do a gdal_translate to write a tiff file.</div>
<div> </div>
<div>There's no error in the terminale.</div>
<div>gdal_translate crash and a windows error dialog appears saying that the the program has encountered an error and have to be close (the error is in frensh sorry for my bad english...).</div>
<div>I'm using gdal 1.9 x64 onto Win 7 x64.</div>
<div> </div>
<div> </div></div>
<div> </div></div><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">2012/4/12 Chaitanya kumar CH <span dir="ltr"><<a href="mailto:chaitanya.ch@gmail.com" target="_blank">chaitanya.ch@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Saâd,<br><br>Can you provide the vrt file causing the crash? Also, please show me the error messages you got.
<div>
<div><br><br>
<div class="gmail_quote">On Thu, Apr 12, 2012 at 7:21 PM, Saâd HESSANE <span dir="ltr"><<a href="mailto:saad.hessane@gmail.com" target="_blank">saad.hessane@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>Thank you Chaitanya for the answer,</div>
<div> </div>
<div>I do the test with the kenel element like the documentation :</div>
<div> </div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><Kernel normalized="1"><br> <Size>3</Size><br> <Coefs>0.11111111 0.11111111 0.11111111 0.11111111 0.11111111 0.11111111 0.11111111 0.11111111 0.11111111</Coefs><br>
</Kernel><br></blockquote>
<div>It's the same probleme, gdal_translate crash. But if the VRTRasterBand have just one KernelFilteredSource element, gdal_translate work fine and apply the filtre correctely.</div>
<div> </div>
<div>The poblem appears if there are more than one KernelFilteredSource element in the VRTRasterBand.</div>
<div>
<div>
<div> </div>
<div> </div>
<div> </div>
<div class="gmail_quote">2012/4/12 Chaitanya kumar CH <span dir="ltr"><<a href="mailto:chaitanya.ch@gmail.com" target="_blank">chaitanya.ch@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Saâd,<br><br>There should be a Kernel element in a KernelFilteredSource.<br>FYI, all the pixels whose kernel has a nodata pixel will be reported as a nodata pixel.<br>
<br>
<div class="gmail_quote">
<div>
<div>On Wed, Apr 11, 2012 at 3:20 PM, Saâd HESSANE <span dir="ltr"><<a href="mailto:saad.hessane@gmail.com" target="_blank">saad.hessane@gmail.com</a>></span> wrote:<br></div></div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>
<div>Hy all,<br><br>I have a VRT file generated with buildvrt utility :<br><br>
<blockquote style="BORDER-LEFT:rgb(204,204,204) 1px solid;MARGIN:0pt 0pt 0pt 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><VRTDataset rasterXSize="52436" rasterYSize="32400"><br> <SRS>...</SRS><br>
<GeoTransform>...</GeoTransform><br> <VRTRasterBand dataType="UInt16" band="1"><br> <NoDataValue>0</NoDataValue><br> <ColorInterp>Gray</ColorInterp><br>
<ComplexSource><br> <SourceFilename relativeToVRT="1">1.tif</SourceFilename><br> <SourceBand>1</SourceBand><br> <SourceProperties RasterXSize="8449" RasterYSize="6429" DataType="UInt16" BlockXSize="8449" BlockYSize="1" /><br>
<SrcRect xOff="0" yOff="0" xSize="8449" ySize="6429" /><br> <DstRect xOff="0" yOff="0" xSize="10721" ySize="8158" /><br>
<NODATA>0</NODATA><br> </ComplexSource><br> <ComplexSource><br> <SourceFilename relativeToVRT="1">2.tif</SourceFilename><br> <SourceBand>1</SourceBand><br>
<SourceProperties RasterXSize="8772" RasterYSize="6407" DataType="UInt16" BlockXSize="8772" BlockYSize="1" /><br> <SrcRect xOff="0" yOff="0" xSize="8772" ySize="6407" /><br>
<DstRect xOff="43664" yOff="25993" xSize="8772" ySize="6407" /><br> <NODATA>0</NODATA><br> </ComplexSource><br> </VRTRasterBand><br></VRTDataset><br>
</blockquote>
<div><br>It's work fine with a gdal_translate.<br>Now I want to apply a filter kernel to the VRT. I have to use the KernelFilteredSource.<br>The gdal api say that VRTKernelFilteredSource is a sub-class of VRTComplexSource. So a VRTKernelFilteredSource <b>is </b>a VRTComplexSource.<br>
But if I replace VRTComplexSource by VRTKernelFilteredSource, gdal_translate crash. This is the new VRT :<br><br>
<blockquote style="BORDER-LEFT:rgb(204,204,204) 1px solid;MARGIN:0pt 0pt 0pt 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><VRTDataset rasterXSize="52436" rasterYSize="32400"><br> <SRS>...</SRS><br>
<GeoTransform>...</GeoTransform><br> <VRTRasterBand dataType="UInt16" band="1"><br> <NoDataValue>0</NoDataValue><br> <ColorInterp>Gray</ColorInterp><br>
<KernelFilteredSource><br> <SourceFilename relativeToVRT="1">1.tif</SourceFilename><br> <SourceBand>1</SourceBand><br> <SourceProperties RasterXSize="8449" RasterYSize="6429" DataType="UInt16" BlockXSize="8449" BlockYSize="1" /><br>
<SrcRect xOff="0" yOff="0" xSize="8449" ySize="6429" /><br> <DstRect xOff="0" yOff="0" xSize="10721" ySize="8158" /><br>
<NODATA>0</NODATA><br> </KernelFilteredSource><br> <KernelFilteredSource><br> <SourceFilename relativeToVRT="1">2.tif</SourceFilename><br> <SourceBand>1</SourceBand><br>
<SourceProperties RasterXSize="8772" RasterYSize="6407" DataType="UInt16" BlockXSize="8772" BlockYSize="1" /><br> <SrcRect xOff="0" yOff="0" xSize="8772" ySize="6407" /><br>
<DstRect xOff="43664" yOff="25993" xSize="8772" ySize="6407" /><br> <NODATA>0</NODATA><br> </KernelFilteredSource><br> </VRTRasterBand><br>
</VRTDataset><br></blockquote>
<div><br>It's weird, I expected a polymorphism between VRTComplexSource and VRTKernelFilteredSource.<br>So the question : how can I apply a filter to a VRT?<br>Thank you !<br></div></div><br><br></div></div>_______________________________________________<br>
gdal-dev mailing list<br><a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><span><font color="#888888"><br>
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br><a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>
17.2416N 80.1426E<br></font></span></blockquote></div><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br><a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>
17.2416N 80.1426E<br></div></div></blockquote></div><br>
</div></div></blockquote></div><br>