# FDO Extension

**URL:** <https://community.thinkgeo.com/t/fdo-extension/2742>\
**Category:** WPF\
**Created:** [July 22, 2010, 8:35am UTC](https://community.thinkgeo.com/t/fdo-extension/2742 "2010-07-22T08:35:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Behnam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@Behnam](https://community.thinkgeo.com/u/Behnam)\
**Post date:** [July 22, 2010, 8:35am UTC](https://community.thinkgeo.com/t/fdo-extension/2742/1 "2010-07-22T08:35:34Z")

</div>

Hi,

I&nbsp;wrote&nbsp;the&nbsp;below&nbsp;code&nbsp;to&nbsp;load&nbsp;Rasterfile(Tif,BMP,JPG,PNG,...):

`             Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();            // Show open file dialog box            Nullable<bool> result = dlg.ShowDialog();            // Process open file dialog box results            if (result == true)            {                wpfMap1.MapUnit = GeographyUnit.DecimalDegree;                GdalRasterLayer worldLayer = new GdalRasterLayer(dlg.FileName);                worldLayer.LowerThreshold = 0;                worldLayer.UpperThreshold = double.MaxValue;                worldLayer.Open();                wpfMap1.CurrentExtent = worldLayer.GetBoundingBox();                worldLayer.Close();                LayerOverlay worldOverlay = new LayerOverlay();                worldOverlay.Layers.Add(Guid.NewGuid().ToString(), worldLayer);                wpfMap1.Overlays.Add(Guid.NewGuid().ToString(), worldOverlay);                wpfMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);                try                {                    wpfMap1.Refresh();                }                catch (Exception ex)                {                    MessageBox.Show(ex.Message);                }            }`

&nbsp;

1-&nbsp;It&nbsp;just&nbsp;work&nbsp;fine&nbsp;with&nbsp;'world.tif'&nbsp;file&nbsp;that&nbsp;is&nbsp;located&nbsp;on&nbsp;'Programfil\ThinkGeo\..\sample&nbsp;data'&nbsp;folder.&nbsp;and&nbsp;for&nbsp;the&nbsp;other&nbsp;files&nbsp;the&nbsp;control&nbsp;just&nbsp;show&nbsp;'Exception&nbsp;has&nbsp;been&nbsp;thrown&nbsp;by&nbsp;the&nbsp;target&nbsp;of&nbsp;an&nbsp;i...'(just&nbsp;this&nbsp;part&nbsp;of&nbsp;the&nbsp;message&nbsp;is&nbsp;visable).

2-&nbsp;It&nbsp;seems&nbsp;that&nbsp;Map&nbsp;Suit&nbsp;explorer&nbsp;has&nbsp;this&nbsp;problem&nbsp;too!

3-I&nbsp;change&nbsp;the&nbsp;'Procesors&nbsp;Affinity'&nbsp;too&nbsp;(only&nbsp;one&nbsp;CPU&nbsp;selected),&nbsp;but&nbsp;the&nbsp;problem&nbsp;did&nbsp;not&nbsp;solve.

4-I&nbsp;could&nbsp;not&nbsp;find&nbsp;any&nbsp;sample&nbsp;project/code&nbsp;that&nbsp;shows&nbsp;how&nbsp;we&nbsp;can&nbsp;open&nbsp;FDO&nbsp;Extension&nbsp;files&nbsp;(Except&nbsp;Tab&nbsp;Extension).&nbsp;it&nbsp;will&nbsp;be&nbsp;great&nbsp;if&nbsp;you&nbsp;create&nbsp;sample&nbsp;project&nbsp;at&nbsp;least&nbsp;for&nbsp;very&nbsp;important&nbsp;extensions&nbsp;like:

CSV,&nbsp;TIFF-LZW,&nbsp;Raster&nbsp;(Various&nbsp;image&nbsp;files),&nbsp;DXF,&nbsp;MID/MIF,&nbsp;NTF

&nbsp;

Regards,

Ben

---

<div class="post-metadata">

**Author:** ![Howard](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/h/90ced4/32.png) [@Howard](https://community.thinkgeo.com/u/Howard)\
**Post date:** [July 23, 2010, 12:18am UTC](https://community.thinkgeo.com/t/fdo-extension/2742/2 "2010-07-23T00:18:30Z")

</div>

Hi&nbsp;Ben,  
  
&nbsp;  
  
Theoretically&nbsp;it’ll&nbsp;work&nbsp;with&nbsp;all&nbsp;the&nbsp;supported&nbsp;file&nbsp;formats&nbsp;that&nbsp;are&nbsp;listed&nbsp;in&nbsp;[gis.thinkgeo.com/tabid/143/a...fault.aspx](http://gis.thinkgeo.com/tabid/143/afv/topic/aff/20/aft/6203/Default.aspx)  
  
&nbsp;  
  
FDO&nbsp;Extension&nbsp;is&nbsp;based&nbsp;on&nbsp;a&nbsp;third-party&nbsp;open-source&nbsp;code&nbsp;library,&nbsp;and&nbsp;we&nbsp;simply&nbsp;tested&nbsp;it&nbsp;because&nbsp;we&nbsp;don’t&nbsp;have&nbsp;all&nbsp;the&nbsp;file&nbsp;formats.&nbsp;It&nbsp;will&nbsp;be&nbsp;great&nbsp;that&nbsp;you&nbsp;can&nbsp;send&nbsp;us&nbsp;the&nbsp;data&nbsp;that&nbsp;you&nbsp;are&nbsp;using,&nbsp;and&nbsp;we&nbsp;can&nbsp;test&nbsp;it&nbsp;for&nbsp;you.  
  
&nbsp;  
  
Looking&nbsp;forward&nbsp;your&nbsp;feedback;&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know&nbsp;if&nbsp;you&nbsp;have&nbsp;more&nbsp;queries.  
  
  
  
Thanks,  
  
Howard

---

<div class="post-metadata">

**Author:** ![Behnam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@Behnam](https://community.thinkgeo.com/u/Behnam)\
**Post date:** [July 23, 2010, 4:46am UTC](https://community.thinkgeo.com/t/fdo-extension/2742/3 "2010-07-23T04:46:51Z")

</div>

-

---

<div class="post-metadata">

**Author:** ![Howard](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/h/90ced4/32.png) [@Howard](https://community.thinkgeo.com/u/Howard)\
**Post date:** [July 25, 2010, 9:06pm UTC](https://community.thinkgeo.com/t/fdo-extension/2742/4 "2010-07-25T21:06:25Z")

</div>

Hi&nbsp;Ben,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;sorry&nbsp;that&nbsp;I’m&nbsp;not&nbsp;quite&nbsp;understand&nbsp;your&nbsp;meaning&nbsp;for&nbsp;the&nbsp;last&nbsp;reply;&nbsp;you&nbsp;know&nbsp;there&nbsp;are&nbsp;many&nbsp;posts&nbsp;or&nbsp;tickets&nbsp;we&nbsp;need&nbsp;to&nbsp;respond.&nbsp;We&nbsp;cannot&nbsp;spend&nbsp;too&nbsp;much&nbsp;time&nbsp;on&nbsp;one&nbsp;post&nbsp;such&nbsp;as&nbsp;making&nbsp;complicated&nbsp;sample,&nbsp;figuring&nbsp;out&nbsp;an&nbsp;issue&nbsp;without&nbsp;information&nbsp;etc.&nbsp;So&nbsp;sorry&nbsp;for&nbsp;the&nbsp;inconvenience.&nbsp;If&nbsp;your&nbsp;requirement&nbsp;is&nbsp;urgent,&nbsp;you&nbsp;can&nbsp;also&nbsp;contact&nbsp;[support@thinkgeo.com](mailto:support@thinkgeo.com)&nbsp;about&nbsp;this.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;and&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;have&nbsp;more&nbsp;queries.&nbsp;  
&nbsp;Howard

---

<div class="post-metadata">

**Author:** ![Behnam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@Behnam](https://community.thinkgeo.com/u/Behnam)\
**Post date:** [July 26, 2010, 4:09am UTC](https://community.thinkgeo.com/t/fdo-extension/2742/5 "2010-07-26T04:09:26Z")

</div>

Many&nbsp;thanks&nbsp;for&nbsp;your&nbsp;answer,&nbsp;  
&nbsp;I&nbsp;checked&nbsp;it&nbsp;for&nbsp;Raster(BMP,Gif,Tif,PNG)&nbsp;,MIF&nbsp;and&nbsp;it’s&nbsp;working&nbsp;fine.&nbsp;  
&nbsp;I’ll&nbsp;check&nbsp;it&nbsp;for&nbsp;NTF,DXF,&nbsp;GML&nbsp;.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;Ben

---

<div class="post-metadata">

**Author:** ![Howard](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/h/90ced4/32.png) [@Howard](https://community.thinkgeo.com/u/Howard)\
**Post date:** [July 26, 2010, 7:45pm UTC](https://community.thinkgeo.com/t/fdo-extension/2742/6 "2010-07-26T19:45:45Z")

</div>

Hi&nbsp;Ben,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;understanding.&nbsp;Please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;have&nbsp;any&nbsp;queries.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Howard
