<?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: Find layer geometry type in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665902#M62205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I agreed with you on that.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes - I think being able to expose the geometry type of the (sub) layers could be useful for many, many reasons. I'm surprised this isn't in layerInfos, actually. It's a little silly to have to create a feature layer just to get at this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2011 12:41:22 GMT</pubDate>
    <dc:creator>MichaelKyffin</dc:creator>
    <dc:date>2011-08-25T12:41:22Z</dc:date>
    <item>
      <title>Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665898#M62201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I may just be being dim on a Monday afternoon, but I can't seem to find any way of finding a layer's specified geometry type. This is shown in the REST endpoint as "Geometry Type: esriGeometryPoint"; unfortunately it doesn't seem to be exposed in either the Layer properties, or in the layerInfos object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I need to do is create a custom-symbolised featureLayer on the fly, and in order for that to work I need to know the geometry present in this particular layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sadly, I can't use layerDefinitions (which would be far more appropriate).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 11:01:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665898#M62201</guid>
      <dc:creator>BabbageOcelot</dc:creator>
      <dc:date>2011-08-15T11:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665899#M62202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;I may just be being dim on a Monday afternoon, but I can't seem to find any way of finding a layer's specified geometry type. This is shown in the REST endpoint as "Geometry Type: esriGeometryPoint"; unfortunately it doesn't seem to be exposed in either the Layer properties, or in the layerInfos object.&lt;BR /&gt;&lt;BR /&gt;What I need to do is create a custom-symbolised featureLayer on the fly, and in order for that to work I need to know the geometry present in this particular layer.&lt;BR /&gt;&lt;BR /&gt;Sadly, I can't use layerDefinitions (which would be far more appropriate).&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;- Ben&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer.geometryType.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 11:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665899#M62202</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-08-15T11:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665900#M62203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;FeatureLayer.geometryType.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Heming,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks - turns out I am being dim on a Monday. Create the feature layer, *then* find the geometry type, symbolise accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a little strange that the type isn't accessible without first creating a featureLayer; I'd expect that to be in layerInfos[layerId], or similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 12:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665900#M62203</guid>
      <dc:creator>BabbageOcelot</dc:creator>
      <dc:date>2011-08-15T12:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665901#M62204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Heming,&lt;BR /&gt;&lt;BR /&gt;thanks - turns out I am being dim on a Monday. Create the feature layer, *then* find the geometry type, symbolise accordingly.&lt;BR /&gt;&lt;BR /&gt;It is a little strange that the type isn't accessible without first creating a featureLayer; I'd expect that to be in layerInfos[layerId], or similar.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Ben.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agreed with you on that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 12:32:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665901#M62204</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-08-15T12:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665902#M62205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I agreed with you on that.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes - I think being able to expose the geometry type of the (sub) layers could be useful for many, many reasons. I'm surprised this isn't in layerInfos, actually. It's a little silly to have to create a feature layer just to get at this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 12:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665902#M62205</guid>
      <dc:creator>MichaelKyffin</dc:creator>
      <dc:date>2011-08-25T12:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665903#M62206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me out please?&amp;nbsp; I've just been looking at this too but can't work out what I'm getting wrong.&amp;nbsp; I have the following lines to try and work out what the geometry type of a layer is, but my alert just give me 'undefined', can you please show me the correct way of getting this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;anFeatureLayer = new esri.layers.FeatureLayer("http://server/ArcGIS/rest/services/service/FeatureServer/0", {mode: esri.layers.FeatureLayer.MODE_SELECTION});
&amp;nbsp;&amp;nbsp;&amp;nbsp; geomType = anFeatureLayer.geometryType
&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(geomType)&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:08:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665903#M62206</guid>
      <dc:creator>MarkSmith</dc:creator>
      <dc:date>2021-12-12T04:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665904#M62207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes - I think being able to expose the geometry type of the (sub) layers could be useful for many, many reasons. I'm surprised this isn't in layerInfos, actually. It's a little silly to have to create a feature layer just to get at this.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason it's not exposed is because not all layers are feature layers. Some layers are rasters.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 15:03:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665904#M62207</guid>
      <dc:creator>JayJohnson1</dc:creator>
      <dc:date>2011-12-28T15:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665905#M62208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The reason it's not exposed is because not all layers are feature layers. Some layers are rasters.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Agreed - but I wouldn't want to use feature layers at all, but rather the index of the "sub"layer inside a map service. Additionally, the geometryType of the feature layer isn't exposed until it's added to the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 13:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665905#M62208</guid>
      <dc:creator>MichaelKyffin</dc:creator>
      <dc:date>2012-03-07T13:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665906#M62209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So what should I do if the geometry type is blank in the map service for a point layer?&amp;nbsp; I have some point layers that are set to "esriGeometryPoint", but others are just blank.&amp;nbsp; This causes a problem when trying to work with the ArcGIS Viewer for Silverlight.&amp;nbsp; I cannot use the layer because the geometry type is "unspecified".&amp;nbsp; How do I set the geometry type of an unspecified layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's an example of a point layer with an unspecified geometry type:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://ndep-emap.nv.gov/ArcGIS/rest/services/eMap/MapServer/17"&gt;http://ndep-emap.nv.gov/ArcGIS/rest/services/eMap/MapServer/17&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 16:44:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665906#M62209</guid>
      <dc:creator>StephanieSnider</dc:creator>
      <dc:date>2012-03-13T16:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665907#M62210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So what should I do if the geometry type is blank in the map service for a point layer?&amp;nbsp; I have some point layers that are set to "esriGeometryPoint", but others are just blank.&amp;nbsp; This causes a problem when trying to work with the ArcGIS Viewer for Silverlight.&amp;nbsp; I cannot use the layer because the geometry type is "unspecified".&amp;nbsp; How do I set the geometry type of an unspecified layer?&lt;BR /&gt;&lt;BR /&gt;Here's an example of a point layer with an unspecified geometry type:&lt;BR /&gt;&lt;A href="http://ndep-emap.nv.gov/ArcGIS/rest/services/eMap/MapServer/17"&gt;http://ndep-emap.nv.gov/ArcGIS/rest/services/eMap/MapServer/17&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is causing your featureLayer's geometry being undefined (I tried featureLayer.graphics[0].geometry.type too). That is interesting!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 17:18:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665907#M62210</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2012-03-13T17:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665908#M62211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is a corrupt mxd that the msd was based on.&amp;nbsp; I partially recreated the mxd (for the offending layers) and now all the blank geometry types are defined as "esriGeometryPoint".&amp;nbsp; All is right with the world.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 18:00:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665908#M62211</guid>
      <dc:creator>StephanieSnider</dc:creator>
      <dc:date>2012-03-13T18:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665909#M62212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It is a corrupt mxd that the msd was based on&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For what it's worth, I've noticed an intermittent problem with that happening, too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;believe&lt;/SPAN&gt;&lt;SPAN&gt; it's possibly something to do with exporting from an MXD to an MSD which already exists. I've found the problem doesn't seem to occur as often if I delete the MSD first, then export the MXD - but I haven't been able to reproduce it reliably.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 05:12:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665909#M62212</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-03-14T05:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665910#M62213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just came across this problem as well. I deleted the .msd and recreated it and was still unable to get the esriGeometryPoint to be exposed. Will continue to work on it and post a solution if/when I find one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 15:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665910#M62213</guid>
      <dc:creator>JamesLandwehr</dc:creator>
      <dc:date>2012-06-11T15:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find layer geometry type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665911#M62214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just ruling it out, but does the same error occur pointing to the mxd instead of the msd? that would at least focus the msd as the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the data layer by chance a spatial view?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 16:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-layer-geometry-type/m-p/665911#M62214</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-06-11T16:03:36Z</dc:date>
    </item>
  </channel>
</rss>

