<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to retrieve metadata from a feature layer on ArcGIS Server 10 in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-retrieve-metadata-from-a-feature-layer-on/m-p/48347#M2057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I need to retrieve the metadata information from a feature layer. Is there any sample or code snippet that I can use to understand the method?&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Depends on what you mean with metadata, the feature layer have several metadata fields (which can also be seen at the service directory page) which are available in the LayerDetails:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/supportClasses/LayerDetails.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/supportClasses/LayerDetails.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some samples look at the geometry types, or the field type, or time info based on the layer details:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/TemplatePicker/01nq00000033000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/TemplatePicker/01nq00000033000000/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/TimeSlider_feature_layer/01nq0000001m000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/TimeSlider_feature_layer/01nq0000001m000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2012 21:54:25 GMT</pubDate>
    <dc:creator>BjornSvensson</dc:creator>
    <dc:date>2012-06-28T21:54:25Z</dc:date>
    <item>
      <title>How to retrieve metadata from a feature layer on ArcGIS Server 10</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-retrieve-metadata-from-a-feature-layer-on/m-p/48345#M2055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to retrieve the metadata information from a feature layer. I have the web services available and I can run queries to retrieve the feature attributes, but I don't know any method to retrieve the metadata. Is there any sample or code snippet that I can use to understand the method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 23:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-retrieve-metadata-from-a-feature-layer-on/m-p/48345#M2055</guid>
      <dc:creator>FarhadNavaei</dc:creator>
      <dc:date>2012-06-27T23:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve metadata from a feature layer on ArcGIS Server 10</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-retrieve-metadata-from-a-feature-layer-on/m-p/48346#M2056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Farhad,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You can get a Map Services metadata by making request to the map rest end point like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer?f=pjson" rel="nofollow" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer?f=pjson&lt;/A&gt;&lt;SPAN&gt; and parse the JSON for the &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;serviceDescription. Sometime you can get the description from an individual layer of a map service, but true metadata is not available form the REST endpoint. This is why you can not find any examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow the steps&lt;/STRONG&gt;&lt;SPAN&gt; as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg"&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 01:33:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-retrieve-metadata-from-a-feature-layer-on/m-p/48346#M2056</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-06-28T01:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve metadata from a feature layer on ArcGIS Server 10</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-retrieve-metadata-from-a-feature-layer-on/m-p/48347#M2057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I need to retrieve the metadata information from a feature layer. Is there any sample or code snippet that I can use to understand the method?&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Depends on what you mean with metadata, the feature layer have several metadata fields (which can also be seen at the service directory page) which are available in the LayerDetails:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/supportClasses/LayerDetails.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/supportClasses/LayerDetails.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some samples look at the geometry types, or the field type, or time info based on the layer details:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/TemplatePicker/01nq00000033000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/TemplatePicker/01nq00000033000000/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/TimeSlider_feature_layer/01nq0000001m000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/TimeSlider_feature_layer/01nq0000001m000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 21:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-retrieve-metadata-from-a-feature-layer-on/m-p/48347#M2057</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2012-06-28T21:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve metadata from a feature layer on ArcGIS Server 10</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-retrieve-metadata-from-a-feature-layer-on/m-p/48348#M2058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Farhad,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; You can get a Map Services metadata by making request to the map rest end point like this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer?f=pjson"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer?f=pjson&lt;/A&gt; and parse the JSON for the &lt;BR /&gt;serviceDescription. Sometime you can get the description from an individual layer of a map service, but true metadata is not available form the REST endpoint. This is why you can not find any examples.&lt;BR /&gt;&lt;BR /&gt;Don't forget to &lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt; on this post and to &lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;.&lt;BR /&gt;&lt;STRONG&gt;Follow the steps&lt;/STRONG&gt; as shown in the below graphic:&lt;BR /&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for clarification. I'm sorry, I rated your post -1 by mistake. I could change it back to 0, but I don't know how can I change it to 1. Could you help me please?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 16:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-retrieve-metadata-from-a-feature-layer-on/m-p/48348#M2058</guid>
      <dc:creator>FarhadNavaei</dc:creator>
      <dc:date>2012-06-29T16:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve metadata from a feature layer on ArcGIS Server 10</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-retrieve-metadata-from-a-feature-layer-on/m-p/48349#M2059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Farhad,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The rating is no big deal The important part is click the check mark as indicated in the graphic of my last post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 16:49:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-retrieve-metadata-from-a-feature-layer-on/m-p/48349#M2059</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-06-29T16:49:25Z</dc:date>
    </item>
  </channel>
</rss>

