<?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 How to draw a circle with given radius and center in given coordinates? in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-draw-a-circle-with-given-radius-and-center/m-p/1027095#M2308</link>
    <description>&lt;P&gt;How to draw a circle using Arcgis Java SDK on the arcgis Scene?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 07:48:44 GMT</pubDate>
    <dc:creator>VanyaIvanov</dc:creator>
    <dc:date>2021-02-16T07:48:44Z</dc:date>
    <item>
      <title>How to draw a circle with given radius and center in given coordinates?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-draw-a-circle-with-given-radius-and-center/m-p/1027095#M2308</link>
      <description>&lt;P&gt;How to draw a circle using Arcgis Java SDK on the arcgis Scene?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 07:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-draw-a-circle-with-given-radius-and-center/m-p/1027095#M2308</guid>
      <dc:creator>VanyaIvanov</dc:creator>
      <dc:date>2021-02-16T07:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a circle with given radius and center in given coordinates?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-draw-a-circle-with-given-radius-and-center/m-p/1027113#M2309</link>
      <description>&lt;P&gt;The Buffer operation will help you here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/java/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#buffer(com.esri.arcgisruntime.geometry.Geometry,double)" target="_blank"&gt;https://developers.arcgis.com/java/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#buffer(com.esri.arcgisruntime.geometry.Geometry,double)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However you need to be careful when using this in 3D if your location is in WGS84 (latitude / longitude) as the buffer used the unit of measure associated with the spatial reference of your point.&amp;nbsp; This will be in degrees is its WGS84 and you may wonder why your buffers are quite large!&lt;/P&gt;&lt;P&gt;The trick is to work in a Projected Coordinate system for this so you can use metres as your unit of measure.&amp;nbsp; So imagine you've got a point collected from a click even on your scene, you would convert this before using a buffer:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;              // get the point as a web mercator point 
              Point mapPoint = (Point) GeometryEngine.project( wgs84Point, SpatialReferences.getWebMercator());
              System.out.println("SR : " + mapPoint.getSpatialReference().getWKText());

              // 500 metre buffer
              Polygon polygon =GeometryEngine.buffer(mapPoint, 500);

              // some styles
              SimpleLineSymbol simpleLineSymbol = new SimpleLineSymbol(SimpleLineSymbol.Style.SOLID, 0xFF00FF00, 3);
              SimpleFillSymbol simpleFillSymbol = new SimpleFillSymbol(SimpleFillSymbol.Style.SOLID, 0xFFFF0000, simpleLineSymbol);

              // make a graphic and draw it!
              Graphic graphic = new Graphic(polygon, simpleFillSymbol);
              graphicsOverlay.getGraphics().add(graphic);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 09:52:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-draw-a-circle-with-given-radius-and-center/m-p/1027113#M2309</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-02-16T09:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a circle with given radius and center in given coordinates?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-draw-a-circle-with-given-radius-and-center/m-p/1027119#M2310</link>
      <description>&lt;P&gt;I'm not sure if this relevant to your app, but did you know you can draw domes / spheres in your 3D app like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkBaird_0-1613473051316.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6120iFAC51FBE29F3E02F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkBaird_0-1613473051316.png" alt="MarkBaird_0-1613473051316.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can draw one of these with the following code:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;              // dome symbol
              SimpleMarkerSceneSymbol dome = new SimpleMarkerSceneSymbol(SimpleMarkerSceneSymbol.Style.SPHERE,0x400000FF, 1000, 1000,1000, SceneSymbol.AnchorPosition.CENTER);

              // graphic for the dome
              Graphic domeGraphic = new Graphic(wgs84Point, dome);
              graphicsOverlay.getGraphics().add(domeGraphic);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 10:58:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-draw-a-circle-with-given-radius-and-center/m-p/1027119#M2310</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-02-16T10:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a circle with given radius and center in given coordinates?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-draw-a-circle-with-given-radius-and-center/m-p/1027606#M2312</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you! It works fine. I have one more qestion. If i have several circles, can i mark their intersection zone in some different color?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 18:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-draw-a-circle-with-given-radius-and-center/m-p/1027606#M2312</guid>
      <dc:creator>VanyaIvanov</dc:creator>
      <dc:date>2021-02-17T18:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a circle with given radius and center in given coordinates?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-draw-a-circle-with-given-radius-and-center/m-p/1027689#M2313</link>
      <description>&lt;P&gt;You can create a new geometry with represents the intersection of your polygons.&amp;nbsp; Take a look at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/java/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#intersection(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.Geometry)" target="_blank"&gt;https://developers.arcgis.com/java/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#intersection(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.Geometry)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or maybe this may help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/java/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#intersections(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.Geometry)" target="_blank"&gt;https://developers.arcgis.com/java/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#intersections(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.Geometry)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 17:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-draw-a-circle-with-given-radius-and-center/m-p/1027689#M2313</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-02-17T17:15:55Z</dc:date>
    </item>
  </channel>
</rss>

