<?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 Buffer Geometry service return --&amp;amp;amp;gt; Get extent for further processing. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-geometry-service-return-amp-amp-gt-get/m-p/513104#M47889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;dear Readers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for taking the time to read this query. being the 1st js app, a lot of things are not very evident to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the app currently is able to do a geometry service buffer associated with a REST service and is able to display the yellow color (255,255,0,0.75) for the selected features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i do not know whether i am going down the right path by doing a convex hull to get the extent. all i need is a minimum bounding rectangle of the bufffered selection to be sent to a geo processing service for additional work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the code works even when it calls the convex hull function and i do see results (polygons on the firebug window) and nothing gets added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if i do not have to do a convex hull, that is also fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;further, all the time, i will be using a polygon layer to do the buffer and i need to use the results of the buffer for a MBR to a gp service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ravi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;geometryService.on("buffer-complete", function (result) { map.graphics.clear(); //draw the buffer geometry on the map as a map graphic var symbol = new esri.symbol.SimpleFillSymbol( esri.symbol.SimpleFillSymbol.STYLE_NULL, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SHORTDASHDOTDOT, new dojo.Color([0, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.75]) ); var bufferGeometry = result.geometries[0] var graphic = new esri.Graphic(bufferGeometry, symbol); var envelope = graphic.geometry.Extent; map.graphics.add(graphic); //Select features within the buffered polygon. To do so we'll create a query to use the buffer graphic // as the selection geometry. var query = new esri.tasks.Query(); query.geometry = bufferGeometry; query.outFields = ["*"]; var geoms4ConvexHullOp; clulayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW, function (results) { ??? geoms4ConvexHullOp = dojo.map(results, function(eachfeatureresult) { return eachfeatureresult.geometry; } ); //var totalPopulation = sumPopulation(results); //var r = ""; //r = "&amp;lt;b&amp;gt;The total Census Block population within the buffer is &amp;lt;i&amp;gt;" + totalPopulation + "&amp;lt;/i&amp;gt;.&amp;lt;/b&amp;gt;"; //dojo.byId('messages').innerHTML = r; }); geometryService.convexHull(geoms4ConvexHullOp, function (hullresults) { //var symbol4Hull = new esri.symbol.FillSymbol( //esri.symbol.SimpleFillSymbol.STYLE_BACKWARD_DIAGONAL, //new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([128, 128, 128, 10])), //new dojo.Color([255, 255, 255, 0.75]) //); var symbol4Hull = new esri.symbol.SimpleFillSymbol(); var hullgraphics = new esri.Graphic(hullresults, symbol4Hull); map.graphics.add(hullgraphics); }, function (errors) { alert(errors); }); //http://forums.arcgis.com/threads/88350-Creating-a-minimum-bounding-polygon-around-different-geometry-types });&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jul 2013 19:09:36 GMT</pubDate>
    <dc:creator>Ravichandran_M_Kaushika</dc:creator>
    <dc:date>2013-07-22T19:09:36Z</dc:date>
    <item>
      <title>Buffer Geometry service return --&amp;amp;gt; Get extent for further processing.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-geometry-service-return-amp-amp-gt-get/m-p/513104#M47889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;dear Readers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for taking the time to read this query. being the 1st js app, a lot of things are not very evident to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the app currently is able to do a geometry service buffer associated with a REST service and is able to display the yellow color (255,255,0,0.75) for the selected features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i do not know whether i am going down the right path by doing a convex hull to get the extent. all i need is a minimum bounding rectangle of the bufffered selection to be sent to a geo processing service for additional work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the code works even when it calls the convex hull function and i do see results (polygons on the firebug window) and nothing gets added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if i do not have to do a convex hull, that is also fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;further, all the time, i will be using a polygon layer to do the buffer and i need to use the results of the buffer for a MBR to a gp service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ravi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;geometryService.on("buffer-complete", function (result) { map.graphics.clear(); //draw the buffer geometry on the map as a map graphic var symbol = new esri.symbol.SimpleFillSymbol( esri.symbol.SimpleFillSymbol.STYLE_NULL, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SHORTDASHDOTDOT, new dojo.Color([0, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.75]) ); var bufferGeometry = result.geometries[0] var graphic = new esri.Graphic(bufferGeometry, symbol); var envelope = graphic.geometry.Extent; map.graphics.add(graphic); //Select features within the buffered polygon. To do so we'll create a query to use the buffer graphic // as the selection geometry. var query = new esri.tasks.Query(); query.geometry = bufferGeometry; query.outFields = ["*"]; var geoms4ConvexHullOp; clulayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW, function (results) { ??? geoms4ConvexHullOp = dojo.map(results, function(eachfeatureresult) { return eachfeatureresult.geometry; } ); //var totalPopulation = sumPopulation(results); //var r = ""; //r = "&amp;lt;b&amp;gt;The total Census Block population within the buffer is &amp;lt;i&amp;gt;" + totalPopulation + "&amp;lt;/i&amp;gt;.&amp;lt;/b&amp;gt;"; //dojo.byId('messages').innerHTML = r; }); geometryService.convexHull(geoms4ConvexHullOp, function (hullresults) { //var symbol4Hull = new esri.symbol.FillSymbol( //esri.symbol.SimpleFillSymbol.STYLE_BACKWARD_DIAGONAL, //new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([128, 128, 128, 10])), //new dojo.Color([255, 255, 255, 0.75]) //); var symbol4Hull = new esri.symbol.SimpleFillSymbol(); var hullgraphics = new esri.Graphic(hullresults, symbol4Hull); map.graphics.add(hullgraphics); }, function (errors) { alert(errors); }); //http://forums.arcgis.com/threads/88350-Creating-a-minimum-bounding-polygon-around-different-geometry-types });&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 19:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-geometry-service-return-amp-amp-gt-get/m-p/513104#M47889</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2013-07-22T19:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Geometry service return --&gt; Get extent for further processing.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-geometry-service-return-amp-amp-gt-get/m-p/513105#M47890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;since making a call to buffer returns a polygon geometry object to you, you can use the method &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jsapi/polygon.html#getextent" rel="nofollow" target="_blank"&gt;getExtent()&lt;/A&gt;&lt;SPAN&gt; to find the extent of each individual polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if instead you needed to determine the extent of a collection of graphics, you could use &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jsapi/namespace_esri.html#graphicsextent" rel="nofollow" target="_blank"&gt;esri.graphicsExtent()&lt;/A&gt;&lt;SPAN&gt; and pass in the graphics themselves as the sol&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 22:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-geometry-service-return-amp-amp-gt-get/m-p/513105#M47890</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-07-22T22:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Geometry service return --&gt; Get extent for further processing.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-geometry-service-return-amp-amp-gt-get/m-p/513106#M47891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;good morning. Thank you for the reply.&amp;nbsp; that helped me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 14:47:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-geometry-service-return-amp-amp-gt-get/m-p/513106#M47891</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2013-07-24T14:47:01Z</dc:date>
    </item>
  </channel>
</rss>

