<div dir="ltr"><div>Dear lists.<br>I want Tiled Map Service with openlayers.</div>
<div>There are 30 GigaBytes datasets(136 tif files from aerial photos).</div>
<div>For the first time, I use gdal_merge.py in order to make a single merged file.</div>
<div>Next, I use gdal2tiles.py to generate tiled map images with openlayers.</div>
<div>However, it doesn't seem reasonnable to generate a single merged file.</div>
<div>Thus, I started using gdal_vrtmerge.py.</div>
<div>In my case, I downloaded FWTools226.exe and installed it in window xp.</div>
<div>but, I can't find gdal_vrtmerge.py file. so I downloaded it from the Internet.</div>
<div>when I run gdal_vrtmerge.py, I encounter an error. </div>
<div>The error message is that </div>
<div> </div>
<div> Traceback (most recent call last):<br> File "gdal_vrtmerge.py", line 27, in ?<br> from osgeo import gdal<br> ImportError: No module named osgeo</div>
<div> </div>
<div>So, I chaned gdal_vrtmerge.py :from osgeo import gdal => import gdal</div>
<div>After changing it, It runs well.</div>
<div>For example, python gdal_vrtmerge.py -o C:\raster\tmp.vrt -separate --optfile C:\raster\tilelist.txt</div>
<div>Next, I run gdal2tiles.py with tmp.vrt.</div>
<div>For instance, python gdal2tiles.py -title "test" -publishurl <a href="http://myserver/geo/osmap/" target="_blank">http://myserver/geo/osmap/</a> -nogooglemaps -nokml -v C:\raster\tmp.vrt C:\tmp\raster2</div>
<div> </div>
<div>After running gdal2tiles.py, I can get tiled images.</div>
<div>But the problem is that when I look the images, the color of images are changed from color to black and white.</div>
<div>Why didn't tiled images preserve their orginal color?</div>
<div>How to use gdal_vrtmerge.py? </div>
<div>If I use gdal_vrtmerge.py without -separate parameter,</div>
<div>e.g. python gdal_vrtmerge.py -o C:\raster\tmp.vrt -separate --optfile C:\raster\tilelist.txt</div>
<div>an error take place : </div>
<div> C:\GEOFOSS\FWTools2.2.6\bin>python gdal_vrtmerge.py -o C:\raster\tmp.vrt --optfile C:\raster\tilelist.txt<br> Traceback (most recent call last):<br> File "gdal_vrtmerge.py", line 293, in ?<br>
t_fh.write('\t\t<NoDataValue>%f</NoDataValue>\n' %<br> TypeError: float argument required</div>
<div> </div>
<div>Best regards,<br>Jeong.</div></div>