Hi Mo,<br><br>Thanks for that pointer on the differences between GE Layers and Places.  I&#39;ll be sure to take a close look at those links.  I&#39;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.<br>
<br>I&#39;m curious, is your goal to view the NITF format specifically and to have GE read the internal georeferencing info, or is it just to view the image in GE?  It sounds like you have already accomplished the latter using a KML Ground Overlay and a tif, a method which has also worked reliably for me in the past as well. I&#39;ve also had success with PNG and JPEG format files.  <br>
<br>Since in your .nitf test the georeferencing was supplied by the KML file, the red &quot;X&quot; you are getting implies to me that the image format isn&#39;t being correctly interpreted by GE for some reason.  The fact that Envi chokes on it as well does seem to point to gdal as a possible culprit, although the NITF format is not one that I have seen very much.  Have you tried importing the GeoTIFF version of your file directly into GE Pro as well?  Also, do you have a .nitf file that was not created by gdal, and which you could use to test GE via the &quot;Add Image Overlay&quot; tool?<br>
<br>Roger<br>--<br><br><div class="gmail_quote">On Thu, Apr 9, 2009 at 8:37 AM, mohwawang <span dir="ltr">&lt;<a href="mailto:mohwawang@yahoo.com">mohwawang@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Roger,<br>
<br>
I&#39;m using Google Earth Pro 5.0. Thank you for the suggestions.<br>
<br>
Google Earth Pro 4.0 also supports importing NITF:<br>
<a href="http://earth.google.com/userguide/v4/ug_importdata.html" target="_blank">http://earth.google.com/userguide/v4/ug_importdata.html</a> that is for importing your data (including vector data and imagery data) to the Places of Google Earth while <a href="http://earth.google.com/userguide/v4/ug_imageoverlays.html" target="_blank">http://earth.google.com/userguide/v4/ug_imageoverlays.html</a> is for &quot;Using Image Overlays and 3D Models&quot;.<br>

<br>
See <a href="http://earth.google.com/userguide/v4/ug_layers.html#layers_vs_places" target="_blank">http://earth.google.com/userguide/v4/ug_layers.html#layers_vs_places</a> for the difference between Layers and Places in GE.<br>

<br>
This is the first time I&#39;m importing geo-referenced images to Google Earth Pro and so far I don&#39;t have much luck. As I said that I could not use GE to import the NITF images converted from gdal_translate (with EPSG:4326 that is the same projection, Simple Cylindrical projection, or known as Lat/Lon WGS84 that GE uses). So I tried to narrow down the problem. This time I imported to GE an native Erdas IMAGINE image (.img) (with UTM projection that GE supports too) but still failed. The later test case has nothing to do with gdal and is purely a question for GE. That .img image can be opened by both IMAGINE and OpenEV.<br>

<br>
The NITF image (converted by gdal_translate) not just could not be opened by GE it could not be opened by ENVI 4.1 either. It can be opened by OpenEV (tightly related to gdal) though. So it could be a problem in either gdal_translate or ENVI (I doubt though) or both.<br>

<br>
Thanks.<br>
<br>
Mo<br>
<div class="im"><br>
--- On Thu, 4/9/09, Roger André &lt;<a href="mailto:randre@gmail.com">randre@gmail.com</a>&gt; wrote:<br>
<br>
&gt; From: Roger André &lt;<a href="mailto:randre@gmail.com">randre@gmail.com</a>&gt;<br>
&gt; Subject: Re: [gdal-dev] Problem in importing to Google Earth a nitf image  converted from a tif image by gdal_translate<br>
&gt; To: &quot;mohwawang&quot; &lt;<a href="mailto:mohwawang@yahoo.com">mohwawang@yahoo.com</a>&gt;<br>
&gt; Cc: &quot;<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>&quot; &lt;<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>&gt;<br>
</div>&gt; Date: Thursday, April 9, 2009, 12:44 AM<br>
<div><div></div><div class="h5">&gt; Granted, I haven&#39;t tried V 5 yet,<br>
&gt; but your quote also states, &quot;Google Earth Pro or<br>
&gt; EC&quot;.  Are you using one of those versions of the<br>
&gt; client?  In any case, if the file opens in OpenEV, chances<br>
&gt; are good that the .ntf generated by gdal is ok, and that<br>
&gt; there is some sort of problem with how Google Earth is<br>
&gt; reading it.  Have you tried emailing the KML support list<br>
&gt; as well?<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; On Wed, Apr 8, 2009 at 8:51 PM,<br>
&gt; mohwawang &lt;<a href="mailto:mohwawang@yahoo.com">mohwawang@yahoo.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Google Earth 5.0 supports NITF see<br>
&gt;<br>
&gt; <a href="http://earth.google.com/intl/en/userguide/v5/ug_importdata.html" target="_blank">http://earth.google.com/intl/en/userguide/v5/ug_importdata.html</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; [Importing Imagery<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; You can open GIS imagery files in Google Earth Pro or EC<br>
&gt; and have the files correctly projected over the proper map<br>
&gt; coordinates in the 3D viewer. Google Earth Pro and EC<br>
&gt; support the following types of GIS imagery:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     * TIFF (.tif), including GeoTiff and compressed TIFF<br>
&gt; files<br>
&gt;<br>
&gt;     * National Imagery Transmission Format (.ntf)<br>
&gt;<br>
&gt;     * Erdas Imagine Images (.img)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; In addition, you can also import the following images.<br>
&gt; Because they do not contain projection information, you must<br>
&gt; manually edit their coordinates for correct positioning:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     * Atlantis MFF Raster (.hdr)<br>
&gt;<br>
&gt;     * PCIDSK Database File (.pix)<br>
&gt;<br>
&gt;     * Portable Pixmap Format (.pnm)<br>
&gt;<br>
&gt;     * Device Independent Bitmap (.bmp)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Note - All imagery files must contain the correct<br>
&gt; projection information in order to be accurately<br>
&gt; re-projected by the Google Earth software.]<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Mo<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --- On Wed, 4/8/09, Roger André &lt;<a href="mailto:randre@gmail.com">randre@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; From: Roger André &lt;<a href="mailto:randre@gmail.com">randre@gmail.com</a>&gt;<br>
&gt;<br>
&gt; &gt; Subject: Re: [gdal-dev] Problem in importing to Google<br>
&gt; Earth a nitf image  converted from a tif image by<br>
&gt; gdal_translate<br>
&gt;<br>
&gt; &gt; To: &quot;mohwawang&quot; &lt;<a href="mailto:mohwawang@yahoo.com">mohwawang@yahoo.com</a>&gt;<br>
&gt;<br>
&gt; &gt; Cc: &quot;<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>&quot;<br>
&gt; &lt;<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>&gt;<br>
&gt;<br>
&gt; &gt; Date: Wednesday, April 8, 2009, 10:45 PM<br>
&gt;<br>
&gt; &gt; See <a href="http://earth.google.com/userguide/v4/ug_imageoverlays.html#requirements" target="_blank">http://earth.google.com/userguide/v4/ug_imageoverlays.html#requirements</a>,<br>
&gt;<br>
&gt; &gt; I don&#39;t believe the &quot;NITF (rw+): National<br>
&gt; Imagery<br>
&gt;<br>
&gt; &gt; Transmission Format&quot; is supported by Google<br>
&gt; Earth.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Roger<br>
&gt;<br>
&gt; &gt; --<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; On Wed, Apr 8, 2009 at 3:27 PM,<br>
&gt;<br>
&gt; &gt; mohwawang &lt;<a href="mailto:mohwawang@yahoo.com">mohwawang@yahoo.com</a>&gt;<br>
&gt;<br>
&gt; &gt; wrote:<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Hi all,<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; I&#39;m sorry that this is the third time I tried to<br>
&gt; send<br>
&gt;<br>
&gt; &gt; this message out because I myself didn&#39;t get the<br>
&gt; first<br>
&gt;<br>
&gt; &gt; two through <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt;<br>
&gt; &gt; so I thought others might not get it either.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; I used gdal_translate to convert a tif image to a<br>
&gt; nitf<br>
&gt;<br>
&gt; &gt; image as:<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; &gt;gdal_translate -of nitf in.tif out.ntf -co<br>
&gt; ICORDS=G<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Input file size is 561, 420<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; 0...10...20...30...40...50...60...70...80...90...100<br>
&gt; -<br>
&gt;<br>
&gt; &gt; done.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; I can display both in.tif and out.ntf with OpenEV. So<br>
&gt; both<br>
&gt;<br>
&gt; &gt; in.tif and out.ntf were ok to OpenEV.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; With a simple Google Earth kml file(specifying the<br>
&gt;<br>
&gt; &gt; LanLonBox)(printed below) I could import the in.tif<br>
&gt; to<br>
&gt;<br>
&gt; &gt; Google Earth viewer to the right geo-location. So<br>
&gt; in.tif was<br>
&gt;<br>
&gt; &gt; ok to GE.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; However, after replacing the image file name from<br>
&gt; in.tif to<br>
&gt;<br>
&gt; &gt; out.ntf in the same kml file (printed below) I could<br>
&gt; not<br>
&gt;<br>
&gt; &gt; import the out.ntf to Google Earth viewer (shown as a<br>
&gt; big<br>
&gt;<br>
&gt; &gt; red cross in a big red rectangle at the geo-location<br>
&gt; in the<br>
&gt;<br>
&gt; &gt; GE viewer). So out.ntf was not ok to GE. Any ideal<br>
&gt; about<br>
&gt;<br>
&gt; &gt; what might cause the problem? Was the use of<br>
&gt; gdal_translate<br>
&gt;<br>
&gt; &gt; wrong or missing some options? I tried not to use -co<br>
&gt;<br>
&gt; &gt; ICRODS=G but I got the same problem. Thank you.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; printed kml for in.tif:<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; &lt;?xml version=&quot;1.0&quot;<br>
&gt;<br>
&gt; &gt; encoding=&quot;UTF-8&quot;?&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; &lt;kml xmlns=&quot;<a href="http://www.opengis.net/kml/2.2" target="_blank">http://www.opengis.net/kml/2.2</a>&quot;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; xmlns:gx=&quot;<a href="http://www.google.com/kml/ext/2.2" target="_blank">http://www.google.com/kml/ext/2.2</a>&quot;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; xmlns:kml=&quot;<a href="http://www.opengis.net/kml/2.2" target="_blank">http://www.opengis.net/kml/2.2</a>&quot;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; xmlns:atom=&quot;<a href="http://www.w3.org/2005/Atom" target="_blank">http://www.w3.org/2005/Atom</a>&quot;&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; &lt;GroundOverlay&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;   &lt;description&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; *** Meta-Data ***<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;     Lat = 42.808863<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;   &lt;/description&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;     &lt;name&gt;in.tif&lt;/name&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;     &lt;Icon&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;        &lt;href&gt;in.tif&lt;/href&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;       <br>
&gt;<br>
&gt; &gt; &lt;viewBoundScale&gt;0.75&lt;/viewBoundScale&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;     &lt;/Icon&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;       &lt;LatLonBox&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;         <br>
&gt; &lt;north&gt;42.8093748999134&lt;/north&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;         <br>
&gt; &lt;south&gt;42.8082925732318&lt;/south&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;         <br>
&gt; &lt;east&gt;-70.887525562763&lt;/east&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;         <br>
&gt; &lt;west&gt;-70.8894939447889&lt;/west&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;         <br>
&gt; &lt;rotation&gt;-95.909027&lt;/rotation&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;       &lt;/LatLonBox&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; &lt;/GroundOverlay&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; &lt;/kml&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; printed kml for out.ntf: same as in.tif<br>
&gt;<br>
&gt; &gt; except:<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;     &lt;name&gt;out.ntf&lt;/name&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;     &lt;Icon&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;        &lt;href&gt;out.ntf&lt;/href&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;       <br>
&gt;<br>
&gt; &gt; &lt;viewBoundScale&gt;0.75&lt;/viewBoundScale&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;     &lt;/Icon&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Best Regards,<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Mo Wang<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; _______________________________________________<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; gdal-dev mailing list<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>