<?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: How to create a circle with a centerpoint and a radius in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-create-a-circle-with-a-centerpoint-and-a/m-p/656233#M3316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you use either the buffer or the bufferGeodetic GeometryEngine functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geometryengine.html#buffer-method" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geometryengine.html#buffer-method"&gt;GeometryEngine QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geometryengine.html#bufferGeodetic-method" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geometryengine.html#bufferGeodetic-method"&gt;GeometryEngine QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2017 18:18:35 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2017-05-16T18:18:35Z</dc:date>
    <item>
      <title>How to create a circle with a centerpoint and a radius</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-create-a-circle-with-a-centerpoint-and-a/m-p/656232#M3315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new to Qt/QML and ArcGis (Qt 100) and I want to draw a circle on a map. I have the center coordinate and the&amp;nbsp;radius. &amp;nbsp;I could not find a function or an qml element to render a circle with a center point and an radius. So i&amp;nbsp;wrote&amp;nbsp;a javascript function which&amp;nbsp;uses the circular formula to calculate the circle. The result looks more like an egg than a circle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function createCircle()&lt;BR /&gt; {&lt;BR /&gt; var radius, circle, ring, pts, angle, middlePoint, graphic;&lt;/P&gt;&lt;P&gt;//middlePoint = ArcGISRuntimeEnvironment.createObject("Point", { x: 7.69,y: 51.38,spatialReference: SpatialReference.createWgs84()})&lt;BR /&gt; circle = ArcGISRuntimeEnvironment.createObject("PolygonBuilder", {spatialReference: SpatialReference.createWgs84() })&lt;BR /&gt; ring = []&lt;BR /&gt; pts = 100&lt;BR /&gt; angle = 360&lt;BR /&gt; radius = 0.01&lt;/P&gt;&lt;P&gt;for (var i = 0; i &amp;lt;= 360; i++) {&lt;BR /&gt; var radian = i * (Math.PI / 180.0);&lt;BR /&gt; var x1= radius * Math.cos(radian);&lt;BR /&gt; var y1= radius * Math.sin(radian);&lt;/P&gt;&lt;P&gt;circle.addPointXY(7.69+x1, (51.38+y1))&lt;BR /&gt; }&lt;BR /&gt; graphic = ArcGISRuntimeEnvironment.createObject("Graphic")&lt;BR /&gt; graphic.geometry = circle.geometry&lt;BR /&gt; polygonGraphicsOverlay.graphics.append(graphic)&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 17:50:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-create-a-circle-with-a-centerpoint-and-a/m-p/656232#M3315</guid>
      <dc:creator>KkkkWww</dc:creator>
      <dc:date>2017-05-16T17:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a circle with a centerpoint and a radius</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-create-a-circle-with-a-centerpoint-and-a/m-p/656233#M3316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you use either the buffer or the bufferGeodetic GeometryEngine functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geometryengine.html#buffer-method" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geometryengine.html#buffer-method"&gt;GeometryEngine QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geometryengine.html#bufferGeodetic-method" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geometryengine.html#bufferGeodetic-method"&gt;GeometryEngine QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 18:18:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-create-a-circle-with-a-centerpoint-and-a/m-p/656233#M3316</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2017-05-16T18:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a circle with a centerpoint and a radius</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-create-a-circle-with-a-centerpoint-and-a/m-p/656234#M3317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 13:48:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-to-create-a-circle-with-a-centerpoint-and-a/m-p/656234#M3317</guid>
      <dc:creator>KkkkWww</dc:creator>
      <dc:date>2017-05-20T13:48:40Z</dc:date>
    </item>
  </channel>
</rss>

