# Geotiff with tfw or not?

**URL:** <https://community.thinkgeo.com/t/geotiff-with-tfw-or-not/1593>\
**Category:** WinForms\
**Created:** [February 14, 2011, 9:57am UTC](https://community.thinkgeo.com/t/geotiff-with-tfw-or-not/1593 "2011-02-14T09:57:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/a88e4f/32.png) [@Alexandre](https://community.thinkgeo.com/u/Alexandre)\
**Post date:** [February 14, 2011, 9:57am UTC](https://community.thinkgeo.com/t/geotiff-with-tfw-or-not/1593/1 "2011-02-14T09:57:49Z")

</div>

Hello&nbsp;Thinkgeo,

A&nbsp;question...

In&nbsp;november,&nbsp;i&nbsp;use&nbsp;evaluation&nbsp;and&nbsp;I&nbsp;could&nbsp;use&nbsp;geotiff&nbsp;without&nbsp;the&nbsp;tfw&nbsp;file.

Now,&nbsp;I&nbsp;use&nbsp;the&nbsp;license&nbsp;version&nbsp;and&nbsp;I&nbsp;couldn't&nbsp;use&nbsp;geotiff&nbsp;without&nbsp;the&nbsp;tfw&nbsp;file.&nbsp;I&nbsp;have&nbsp;an&nbsp;error&nbsp;:&nbsp;"The&nbsp;attribute&nbsp;file&nbsp;{0}&nbsp;doesn't&nbsp;exist.".

You&nbsp;had&nbsp;change&nbsp;anything&nbsp;or&nbsp;it's&nbsp;my&nbsp;code&nbsp;?

Best&nbsp;regards,

Alexandre

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [February 14, 2011, 11:07am UTC](https://community.thinkgeo.com/t/geotiff-with-tfw-or-not/1593/2 "2011-02-14T11:07:13Z")

</div>

Alexandre,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;The&nbsp;same&nbsp;core&nbsp;code&nbsp;is&nbsp;used&nbsp;for&nbsp;loading&nbsp;geotiff&nbsp;in&nbsp;both&nbsp;the&nbsp;evaluation&nbsp;and&nbsp;the&nbsp;full&nbsp;versions.&nbsp;It&nbsp;must&nbsp;be&nbsp;something&nbsp;in&nbsp;your&nbsp;code.&nbsp;The&nbsp;best&nbsp;would&nbsp;be&nbsp;to&nbsp;have&nbsp;from&nbsp;you&nbsp;that&nbsp;geotiff&nbsp;to&nbsp;be&nbsp;sure&nbsp;where&nbsp;the&nbsp;problem&nbsp;comes&nbsp;from.&nbsp;I&nbsp;believe&nbsp;that&nbsp;some&nbsp;GeoTiffs&nbsp;requiere&nbsp;a&nbsp;world&nbsp;file&nbsp;(tfw)&nbsp;other&nbsp;don’t.&nbsp;With&nbsp;your&nbsp;Geotiff&nbsp;available&nbsp;we&nbsp;would&nbsp;be&nbsp;able&nbsp;to&nbsp;verify&nbsp;this.&nbsp;Thank&nbsp;you.

---

<div class="post-metadata">

**Author:** ![Alexandre](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/a88e4f/32.png) [@Alexandre](https://community.thinkgeo.com/u/Alexandre)\
**Post date:** [February 15, 2011, 4:35am UTC](https://community.thinkgeo.com/t/geotiff-with-tfw-or-not/1593/3 "2011-02-15T04:35:46Z")

</div>

Val,

Here,&nbsp;the&nbsp;link&nbsp;to&nbsp;download&nbsp;my&nbsp;GeoTiff&nbsp;:&nbsp;

http:\\lamouroux.info\download\divers\Scan25.tif

Thank&nbsp;you,&nbsp;Val.

Alexandre

&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [February 15, 2011, 8:35am UTC](https://community.thinkgeo.com/t/geotiff-with-tfw-or-not/1593/4 "2011-02-15T08:35:03Z")

</div>

Alexandre,

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;feedback.  
&nbsp;  
Try&nbsp;following&nbsp;code,&nbsp;hope&nbsp;it&nbsp;helps.&nbsp;We&nbsp;did&nbsp;make&nbsp;some&nbsp;changes&nbsp;recently&nbsp;about&nbsp;the&nbsp;GeoTiffLibrary.  
&nbsp;  
`GeoTiffRasterLayer tiffRasterLayer = new GeoTiffRasterLayer(tifFileName);tiffRasterLayer.LibraryType = GeoTiffLibraryType.UnmanagedLibTiff;`  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale  
&nbsp;

---

<div class="post-metadata">

**Author:** ![Alexandre](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/a88e4f/32.png) [@Alexandre](https://community.thinkgeo.com/u/Alexandre)\
**Post date:** [February 15, 2011, 9:46am UTC](https://community.thinkgeo.com/t/geotiff-with-tfw-or-not/1593/5 "2011-02-15T09:46:42Z")

</div>

Yale,

I&nbsp;have&nbsp;already&nbsp;tried&nbsp;this&nbsp;code.&nbsp;

But&nbsp;with&nbsp;no&nbsp;success.

For&nbsp;info,&nbsp;I&nbsp;use&nbsp;version&nbsp;4.5.0.0

Thanks,

Alexandre

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [February 16, 2011, 12:07am UTC](https://community.thinkgeo.com/t/geotiff-with-tfw-or-not/1593/6 "2011-02-16T00:07:04Z")

</div>

Alexandre,&nbsp;  
  
  
  
This&nbsp;is&nbsp;a&nbsp;known&nbsp;issue&nbsp;and&nbsp;has&nbsp;been&nbsp;fixed&nbsp;in&nbsp;4.5.10.0,&nbsp;so&nbsp;please&nbsp;get&nbsp;the&nbsp;latest&nbsp;version&nbsp;(Development&nbsp;Branch)&nbsp;from&nbsp;helpdesk&nbsp;and&nbsp;have&nbsp;another&nbsp;try.&nbsp;Don't&nbsp;forget&nbsp;to&nbsp;add&nbsp;the&nbsp;following&nbsp;code&nbsp;like&nbsp;Yale&nbsp;suggested.&nbsp;  
  
  
  
` tiffRasterLayer.LibraryType = GeoTiffLibraryType.UnmanagedLibTiff;`  
  
  
  
  
Internally&nbsp;within&nbsp;GeoTiffLibrary,&nbsp;we&nbsp;have&nbsp;2&nbsp;Lib&nbsp;types,&nbsp;Unmanaged&nbsp;and&nbsp;Managed.&nbsp;Only&nbsp;UnmanagedLibTiff&nbsp;supports&nbsp;embedded&nbsp;World&nbsp;file&nbsp;so&nbsp;we&nbsp;need&nbsp;to&nbsp;set&nbsp;the&nbsp;type&nbsp;to&nbsp;it.&nbsp;  
  
  
  
Thanks,&nbsp;  
  
  
  
James&nbsp;  
  
&nbsp;

---

<div class="post-metadata">

**Author:** ![Alexandre](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/a88e4f/32.png) [@Alexandre](https://community.thinkgeo.com/u/Alexandre)\
**Post date:** [February 16, 2011, 1:55am UTC](https://community.thinkgeo.com/t/geotiff-with-tfw-or-not/1593/7 "2011-02-16T01:55:04Z")

</div>

James,

It's&nbsp;ok&nbsp;with&nbsp;the&nbsp;latest&nbsp;version&nbsp;(Development&nbsp;Branch).

Thanks&nbsp;James,&nbsp;thanks&nbsp;Val,&nbsp;thanks&nbsp;Yale

Best&nbsp;regards,

Alexandre

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [February 16, 2011, 2:47am UTC](https://community.thinkgeo.com/t/geotiff-with-tfw-or-not/1593/8 "2011-02-16T02:47:58Z")

</div>

You&nbsp;are&nbsp;always&nbsp;welcome.&nbsp;:)
