<?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: Query Layer For Data in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711401#M66134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can't query for a feature unless its already been published on the server.&amp;nbsp; if you want to create features with new geometry, you'll have to run an &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#intersect"&gt;intersect&lt;/A&gt;&lt;SPAN&gt; using a geometry service instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;check out the following sample to see an example of utilizing a geometry service and drawing the result on the clientside.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/util/util_convexhull.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/util/util_convexhull.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 14:52:42 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2012-09-17T14:52:42Z</dc:date>
    <item>
      <title>Query Layer For Data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711400#M66133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17719[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Black Grid is a 1km sq Grid over the Uk mainland (the grid contains data about the land area within in eg: urban, rural or moorland)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Red polygon is a user drawn shape&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- the yellow area is the feature Set need to return (including the partial grids)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The returning feature set should return each full/partial grid square with it's type of data column (urban, rural, moorland) and the area size it takes up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have tried using a QueryTask with a simple Insect query, but that is only going to return all the full grid squares, that the red shape will interact with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be very greatful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt Feeney&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 11:50:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711400#M66133</guid>
      <dc:creator>MattFeeney</dc:creator>
      <dc:date>2012-09-17T11:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer For Data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711401#M66134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can't query for a feature unless its already been published on the server.&amp;nbsp; if you want to create features with new geometry, you'll have to run an &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#intersect"&gt;intersect&lt;/A&gt;&lt;SPAN&gt; using a geometry service instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;check out the following sample to see an example of utilizing a geometry service and drawing the result on the clientside.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/util/util_convexhull.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/util/util_convexhull.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 14:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711401#M66134</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-09-17T14:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer For Data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711402#M66135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, i should have said. This data which forms the 1km&lt;SUP&gt;2&lt;/SUP&gt; grid of the UK is published as a Map service. i am enable to query map service, but only able to get just all the complete 1 km&lt;SUP&gt;2&lt;/SUP&gt;'s, not the full and partial areas within the requeted area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason for this, is so that i can calculate how much a user's should be charged for downloading mapping data, each square will be one of three types (urban, rural, or moorland), with each type having a different charge per km&lt;SUP&gt;2&lt;/SUP&gt;. So partial km&lt;SUP&gt;2&lt;/SUP&gt; are required to achieve a accurate cost. The cost is calculated after the user has drawn the area of interest on the map, so the user can decide which layers they want before the complete the order.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 16:15:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711402#M66135</guid>
      <dc:creator>MattFeeney</dc:creator>
      <dc:date>2012-09-17T16:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer For Data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711403#M66136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i'm not sure i follow your question, but it sounds as if you would like to return the features that fall partially within the search extent and then calculate the sq. footage for the proportion of area which is included.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the query task is a technique of retrieving certain features from a map service (either their geometry, attributes or both) and working with them clientside.&amp;nbsp; since you won't have an attribute field which has already processed the sq. footage of a search extent which is created dynamically in your web application, you can't execute a query to retrieve the result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in this case you will have to use a geometry service to clip some new features based on this dynamic extent and then &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/util/util_measurepoly.html"&gt;calculate the area&lt;/A&gt;&lt;SPAN&gt; yourself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 17:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711403#M66136</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-09-17T17:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer For Data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711404#M66137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i really grateful for your help, it's a difficult one to explain. I will try and explain it more if i can. It's just like the Clip Tool in the toolbox of ArcMap. Using the picture i uploaded, i need a snapshot of the yellow area (like how the clip works), but only need the data that it returns. Looked at using the Clip toolbox tool, and making a geoprocessing service, but found it far to slow and was doing to much for what i was trying to achieve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i would send the layer, but it's a bit large to send through.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt Feeney&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 19:21:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711404#M66137</guid>
      <dc:creator>MattFeeney</dc:creator>
      <dc:date>2012-09-17T19:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer For Data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711405#M66138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it sounds as if i understood your request in my previous response and i agree that a custom geoprocessing task would be overkill.&amp;nbsp; in order to generate geometries for only the areas which are contained in the search extent, you will have to use a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm"&gt;geometry service&lt;/A&gt;&lt;SPAN&gt; rather than attempting to query your map service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 20:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-layer-for-data/m-p/711405#M66138</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-09-17T20:33:20Z</dc:date>
    </item>
  </channel>
</rss>

