Re: [gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate

2009-04-14 Thread Vincent Schut
Hi Mo, mohwawang wrote: Vincent, I tried gdalwarp as: gdalwarp in.tif out.tif ERROR 1: Unable to compute a transformation between pixel/line and georeferenced coordinate for in.tif. There is no affine transformation and no GCPs. I guess gdalwarp needs GCPs in in.tif that does not

Re: [gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate

2009-04-10 Thread Vincent Schut
mohwawang wrote: Hi Roger, gdalinfo gave me only info about coordinates of GCPs but I doubt that are much useful to GE. Any other way (other than using GCP in gdal_translate) to embed the coordinates info to the GeoTIFF file? Mo, I doubt GE will read and use your gcp's. And as there is

Re: [gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate

2009-04-10 Thread mohwawang
Vincent, I tried gdalwarp as: gdalwarp in.tif out.tif ERROR 1: Unable to compute a transformation between pixel/line and georeferenced coordinate for in.tif. There is no affine transformation and no GCPs. I guess gdalwarp needs GCPs in in.tif that does not have GCPs in it. I also tried

Re: [gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate

2009-04-09 Thread mohwawang
Roger, I'm using Google Earth Pro 5.0. Thank you for the suggestions. Google Earth Pro 4.0 also supports importing NITF: http://earth.google.com/userguide/v4/ug_importdata.html that is for importing your data (including vector data and imagery data) to the Places of Google Earth while

Re: [gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate

2009-04-09 Thread Roger André
Hi Mo, Thanks for that pointer on the differences between GE Layers and Places. I'll be sure to take a close look at those links. I've had occasion in the past to view georeferenced imagery in Google Earth, much of it created or altered by gdal in some way, so this topic interests me. I'm

Re: [gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate

2009-04-09 Thread Roger André
Hi Mo, What is the gdalinfo output for the GeoTIFF that you created? If you didn't get an error when you tried to load it in GE, perhaps the georeferencing in the image doesn't quite match what you specified in your KML. Roger -- On Thu, Apr 9, 2009 at 1:21 PM, mohwawang mohwaw...@yahoo.com

[gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate

2009-04-08 Thread mohwawang
Hi all, I used gdal_translate to convert a tif image to a nitf image as: gdal_translate -of nitf in.tif out.ntf -co ICORDS=G Input file size is 561, 420 0...10...20...30...40...50...60...70...80...90...100 - done. I can display both in.tif and out.ntf with OpenEV. So both in.tif and out.ntf

[gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate

2009-04-08 Thread mohwawang
Hi all, I'm sorry that this is the third time I tried to send this message out because I myself didn't get the first two through gdal-dev@lists.osgeo.org so I thought others might not get it either. I used gdal_translate to convert a tif image to a nitf image as: gdal_translate -of nitf

Re: [gdal-dev] Problem in importing to Google Earth a nitf image converted from a tif image by gdal_translate

2009-04-08 Thread mohwawang
Google Earth 5.0 supports NITF see http://earth.google.com/intl/en/userguide/v5/ug_importdata.html [Importing Imagery You can open GIS imagery files in Google Earth Pro or EC and have the files correctly projected over the proper map coordinates in the 3D viewer. Google Earth Pro and EC