Customer Service | Training | Contact Us
You are here: Home > User Forums > arcgis desktop discussion forums > Thread Replies

ArcGIS Desktop Discussion Forums

ArcGIS Desktop - ArcCatalog Metadata forum

Meatadata viewer from Arcmap   Jagadeesh Bhangari Sep 19, 2003
Re: Meatadata viewer from Arcmap   John Waterman Sep 19, 2003
Re: Meatadata viewer from Arcmap   john banning Sep 19, 2003
Re: Meatadata viewer from Arcmap   john banning Sep 19, 2003
Re: Meatadata viewer from Arcmap   Jagadeesh Bhangari Sep 22, 2003
Re: Meatadata viewer from Arcmap   Jagadeesh Bhangari Sep 22, 2003
Re: Meatadata viewer from Arcmap   john banning Sep 23, 2003
Re: Meatadata viewer from Arcmap   Jagadeesh Bhangari Sep 24, 2003
Re: Meatadata viewer from Arcmap   john banning Sep 24, 2003
Re: Meatadata viewer from Arcmap   Jagadeesh Bhangari Sep 24, 2003
Re: Meatadata viewer from Arcmap   Fernando Gomes Sep 26, 2003
Re: Meatadata viewer from Arcmap   john banning Sep 26, 2003
Re: Metadata viewer from Arcmap   Fernando Gomes Sep 26, 2003
Re: Metadata viewer from Arcmap   Fernando Gomes Oct 01, 2003
Re: Metadata viewer from Arcmap   Hugh Phillips Oct 03, 2003
Re: Metadata viewer from Arcmap   Fernando Gomes Oct 03, 2003
Re: Meatadata viewer from Arcmap   m. vogt Jul 09, 2004
Re: Meatadata viewer from Arcmap   john banning Jul 12, 2004
Re: Meatadata viewer from Arcmap   Michael Heimer Jul 12, 2004
Re: Meatadata viewer from Arcmap   john banning Jul 13, 2004
Re: Meatadata viewer from Arcmap   Michael Heimer Jul 13, 2004
Re: Meatadata viewer from Arcmap   John Bocchino Oct 14, 2004
Re: Meatadata viewer from Arcmap   Dnyanada Bhide Feb 23, 2005
Re: Metadata viewer from Arcmap   Amanda S Aug 04, 2005
Re: Metadata viewer from Arcmap   Amanda S Aug 04, 2005
Report Inappropriate Content • Top • Print • Reply    
Subject Meatadata viewer from Arcmap 
Author Jagadeesh Bhangari 
Date Sep 19, 2003 
Message Friends,

Is any tool/script available to view the metadata of a layer in Arcmap? This would be of great help which will reduce switching b/w arcmap and arccatalog.

Thank You
Jagadeesh 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author John Waterman 
Date Sep 19, 2003 
Message Type in "Metadata TOC" in your ArcObjects Developer Help. There is a sample called "Displaying Metadata in ArcMap's table of contents". The sample is located at:
C:\arcgis\arcexe83\ArcObjects Developer Kit\Samples\Metadata\Tools\Metadata in ArcMap TOC

You could stick more metadata elements in a dockable window if needed...hopefully, this gets you started...

John 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author john banning 
Date Sep 19, 2003 
Message Jagadeesh and John,
Here is a sample that I developed some time ago. I believe it will accomplish what you are looking for. It imbeds a browser in a vb form and allows the user to choose the stylesheet from a comboBox control.
The sample view_metadata.dll can be registered in ArcMap through the Tools > Customize > Add from File option. The .dlll will register itself in the Metadata Samples Category. From there you can drag the command on to the tool bar or place it in the "Feature Layer Context Menu" so that you can just right mouse click on the data on interest and have the View metadata option available. To do this you need to have the Customize dialog open (again available from Tools menu > Customize...)make sure the Toolbars tab is selected and check the Context Menus. The Context Menu should appear. Browse the different menus until you locate "Feature Layer Context Menu". Expand it and keep it open. Click back on the Customize dialog and now select the Commands Tab and browse to the Metadata Samples. The View Metadata sample is listed in the Commands window. Drag that on to the "Feature Layer Context Menu". That should be it..

I know it is a confusing process, but let me know how things go.

Things to note about the sample. It is only available when the Source Tab is selected in the Table of Contents. This can be disabled in the VB code.

 
  John Banning
ESRI Redlands 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author john banning 
Date Sep 19, 2003 
Message The zip file 
  John Banning
ESRI Redlands 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author Jagadeesh Bhangari 
Date Sep 22, 2003 
Message Mr John Banning,
Where is the view_metadata.dll..?

Jagadeesh 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author Jagadeesh Bhangari 
Date Sep 22, 2003 
Message Mr John Banning, please attach the view_metadata.dll.

Thank you
Jagadeesh 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author john banning 
Date Sep 23, 2003 
Message Sorry about the delay 
  John Banning 
  Metadata_in_ArcMap.zip (opens in new window)
 
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author Jagadeesh Bhangari 
Date Sep 24, 2003 
Message Dear Mr Banning,

I followed all the steps as you said and cud add the tool on the tool bar. But the moment i click the View Metadata button in the toolbar, it gives the message "Selections can only be made from the source tab". you can also have look at the error mesage image.

Regards
Jagadeesh
 
  viewmetadata_mesg.jpg (opens in new window)
 
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author john banning 
Date Sep 24, 2003 
Message As I mentioned in the previous posting;

"Things to note about the sample. It is only available when the Source Tab is selected in the Table of Contents. This can be disabled in the VB code".

See the attached image.

 
  John Banning
ESRI Redlands 
  source.bmp (opens in new window)
 
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author Jagadeesh Bhangari 
Date Sep 24, 2003 
Message Thanks Mr Banning.
It is working fine. I will try work more on the code..

Jagadeesh 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author Fernando Gomes 
Date Sep 26, 2003 
Message This is an excellent find. Thank you.

One thing though, I have a custom stylesheet that I use and have set as default in ArcCatalog. However, that particular stylesheet is not available to me, in the drop down list. Is there a way to add it and to make it the default stylesheet. I would not mind if it was the only one available either.

Oh, and how can I make it run regardless of being in the source tab or display tab

Thanks again
 
  Fernando Gomes
GIS Technician 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author john banning 
Date Sep 26, 2003 
Message Fernando,
To see the custom stylesheet that you developed you would open up the VB project and change the code in two places.
First in the Class2 Module, you would need to add a name to the combo box how you want it to appear. This is in the ICommand_OnClick event. The code you would add looks something like:

frmMetadata.cmbStyle.AddItem "Fernando"

---look for similar statements and copy the syntax

You would also need to add to the Select Case Statement that locates the stylesheet. That code is in the XmlLocationExist Sub on the frmMetadata Form. You would need to add something similar to the code below.

After that recompile the .dll and you should be good. The second question about making the sample work regardless of the contents View (Display or Sorce), all you would have to do is comment out the if statement (If Not strContentsView = "Source" Then ..... End If). Please note that the sample was developed to work only with the Source View active, therefore you will likely have to write additional code to handle those cases. 
 
Select Case strStyle
'all the other case for the names of the stylesheet are listed here.......

                Case "Fernando"
                    ts.Write "<?xml-stylesheet type=""text/xsl"" href=""" & strSysLocation & "\Fernando.xsl""?>"
                End Select
 
  John Banning 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Metadata viewer from Arcmap 
Author Fernando Gomes 
Date Sep 26, 2003 
Message thank you for the quick reply
 
  Fernando Gomes
GIS Technician 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Metadata viewer from Arcmap 
Author Fernando Gomes 
Date Oct 01, 2003 
Message The change has been made and everything is working the way I want it to. However :), I cannot view any raster metadata. Is there anything I can try

thanks 
  Fernando Gomes
GIS Technician 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Metadata viewer from Arcmap 
Author Hugh Phillips 
Date Oct 03, 2003 
Message John Banning's detailed installation directions (third post on Sept 19) just describe how to load the tool for a feature layer, which is fine for standalone shapes and vectors in a geodatabase. To get it to work for raster data, you have to repeat the process for Raster Layer Context Menu from the Context menu.

Additionally, the tool doesn't work the way you might hope for layer files, that is it doesn't display the metadata associated with the layer file, only for the dataset that the layer file points to.

But its still a great addition for ArcMap! 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Metadata viewer from Arcmap 
Author Fernando Gomes 
Date Oct 03, 2003 
Message that is awesome

thank you so much for the response
 
  Fernando Gomes
GIS Technician 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author m. vogt 
Date Jul 09, 2004 
Message I registered the .dll in ArcMap 9.0 but the tool isn't working for me. I get no errors, no response at all. If I try to use the tool with the Display tab selected, I get an error saying the Source tab must be selected, so I know the installation was at least partially successful.

It looks like it would be very useful -- does it need an update for 9.0 compatibility? I'll look at the code myself, but if this is a known issue, I'd be interested in your plans for migrating it to 9.0. 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author john banning 
Date Jul 12, 2004 
Message Hi Molly,
I originally developed the sample on the 8.3 code base, but have since ported the code to 9.0. I tested the sample posted at Developer Help Online and it worked.(http://arcgisdeveloperonline.esri.com/ArcGISDeveloper/default.asp?URL=/ArcGISDeveloper/Samples/Metadata/Tools/Metadata_in_ArcMap/MetadataInArcMap.htm)

One of the limitation of the sample is that the source tab must be selected. This was to ensure that only items that supported metadata would be selected. Make sure that the data set you are viewing has metadata, otherwise you will get a blank form.
 
  John Banning 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author Michael Heimer 
Date Jul 12, 2004 
Message I'm getting the same error with the sample for 9. If I don't have the source tab selected, I get the normal error message, but if I have the source tab selected, nothing happens. I have verified that the shapefile does have metadata. 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author john banning 
Date Jul 13, 2004 
Message Michael,
What do you have selected in the Source View? Can you attach the dataset so that I can debug it.

thanks 
  John Banning 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author Michael Heimer 
Date Jul 13, 2004 
Message Here is one of our files. None of our files seem to work with version 9, but I just tested this one with 8.3 and it worked correctly.

Thanks for the help. 
  zoning_area.zip (opens in new window)
 
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author John Bocchino 
Date Oct 14, 2004 
Message This viewer is excellent for our customized ArcMap application as it eliminates the need to export html files for viewing. Does anyone know if the same technology exists for ArcIMS applications (ex: an image service) where not only a "copy" of the "data" layer is extracted but also a "copy" of the metadata as well. This will eliminate the need to export html files for ArcIMS applications. 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Meatadata viewer from Arcmap 
Author Dnyanada Bhide 
Date Feb 23, 2005 
Message I made changes suggested by John Banning to view metadata when both Source and Display tabs are active. But when I try to create a dll in VB6.0, I get an "Compile error: Can't find project or library". So I'd like to know which references I'll need for compiling. Thanks. 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Metadata viewer from Arcmap 
Author Amanda S 
Date Aug 04, 2005 
Message Hi, I don't know if you can help me with this, but I installed a sample that allowed me to edit metadata in ArcMap (http://edn.esri.com/index.cfm?fa=codeExch.sampleDetail&pg=/arcobjects/9.1/Samples/Metadata/Tools/Metadata_in_ArcMap_MapMetadata/Edit_Map_Metadata_in_ArcMap.htm) and it worked fine. Then I registered and installed your Metadata Viewer tool and it also works fine but now when I run the edit tool, ArcMap gives me a compile error in Module 1. It gets stuck on the first line: Type=OleDll (equal sign highlighted), and says "Expected: identifier". I am fairly new to VBA and this is the first time I have registered a DLL (I dragged it to regsvr32.exe), so I'm not sure if I did something wrong. Any help you or anybody else can give me would be appreciated.

Thanks,
Amanda 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Metadata viewer from Arcmap 
Author Amanda S 
Date Aug 04, 2005 
Message Ok, so after examining the code in Module 1, I figured out it was all related to the Metadata Viewer tool, and just deleted the entire code. Now everything works. Can anyone explain why that code shows up after registering a dll and why I had a conflict when running another tool?

- Amanda