<?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: Select lines by length convert to polygon? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/select-lines-by-length-convert-to-polygon/m-p/120614#M4170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get the average line length interactively,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;right click on the Shape_Length field in the attribute table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and click statistics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let's say, for example, that the average is 5000 meters&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then you create a feature layer of the lines feature class, with a where clause:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Shape_Length" &amp;lt; 5000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can make the layer interactively in ArcMap by adding that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;statement above as a Query Definition to the layer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or inside or outside of ArcMap by using the Make Feature layer tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and setting the statement as the where clause or Expression&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now use the layer as the input to Feature To Polygon&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only the lines of less than the average length (in our example, 5000 meters)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;will be used by the tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 11:12:08 GMT</pubDate>
    <dc:creator>markdenil</dc:creator>
    <dc:date>2014-06-18T11:12:08Z</dc:date>
    <item>
      <title>Select lines by length convert to polygon?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-lines-by-length-convert-to-polygon/m-p/120613#M4169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You have to use python in the field calculator.&amp;nbsp; The basic operations are listed &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//005s0000002m000000"&gt;here under the Geometry Unit Conversion section&lt;/A&gt;.&amp;nbsp; The basic syntax for filling in length from lines is:&lt;BR /&gt;&lt;BR /&gt;!shape.length!&lt;BR /&gt;&lt;BR /&gt;You can convert units with expressions like:&lt;BR /&gt;&lt;BR /&gt;!shape.length@yards!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your answer! I think I got this now&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a further question: I need calculate the mean of all this length fields and just want to transform lines that are less than mean value to be a polygon. How can I make this possible? I know there was a function called "features to polygon" but this is only work for whole line. Could you please kindly give me some tips? Thank you again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 13:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-lines-by-length-convert-to-polygon/m-p/120613#M4169</guid>
      <dc:creator>wusirui</dc:creator>
      <dc:date>2014-06-17T13:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select lines by length convert to polygon?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-lines-by-length-convert-to-polygon/m-p/120614#M4170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get the average line length interactively,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;right click on the Shape_Length field in the attribute table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and click statistics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let's say, for example, that the average is 5000 meters&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then you create a feature layer of the lines feature class, with a where clause:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Shape_Length" &amp;lt; 5000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can make the layer interactively in ArcMap by adding that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;statement above as a Query Definition to the layer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or inside or outside of ArcMap by using the Make Feature layer tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and setting the statement as the where clause or Expression&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now use the layer as the input to Feature To Polygon&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only the lines of less than the average length (in our example, 5000 meters)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;will be used by the tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 11:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-lines-by-length-convert-to-polygon/m-p/120614#M4170</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2014-06-18T11:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select lines by length convert to polygon?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-lines-by-length-convert-to-polygon/m-p/120615#M4171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To get the average line length interactively,&lt;BR /&gt;right click on the Shape_Length field in the attribute table&lt;BR /&gt;and click statistics.&lt;BR /&gt;&lt;BR /&gt;let's say, for example, that the average is 5000 meters&lt;BR /&gt;&lt;BR /&gt;then you create a feature layer of the lines feature class, with a where clause:&lt;BR /&gt;"Shape_Length" &amp;lt; 5000&lt;BR /&gt;&lt;BR /&gt;You can make the layer interactively in ArcMap by adding that&lt;BR /&gt;statement above as a Query Definition to the layer,&lt;BR /&gt;or inside or outside of ArcMap by using the Make Feature layer tool&lt;BR /&gt;and setting the statement as the where clause or Expression&lt;BR /&gt;&lt;BR /&gt;Now use the layer as the input to Feature To Polygon&lt;BR /&gt;Only the lines of less than the average length (in our example, 5000 meters)&lt;BR /&gt;will be used by the tool.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello, I have a further question. You said the mean value was calculated by clicking stastisic. however, in modelbuilder, summary stastastisic can only calculate mean value through output a new table file. How can I connect to this table file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case, mean value is not a number rather it is a variable. for example, Shape_Length &amp;lt; table.mean (5000, 4000, 8000?). So.if it is possible to define mean value in table field? then this mean value can be used as a variable in Query definition?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:48:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-lines-by-length-convert-to-polygon/m-p/120615#M4171</guid>
      <dc:creator>wusirui</dc:creator>
      <dc:date>2014-06-20T07:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select lines by length convert to polygon?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-lines-by-length-convert-to-polygon/m-p/120616#M4172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, instead of getting the statistics interactively, you can use the Summary Statistics tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, that tool produces an output table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, you have to look up the value of the MEAN for the field on which you requested statistics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A search cursor will do that quickly (there will only be one record).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you assign the value you have plucked from the table to a variable, you can use it in the subsequent where clause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You never mentioned using model builder before, so I gave you the interactive workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A Model Builder workflow will mirror the interactive one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 10:33:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-lines-by-length-convert-to-polygon/m-p/120616#M4172</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2014-06-20T10:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select lines by length convert to polygon?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-lines-by-length-convert-to-polygon/m-p/120617#M4173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, instead of getting the statistics interactively, you can use the Summary Statistics tool&lt;BR /&gt;Yes, that tool produces an output table.&lt;BR /&gt;Yes, you have to look up the value of the MEAN for the field on which you requested statistics.&lt;BR /&gt;A search cursor will do that quickly (there will only be one record).&lt;BR /&gt;If you assign the value you have plucked from the table to a variable, you can use it in the subsequent where clause.&lt;BR /&gt;You never mentioned using model builder before, so I gave you the interactive workflow.&lt;BR /&gt;A Model Builder workflow will mirror the interactive one.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for my miss mentioned. Could you please give me a simple example of how can that output mean value was defined or linked? if this is possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 11:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-lines-by-length-convert-to-polygon/m-p/120617#M4173</guid>
      <dc:creator>wusirui</dc:creator>
      <dc:date>2014-06-20T11:07:55Z</dc:date>
    </item>
  </channel>
</rss>

