[gdal-dev] Problem in importing to Google Earth a nitf image
converted from a tif image by gdal_translate
mohwawang
mohwawang at yahoo.com
Wed Apr 8 16:31:40 EDT 2009
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 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:
<?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>out.ntf</name>
<Icon>
<href>out.ntf</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>
Best Regards,
Mo Wang
More information about the gdal-dev
mailing list