[Geomedia-l] GeoTIFF: from INGR to ESRI

Alex Philippov aphilipp at spaceinfo.ru
Thu Jun 21 22:28:49 CDT 2007


Jeff,
your images was produced by ImageStation most likely (orthophotos +
Raster to UOR matrix).

Messages at the end of header report is not errors in raster.
Most probably this messages appears because of errors in LibTiff or
 Display Header. This library uses in many soft. E.g., ACDsee. 
Ed Grissom wrote: "Some applications built on top of LibTIFF
have a custom warning handler that just writes to "OutputDebugString()"
instead of popping up a message box."

Display Header can't process data block with some tags and show this
 warnings.

Tag 347 is JPEGTables uses for "JPEG quantization and/or Huffman
tables".
(Note! You convert 24 non compress images to JPEG! ;)
Tag 33918 is INGR Packet Data Tag uses as Intergraph Application
specific storage.

You can download free TIFF Tag Viewer from
   ----->   http://www.awaresystems.be/imaging/tiff/astifftagviewer.html

Nevertheless, HOW to create GeoTIFF for INGR and ESRI?!!  8-((

R.,
  Alex Philippov



-----Original Message-----
From: Jeff_Hobbs at sjwater.com [mailto:Jeff_Hobbs at sjwater.com] 
Sent: Friday, June 22, 2007 5:24 AM
To: aphilipp at spaceinfo.ru
Cc: joe.carper at intergraph.com
Subject: RE: [Geomedia-l] GeoTIFF: from INGR to ESRI

Alex,

I used the ISRU tools, NOT IRAS/C to process my TIFF (add tiles,
overviews, and compress). I used the version that comes with the
GeoMedia
Pro 6.0 install available here: C:\Program Files\GeoMedia
Professional\Program\ISRUStandalone.exe

The actual GeoTIFF came from a 3rd Party and I don't recall the vendor. 

It looks like either ISRU or ArcGIS added the 347 error as it's not in
the
original. I'm thinking it came from ISRU as I don't seem to recall these
ever being edited by ArcGIS - only viewed. Furthermore, I do know that
not
all of my images have been viewed in ArcGIS but all do seem to have the
347 error. As a result, I really think ISRU introduced that error.

The 33918 error came with the GeoTIFF so I'm not sure what created it,
but
it came with the TIFF that was loaded from the original vendor's DVD.
Since I'm almost 100% positive that the vendor did not use ArcGIS on
these
images, I can almost guarantee you that the error is not from ArcGIS. In
fact, something tells me that the original vendor used Intergraph tools
-
maybe IRAS/C to create the images. So, your theory does make some sense.

Here's the header information both from the source (before ISRU and
native
from the vendor) and its counterpart after ISRU

***ORIGINAL - BEFORE ISRU***
Output from Display Header
...
 Standard : : TIFF File
 Format : : Uncompressed 24 bit RGB data
...
Raster to UOR matrix:
 mx[ 0]=75.000000, mx[ 1]=0.000000, mx[ 2]=0.000000, mx[
3]=611300000.000000
 mx[ 4]=0.000000, mx[ 5]=75.000000, mx[ 6]=0.000000, mx[
7]=189750000.000000
 mx[ 8]=0.000000, mx[ 9]=0.000000, mx[10]=1.000000, mx[11]=0.000000
 mx[12]=0.000000, mx[13]=0.000000, mx[14]=0.000000, mx[15]=1.000000
Raster to World Matrix:
 Units: Survey Feet 
 amx[ 0]=0.750000000360112, amx[ 1]=              0, amx[ 2]=
6113000
 amx[ 3]=              0, amx[ 4]=-0.749999999978173, amx[ 5]=
1897500
        6113000 ,         1897500
6114500.00000072 ,         1897500
6114500.00000072 , 1896000.00000004
        6113000 , 1896000.00000004
Intergraph Packet Data:
  Matrix packet Type=2, Subtype=10, Size=104
Geotiff_Information:
   Version: 1
   Key_Revision: 1.0
   Tagged_Information:
      ModelTiepointTag (2,3):
         0                0                0                
         6113000          1897500          0                
      ModelPixelScaleTag (1,3):
         0.75             0.75             0                
      End_Of_Tags.
   Keyed_Information:
      GTModelTypeGeoKey (Short,1): ModelTypeProjected
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
      GeogGeodeticDatumGeoKey (Short,1): Datum_North_American_Datum_1983
      GeogEllipsoidGeoKey (Short,1): Ellipse_GRS_1980
...
GCS: 4269/NAD83
Datum: 6269/North American Datum 1983
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)
Prime Meridian: 8901/Greenwich (0.000000/  0d 0' 0.00"E)
...
TIFFReadDirectory: Warning, \\gisdb\GIS Imagery\2001 SCLARCO Orthos\9
Inch\Originals\61130_18960.tif: unknown field with tag 33918 (0x847e)
encountered.
************************************************************************
*


***AFTER ISRU***
Output from Display Header
...
 Standard : : TIFF File
 Format : : JPEG Compressed 24 bit RGB data, Q= 25
...
Raster to UOR matrix:
 mx[ 0]=75.000000, mx[ 1]=0.000000, mx[ 2]=0.000000, mx[
3]=611300000.000000
 mx[ 4]=0.000000, mx[ 5]=75.000000, mx[ 6]=0.000000, mx[
7]=189750000.000000
 mx[ 8]=0.000000, mx[ 9]=0.000000, mx[10]=1.000000, mx[11]=0.000000
 mx[12]=0.000000, mx[13]=0.000000, mx[14]=0.000000, mx[15]=1.000000
Raster to World Matrix:
 Units: Survey Feet 
 amx[ 0]=0.750000000360112, amx[ 1]=              0, amx[ 2]=
6113000
 amx[ 3]=              0, amx[ 4]=-0.749999999978173, amx[ 5]=
1897500
        6113000 ,         1897500
6114500.00000072 ,         1897500
6114500.00000072 , 1896000.00000004
        6113000 , 1896000.00000004
Intergraph Packet Data:
  Matrix packet Type=2, Subtype=10, Size=104
Geotiff_Information:
   Version: 1
   Key_Revision: 1.0
   Tagged_Information:
      ModelTiepointTag (2,3):
         0                0                0                
         6113000          1897500          0                
      ModelPixelScaleTag (1,3):
         0.75             0.75             0                
      End_Of_Tags.
   Keyed_Information:
      GTModelTypeGeoKey (Short,1): ModelTypeProjected
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
      GeogGeodeticDatumGeoKey (Short,1): Datum_North_American_Datum_1983
      GeogEllipsoidGeoKey (Short,1): Ellipse_GRS_1980
...
GCS: 4269/NAD83
Datum: 6269/North American Datum 1983
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)
Prime Meridian: 8901/Greenwich (0.000000/  0d 0' 0.00"E)
...
TIFFReadDirectory: Warning, \\gisdb\GIS Imagery\2001 SCLARCO Orthos\9
Inch\61130_18960.tif: unknown field with tag 347 (0x15b) encountered.
TIFFReadDirectory: Warning, \\gisdb\GIS Imagery\2001 SCLARCO Orthos\9
Inch\61130_18960.tif: unknown field with tag 33918 (0x847e) encountered.
***********************************************************************

--------------------------------
Jeff Hobbs
GIS Coordinator
San Jose Water Company (NYSE:SJW)
1265 South Bascom Avenue
San Jose, CA 95128
Voice - (408) 279-7833
Fax - (408) 279-7889
jeff_hobbs at sjwater.com
http://www.sjwater.com



-----Original Message-----
From: Alex Philippov [mailto:aphilipp at spaceinfo.ru] 
Sent: Thursday, June 21, 2007 18:07
To: Jeff Hobbs
Cc: joe.carper at intergraph.com
Subject: RE: [Geomedia-l] GeoTIFF: from INGR to ESRI

Jeff, thanks for sample GeoTIFF!
I opened it in GMP and Arc. That's OK!
Then I display headers (by Display Header) of your GeoTIFF and my.

Difference in GeoTIFF tags:
===================================================================
Your				My - IRASC v7.2		My - GMP v6.0
-------------------------------------------------------------------
Geotiff_Information:	Geotiff_Information:	Geotiff_Information:
   Version: 1			Version: 1			Version:
1
   Key_Revision: 1.0		Key_Revision: 1.2
Key_Revision: 1.0

unknown tag 347.			unknown tag 33918.
unknown tag 33918.
-------------------------------------------------------------------

Tag 33918 is appear after geoprocessing in I/RAS C, as I think...
Tag 347 may be support of visualization in Arc (then it is the KEY tag
:) and that's why tif opened in Arc) or appear after image processing in
third party soft.

Which soft and version was use for preparing this sample GeoTIFF?   
      ^^^^     ^^^^^^^
   
About your last test of creating GeoTIFF in GM:
Yes, I tried to load the GeoTIFF created in GMP, back into GMP.
Work fine! And never saw the error resulted by you.     

It is strange, that in your dump in general there are no data about
GeoTIFF.
Only "Raster to World Matrix".
"Raster to UOR matrix: Unspecified or All Zero Matrix" - it's OK because
this method use only MicroStation based application. 

R.,
  Alex Philippov



-----Original Message-----
From: Jeff_Hobbs at sjwater.com [mailto:Jeff_Hobbs at sjwater.com]
Sent: Friday, June 22, 2007 2:46 AM
To: aphilipp at spaceinfo.ru
Cc: joe.carper at intergraph.com
Subject: RE: [Geomedia-l] GeoTIFF: from INGR to ESRI

Alex,

I've gone through a workflow and created a GeoTIFF using GeoMedia Pro. I
then opened up the TIFF header in ISRU --> Display Header and got the
following header:

Output from Display Header
File Name:  C:\Temp\TEST_GT_FINAL.tif
File Information:
 Standard : : TIFF File
 Format : : Uncompressed 24 bit RGB data  Pixels per Line :  2000
Number
of Lines :  2000  Samples per pixel :  3  File bits per sample : 8
Actual
bits per sample : 8  Untiled file  Number of overviews :  0  Scanning
device resolution :  72  : lines/inch  Orientation :  4  : Row major
order, origin at top left  NO scan line headers : non-scannable file
Packet size (16-bit words) : 0  Free vlt space (16-bit words) :
2000000000
Free packet space (16-bit words) : 2000000000 Raster to UOR matrix:
 Unspecified or All Zero Matrix
Raster to World Matrix:
 Units: Meters
 amx[ 0]=0.228692126643231, amx[ 1]=              0, amx[
2]=1863246.84131602
 amx[ 3]=              0, amx[ 4]=-0.228692126643231, amx[
5]=578361.257368814
1863246.84131602 , 578361.257368814
1863704.22556931 , 578361.257368814
1863704.22556931 , 577903.873115527
1863246.84131602 , 577903.873115527
TIFFOpen: C:\Temp\TEST_GT_FINAL.tif: Cannot open.
failure in listgeo

You'll notice the last line shows "failure in listgeo".

I then went ahead and loaded it into GeoMedia and the image will load
into
a feature class but it will not display anything. 

Have you tried to load the GeoMedia-created GeoTIFF back into GeoMedia?
Did that work for you? 

The interesting thing is that I then looked at the GeoTIFF in both
ArcCatalog and ArcMap (9.1) and it appeared fine in both. So, don't
totally know what the problem is.

Thoughts? Feedback?

Jeff 
 
--------------------------------
Jeff Hobbs
GIS Coordinator
San Jose Water Company (NYSE:SJW)
1265 South Bascom Avenue
San Jose, CA 95128
Voice - (408) 279-7833
Fax - (408) 279-7889
jeff_hobbs at sjwater.com
http://www.sjwater.com



-----Original Message-----
From: Alex Philippov [mailto:aphilipp at spaceinfo.ru]
Sent: Thursday, June 21, 2007 14:32
To: Jeff Hobbs; geomedia-l at lists.directionsmag.com
Subject: RE: [Geomedia-l] GeoTIFF: from INGR to ESRI

Hi, Jeff!
I've usually used the ISRU too, And always generate overviews and make
tiles  (dramatically raises productivity!). But...
...the GeoTIFF tags, which have been saved in tif file by  GeoMedia Pro
v06.00.34.97 or I/RAS C v07.02, ArcGIS v9.0 cannot read.
And vice-versa. GeoTIFF tags which have been saved by ArcGIS v9.0  are
not
read by the GM v6.0.

Regards,
  Alex Philippov



-----Original Message-----
From: Jeff_Hobbs at sjwater.com [mailto:Jeff_Hobbs at sjwater.com]
Sent: Wednesday, June 20, 2007 8:52 PM
To: aphilipp at spaceinfo.ru; geomedia-l at lists.directionsmag.com
Subject: RE: [Geomedia-l] GeoTIFF: from INGR to ESRI

Alex,

I've typically used the ISRU tools (command line) to process my images.
When working with orthophotos, I've added a full set of overviews
(pyramids) and tiled them. Neither "addition" causes any sort of problem
in ArcGIS. In fact, if I recall correctly, ArcGIS will prompt you to
create pyramids when loading TIFFs into ArcGIS (or even viewing in
ArcCatalog). 

ISRU should maintain the georeferencing (GeoTiff header information)
when
creating the new file.

Joe Carper (or others) can correct me, but I believe the maximum limit
of
a TIFF is 2 gigabytes so it wouldn't be the best file format when
looking
to mosaic. It's also important to note that GeoMedia would prefer 100
small tiles as opposed to one large mosaic when working with the
imagery.

In the end, you can have a single GeoTIFF that can be referenced in both
applications - just keep in mind that you are dealing with the TIFF
physical size limitations. 

If you are looking at creating mosaics larger than 2gb, you might want
to
look at something like ER Mapper Image Compressor. It will mosaic,
compress, etc. all in one package at a very reasonable price.
Additionally
they now support the jpeg 2000 file format if you're looking to stay
away
from a proprietary wavelet compression like .ecw.

Hope this helps,
 Jeff
 
--------------------------------
Jeff Hobbs
GIS Coordinator
San Jose Water Company (NYSE:SJW)
1265 South Bascom Avenue
San Jose, CA 95128
Voice - (408) 279-7833
Fax - (408) 279-7889
jeff_hobbs at sjwater.com
http://www.sjwater.com



-----Original Message-----
From: geomedia-l-bounces at directionsmedia.net
[mailto:geomedia-l-bounces at directionsmedia.net] On Behalf  Of Alex
Philippov
Sent: Wednesday, June 20, 2007 06:32
To: geomedia-l at lists.directionsmag.com
Subject: [Geomedia-l] GeoTIFF: from INGR to ESRI

Hi, list!

What is the best way to preparing GeoTIFF in INGR environment (GM, I/RAS
C, ISRU...) for using it in ESRI's ArcGIS?
How to transmit a georeference?

Can I have a SINGLE (!) GeoTIFF file which can be correctly opened  in
both lines - INGR and ESRI?

Thx in adv!

Regards,
  Alex Philippov
  SpaceInfo
  gis_n_map at yahoo.com
  +7-(495)-2628518 (work)
  +7-(495)-9696556 (mob.)


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.4/860 - Release Date: 6/21/2007
5:53 PM
 



More information about the GeoMedia-l mailing list