<?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: Selecting by polygon in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329815#M7897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: richardkrell&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are interested you can see what I have done thus far in a test service located at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://data.cmap.illinois.gov/tipbeta/shapes1.html"&gt;http://data.cmap.illinois.gov/tipbeta/shapes1.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Aug 2010 19:31:01 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2010-08-25T19:31:01Z</dc:date>
    <item>
      <title>Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329807#M7889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am tearing my hair out over something that I am sure is a simple thing but I have been looking at for so long I am not seeing the obvious so any help would be greatly appriciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I started by looking at the code provided at &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=15872"&gt;http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=15872&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I took pieces of it to create my own using my services.&amp;nbsp; I have attached the mxml file named testshape.txt.&amp;nbsp; I am also including a output of what happens after I draw the polygon and it is called output.txt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears it is finding the records in the polygon and then I think it is creating the graphics element but that is where it is blowing up.&amp;nbsp; Please take a look and advise please.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 15:04:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329807#M7889</guid>
      <dc:creator>RichardKrell</dc:creator>
      <dc:date>2010-08-25T15:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329808#M7890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: cgishack&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After looking at the service it looks like you don't have a geometry column ( esriFieldTypeGeometry) in this feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No geometry is being returned from the map service because there is no geometry field in the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see you have&amp;nbsp; Point_X and Poiny_Y fields, but these are not seen as geometry by the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://data.cmap.illinois.gov/ArcGIS/rest/services/Maps/TIP_Test/MapServer/0"&gt;http://data.cmap.illinois.gov/ArcGIS/rest/services/Maps/TIP_Test/MapServer/0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this some event layer or something similar in your MXD&amp;nbsp; or do you have the Shape field turned off on the MXD ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:03:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329808#M7890</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-08-25T19:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329809#M7891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had just noticed that a little while ago but am not yet able to define the geometry type in the service.&amp;nbsp; still reading.&amp;nbsp; Can you point me in the correct direction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I just looked at the mxd and this is a shapefile with the geometry type defined as a point.&amp;nbsp; So I don't understand why it is not coming through when it is pulbished unless it is because this is one of a couple shapefiles in the project and the other one is a line.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329809#M7891</guid>
      <dc:creator>RichardKrell</dc:creator>
      <dc:date>2010-08-25T19:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329810#M7892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: cgishack&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The service will pull the geometry type out of the data.. You don�??t have to defined anything in the service itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would go back to your Map Document (MXD) and see what the data has there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check to ensure your �??SHAPE�?� fields visibility is not turned off too (Layer Properties-&amp;gt;Fields Tab)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:11:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329810#M7892</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-08-25T19:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329811#M7893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Boy fast and furious here.&amp;nbsp; I checked and the shape field was turned off.&amp;nbsp; I will let you know what happens but I have a feeling that the problem may also stem from having a line shapefile as part of the mxd also.&amp;nbsp; I will let you know shortly and thanks for all your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:15:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329811#M7893</guid>
      <dc:creator>RichardKrell</dc:creator>
      <dc:date>2010-08-25T19:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329812#M7894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That was part of it... Once I turned on the shape field it now is showing the Geometry type as esriGeometryPoint.&amp;nbsp; FANTASTIC... still not working but I think this is getting me closer.&amp;nbsp; I would like to keep this going and work on it for a while and see what happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again thanks very much Andrew and I will let you know what happens.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:19:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329812#M7894</guid>
      <dc:creator>RichardKrell</dc:creator>
      <dc:date>2010-08-25T19:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329813#M7895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: cgishack&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good to hear!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to refresh both the service and the rest cache to see the changes take effect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you fix your code a bit I am sure it will all come together and work!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:22:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329813#M7895</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-08-25T19:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329814#M7896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yea did that and am still blowing up but I think it is in the line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var point : MapPoint = new MapPoint(featureSet.features&lt;I&gt;.geometry.x,featureSet.features&lt;I&gt;.geometry.y);&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still the same information in the dump.&amp;nbsp; Error #1009: Cannot access a property or method of a null object reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is closer than I have been in days!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329814#M7896</guid>
      <dc:creator>RichardKrell</dc:creator>
      <dc:date>2010-08-25T19:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329815#M7897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: richardkrell&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are interested you can see what I have done thus far in a test service located at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://data.cmap.illinois.gov/tipbeta/shapes1.html"&gt;http://data.cmap.illinois.gov/tipbeta/shapes1.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:31:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329815#M7897</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-08-25T19:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329816#M7898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: cgishack&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume you are still using the same service......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see a geometry Type listed &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;STRONG&gt;Geometry Type&lt;/STRONG&gt;&lt;SPAN&gt; using the link below for Maps/TIP_Test/0 layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://data.cmap.illinois.gov/ArcGIS/rest/services/Maps/TIP_Test/MapServer/0"&gt;http://data.cmap.illinois.gov/ArcGIS/rest/services/Maps/TIP_Test/MapServer/0&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:31:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329816#M7898</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-08-25T19:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329817#M7899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My fault... I have 2 services, one that is real production and then my test service.&amp;nbsp; I had restarted the wrong service.&amp;nbsp; IT ALL WORKS NOW.&amp;nbsp; Thanks a lot Andrew.&amp;nbsp; That is several days work and stumbling done thanks to you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:36:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329817#M7899</guid>
      <dc:creator>RichardKrell</dc:creator>
      <dc:date>2010-08-25T19:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329818#M7900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: cgishack&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No problem... You will never turn off the SHAPE field ever again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-by-polygon/m-p/329818#M7900</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-08-25T19:38:36Z</dc:date>
    </item>
  </channel>
</rss>

