<?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: Create points from polygons on the fly in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083889#M21173</link>
    <description>&lt;P&gt;My issue is users doing filters on the layer so multiple layers wont work for me unless there's a way to apply filters on both layers.&amp;nbsp; Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jul 2021 11:32:31 GMT</pubDate>
    <dc:creator>helenchu</dc:creator>
    <dc:date>2021-07-29T11:32:31Z</dc:date>
    <item>
      <title>Create points from polygons on the fly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083291#M21166</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to create points from polygons on the fly&amp;nbsp; and display them on the web map ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if I go to style -&amp;gt;&amp;nbsp;&lt;SPAN&gt;Choose attributes -&amp;gt; Expression, then I use the codes below to get the centroid.&amp;nbsp; &amp;nbsp; I click on "Test" and see it actually returns the centroid but I have no idea how to make the point returned show up on my map.&amp;nbsp; Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;var vgeometry = Geometry($feature);&lt;BR /&gt;Console('\nvgeometry:' + vgeometry + 'dog' );&lt;BR /&gt;//var vline = Polyline(vgeometry);&lt;BR /&gt;//Console('\nvgeometry:' + vgeometry + 'dog' + '\nvline:' + vline + 'bird');&lt;BR /&gt;var vcentroid = Centroid(vgeometry);&lt;BR /&gt;//Console('\ncent:' + vcentroid + 'cat');&lt;BR /&gt;var vpoint = Point(vcentroid);&lt;BR /&gt;//Console('\npoint:' + vpoint);&lt;BR /&gt;console('Monkey');&lt;BR /&gt;console(vpoint);&lt;BR /&gt;return vpoint;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jul 2021 21:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083291#M21166</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2021-07-27T21:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create points from polygons on the fly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083316#M21167</link>
      <description>&lt;P&gt;Yes, there are several ways to convert polygons to points by either using a geoprocessing tool called feature to point, or running a python script that gets the central x,y, or xy coordinates.&amp;nbsp; Both of these methods can be made to use on the fly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 21:54:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083316#M21167</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2021-07-27T21:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create points from polygons on the fly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083461#M21170</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Is there a widget for web app builder out there for me to use ?&amp;nbsp; My business case is users apply filters to get polygon features they want but when they zoom out too far those polygons are hard to see on the map.&amp;nbsp; &amp;nbsp;I'm thinking about having those features displayed as points at a certain map scale.&amp;nbsp; Any idea or point of direction is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 12:47:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083461#M21170</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2021-07-28T12:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create points from polygons on the fly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083479#M21171</link>
      <description>&lt;P&gt;No, there currently isn't a widget that can do this automatically. But you can use a map-magical method that would make it appear as if your polygons are turning into points. Simply put, you can convert your polygons to points, set the scale for the points to display when the user zooms out and the polygons to not display from the set scale, and then set polygons to display in using the same scale for when the user zooms in and the points to not display.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;point layer: set to display from 1:25,000&lt;/LI&gt;&lt;LI&gt;polygon layer: set to display to 1:25,000&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This will make it seem like the polygons are turning into points, but they are simply displaying based on how far out or in the user zooms.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 13:37:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083479#M21171</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2021-07-28T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create points from polygons on the fly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083889#M21173</link>
      <description>&lt;P&gt;My issue is users doing filters on the layer so multiple layers wont work for me unless there's a way to apply filters on both layers.&amp;nbsp; Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 11:32:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083889#M21173</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2021-07-29T11:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create points from polygons on the fly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083997#M21175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/25943"&gt;@helenchu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;So there are other options (in tandem with the option I provided) using one of several methods.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You can use the Query Widget to filter one layer by attributes which can then filter the other layer spatially.&lt;/LI&gt;&lt;LI&gt;You can create a relationship between the two layers (so long as they have a common attribute field). When one filter is applied to the main layer, the corresponding layer for which the layer relates to will be shown.&lt;/LI&gt;&lt;LI&gt;You can combine the layers and use the normal filter widget to filter based on specific attributes (using a filter set) and set the parameters&amp;nbsp; to either filter by the previous or all expressions.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Play around with these and see if any of these options to see which ones work for you.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 15:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1083997#M21175</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2021-07-29T15:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create points from polygons on the fly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1084006#M21176</link>
      <description>&lt;P&gt;Sounds good&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;!&amp;nbsp; I'll definitely play around with those ideas.&amp;nbsp; Thanks a bunch.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 15:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1084006#M21176</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2021-07-29T15:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create points from polygons on the fly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1084308#M21180</link>
      <description>&lt;P&gt;If you are using a web app, a &lt;STRONG&gt;Group Filter&lt;/STRONG&gt; will be able to filter both the point and polygon layers (assuming each has the same field and values to filter on)&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 00:39:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1084308#M21180</guid>
      <dc:creator>MicZatorsky_AEC</dc:creator>
      <dc:date>2021-07-30T00:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create points from polygons on the fly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1102260#M21383</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/25943"&gt;@helenchu&lt;/a&gt;&amp;nbsp;The Smart Editor widget in Web AppBuilder now supports creating points from polygons. Please see this blog:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/web-appbuilder/data-management/whats-new-in-the-smart-editor-widget-june-2021/#:~:text=Select%20polygon%20features%20from%20the%20map" target="_blank"&gt;What’s New in the Smart Editor widget (June 2021) (esri.com)&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Although it does require user input by selecting the features to be copied into the target point layer and it's not an automated process.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 19:13:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/create-points-from-polygons-on-the-fly/m-p/1102260#M21383</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2021-09-27T19:13:30Z</dc:date>
    </item>
  </channel>
</rss>

