You are here: > ESRI Forums > arcgis engine forums > Thread Replies

ArcGIS Engine Forums

ArcGIS Engine: ArcObjects COM API forum

Add Data   Sérgio Fernandes Sep 25, 2009
Re: Add Data   Christian Degrassi Sep 25, 2009
Re: Add Data   Sérgio Fernandes Sep 26, 2009
Re: Add Data   Christian Degrassi Sep 26, 2009
Re: Add Data   Sérgio Fernandes Sep 26, 2009
Re: Add Data   Christian Degrassi Sep 26, 2009
Re: Add Data   Sérgio Fernandes Sep 26, 2009
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Add Data 
Author Sérgio Fernandes 
Date Sep 25, 2009 
Message Good night,

I have a problem and I hope you can help me. I added on the toolbar the generic command "add data". Everything is working and when I click the Add Data button it opens the dialog box.
But now, how I can add a raster dataset to the map? I see the raster dataset as a folder!

Thanks 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Add Data 
Author Christian Degrassi 
Date Sep 25, 2009 
Message Hi,

are you using a IGxDialog?
You can set different filters that will allow you to see each or multiple datasets with the proper icon

Cheers

http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriCatalogUI/IGxDialog.htm

http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriCatalog/IGxObjectFilterCollection.htm 
  Christian Degrassi, MA
Senior GIS Analyst 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Add Data 
Author Sérgio Fernandes 
Date Sep 26, 2009 
Message Hi,

first of all thank you for the quick reply. I didn't use a IGxDialog because I read on another posted message (http://forums.esri.com/Thread.asp?c=159&f=1708&t=141600#491172) that it would not work on a machine that have just ArcEngine runtime on it. Do you know if there is another way to solve my problem?

Thank you once again,
 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Add Data 
Author Christian Degrassi 
Date Sep 26, 2009 
Message Hi,

Sorry, I did not know you were working in Engine.
A little documentation search shows that if you use the ControlsAddDataCommand in Engine you'll be able to add raster data to your project.

http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriControls/ControlsAddDataCommand.htm

Cheers 
  Christian Degrassi, MA
Senior GIS Analyst 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Add Data 
Author Sérgio Fernandes 
Date Sep 26, 2009 
Message It's true. I already had read that article but i don't know how i can add geodatabase data. Let me show you my problem with images.
In the first figure i selected geodatabases but elevation and landuse keep looking folders instead raster datasets. In the second figure i selected rasters but this option not let me open datasets.

Cheers 
  add_data_forum.pdf (opens in new window)
 
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Add Data 
Author Christian Degrassi 
Date Sep 26, 2009 
Message Hi,

did you try to set the the type option to "all supported"?

Cheers 
  Christian Degrassi, MA
Senior GIS Analyst 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Add Data 
Author Sérgio Fernandes 
Date Sep 26, 2009 
Message Hi,

i think i've tried everything. I start to believe that it's not possible, at least, in a simple way. Maybe just with the IGxDialog!

Thank you.