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

Roger André randre at gmail.com
Thu Apr 9 00:44:40 EDT 2009


Granted, I haven't tried V 5 yet, but your quote also states, "Google Earth
Pro or EC".  Are you using one of those versions of the client?  In any
case, if the file opens in OpenEV, chances are good that the .ntf generated
by gdal is ok, and that there is some sort of problem with how Google Earth
is reading it.  Have you tried emailing the KML support list as well?
--

On Wed, Apr 8, 2009 at 8:51 PM, mohwawang <mohwawang at yahoo.com> wrote:

>
> 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 support the following types of GIS imagery:
>
>    * TIFF (.tif), including GeoTiff and compressed TIFF files
>    * National Imagery Transmission Format (.ntf)
>    * Erdas Imagine Images (.img)
>
> In addition, you can also import the following images. Because they do not
> contain projection information, you must manually edit their coordinates for
> correct positioning:
>
>    * Atlantis MFF Raster (.hdr)
>    * PCIDSK Database File (.pix)
>    * Portable Pixmap Format (.pnm)
>    * Device Independent Bitmap (.bmp)
>
> Note - All imagery files must contain the correct projection information in
> order to be accurately re-projected by the Google Earth software.]
>
>
> Mo
>
> --- On Wed, 4/8/09, Roger André <randre at gmail.com> wrote:
>
> > From: Roger André <randre at gmail.com>
> > Subject: Re: [gdal-dev] Problem in importing to Google Earth a nitf image
>  converted from a tif image by gdal_translate
> > To: "mohwawang" <mohwawang at yahoo.com>
> > Cc: "gdal-dev at lists.osgeo.org" <gdal-dev at lists.osgeo.org>
> > Date: Wednesday, April 8, 2009, 10:45 PM
> > See
> http://earth.google.com/userguide/v4/ug_imageoverlays.html#requirements,
> > I don't believe the "NITF (rw+): National Imagery
> > Transmission Format" is supported by Google Earth.
> >
> >
> > Roger
> > --
> >
> > On Wed, Apr 8, 2009 at 3:27 PM,
> > mohwawang <mohwawang at yahoo.com>
> > wrote:
> >
> >
> >
> > 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 at 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 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 were ok to OpenEV.
> >
> >
> >
> > With a simple Google Earth kml file(specifying the
> > LanLonBox)(printed below) I could import the in.tif to
> > Google Earth viewer to the right geo-location. So in.tif was
> > ok to GE.
> >
> >
> >
> > However, after replacing the image file name from in.tif to
> > out.ntf in the same kml file (printed below) I could not
> > import the out.ntf to Google Earth viewer (shown as a big
> > red cross in a big red rectangle at the geo-location in the
> > GE viewer). So out.ntf was not ok to GE. Any ideal about
> > what might cause the problem? Was the use of gdal_translate
> > wrong or missing some options? I tried not to use -co
> > ICRODS=G but I got the same problem. Thank you.
> >
> >
> >
> >
> > printed kml for in.tif:
> >
> >
> >
> > <?xml version="1.0"
> > encoding="UTF-8"?>
> >
> > <kml xmlns="http://www.opengis.net/kml/2.2"
> >
> > xmlns:gx="http://www.google.com/kml/ext/2.2"
> >
> > xmlns:kml="http://www.opengis.net/kml/2.2"
> >
> > xmlns:atom="http://www.w3.org/2005/Atom">
> >
> > <GroundOverlay>
> >
> >   <description>
> >
> > *** Meta-Data ***
> >
> >     Lat = 42.808863
> >
> >   </description>
> >
> >     <name>in.tif</name>
> >
> >     <Icon>
> >
> >        <href>in.tif</href>
> >
> >
> > <viewBoundScale>0.75</viewBoundScale>
> >
> >     </Icon>
> >
> >       <LatLonBox>
> >
> >          <north>42.8093748999134</north>
> >
> >          <south>42.8082925732318</south>
> >
> >          <east>-70.887525562763</east>
> >
> >          <west>-70.8894939447889</west>
> >
> >          <rotation>-95.909027</rotation>
> >
> >       </LatLonBox>
> >
> > </GroundOverlay>
> >
> > </kml>
> >
> >
> >
> > printed kml for out.ntf: same as in.tif
> > except:
> >
> >
> >
> >     <name>out.ntf</name>
> >
> >     <Icon>
> >
> >        <href>out.ntf</href>
> >
> >
> > <viewBoundScale>0.75</viewBoundScale>
> >
> >     </Icon>
> >
> >
> >
> > Best Regards,
> >
> >
> >
> > Mo Wang
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > gdal-dev mailing list
> >
> > gdal-dev at lists.osgeo.org
> >
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
> >
> >
> >
> >
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090408/beff8690/attachment.html


More information about the gdal-dev mailing list