<?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 point shapefile at center of polyline WITH attributes from the polyline in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96164#M190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for your answers and suggestions. I will try each of them and see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 10:59:44 GMT</pubDate>
    <dc:creator>MichaelJohnson1</dc:creator>
    <dc:date>2014-10-30T10:59:44Z</dc:date>
    <item>
      <title>Create point shapefile at center of polyline WITH attributes from the polyline</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96156#M182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can anyone tell me how to create a point at the center of a polyline and extract three attributes from the polyline to populate the point shapefile? I have polylines representing electrical conductors - I need to create a point at the center of each polyline as well as transfer length and conductor size attributes from the polyline to the point feature in the center. Much thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 23:35:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96156#M182</guid>
      <dc:creator>MichaelJohnson1</dc:creator>
      <dc:date>2014-10-29T23:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create point shapefile at center of polyline WITH attributes from the polyline</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96157#M183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try the feature to point tool in toolbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000003m000000" title="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000003m000000"&gt;ArcGIS Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the inside (optional) check box.&amp;nbsp; It will put the point at the centroid of the line, with all field attributes from the line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 00:12:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96157#M183</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2014-10-30T00:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create point shapefile at center of polyline WITH attributes from the polyline</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96158#M184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What Mark says is true for densified lines, but not for polylines containing true curves in a geodatabase.&amp;nbsp; The inside point will usually be placed at the starting point of the line if it contains a true curve, not at the line centroid.&amp;nbsp; True curves have to be densified to make the point locate itself at the center of the line.&amp;nbsp; One option is to convert to a shapefile from a geodatabase to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 00:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96158#M184</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-10-30T00:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create point shapefile at center of polyline WITH attributes from the polyline</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96159#M185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does this statement not apply then?&amp;nbsp; "For an input line: the output point will be on the line. If the line is a parametric (true) curve, the output point will be at the midpoint of the line."&amp;nbsp; from the help file.&amp;nbsp; For shapefiles it is not relevant since they aren't supported in the first place&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 01:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96159#M185</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-30T01:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create point shapefile at center of polyline WITH attributes from the polyline</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96160#M186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That statement is not true.&amp;nbsp; I spent a day with Tech support on this issue and demonstrated that the inside option never put the point on the true curve center.&amp;nbsp; It only puts the point at the ends of the true curve when the inside option is checked (at least if the line is only a true curve, which was what I was working with since the lines in my routine all came from the outlines of point buffers) or at the centroid that is not on the line if it is not checked.&amp;nbsp; The point is only placed at the center of the polyline if the lines are densified.&amp;nbsp; Converting to a shapefile was tech support's recommendation as a workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 01:27:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96160#M186</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-10-30T01:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create point shapefile at center of polyline WITH attributes from the polyline</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96161#M187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obviously it has been reported then? Is there a NIM number? they should correct the help file, it is supposed to be uptodate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 01:30:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96161#M187</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-30T01:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create point shapefile at center of polyline WITH attributes from the polyline</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96162#M188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No NM was created.&amp;nbsp; Actually, after rechecking the e-mails with tech support this situation may only arise if the arc is greater than 180 degrees, which was applicable to most of the arcs in my routine.&amp;nbsp; Here is the last response I got from tech support on Esri Case #01448794 - How to find the midpoint of an arc that is greater than 180 degrees:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is Kory with Esri Support regarding the case number referenced in the subject line. It was a pleasure working with you today. To recap our telephone conversation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During my testing, I found that when the arc is stored as GDB, feature to point and feature vertices to point do not locate the output point at the midpoint of the arc.&amp;nbsp; This is the issue you were facing when you called in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is to output the arcs as a shapefile.&amp;nbsp; Then, use the Feature Vertices to Points tool , set the Point Type to Mid, and the output point is the midpoint of the arc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feature Vertices to Points: &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000003p000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000003p000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will go ahead and mark this case as resolved. Feel free to contact me if you have any other questions regarding this case and I will be glad to re-open it if necessary. You can reply to this email or call me at 888-377-4575 and refer to the case number in the subject line. If you would like to review the notes from this case including our email exchanges feel free to visit the My Support page at &lt;A href="http://support.esri.com/en/oim"&gt;http://support.esri.com/en/oim&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kory&lt;/P&gt;&lt;P&gt;Esri Support Services &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 01:40:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96162#M188</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-10-30T01:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create point shapefile at center of polyline WITH attributes from the polyline</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96163#M189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should firstly point out, that if you simply add X,Y coordinates into your polyline shapefile's table, you can export the table (from the open table, save to dBase or whatever), THEN reload the table back into ArcMap as an event layer (File, Add Data, Add XY data), then save it out to a new shapefile.&amp;nbsp; Time taken to do this is about 2-3 minutes max.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On with the explanations and comments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given you are working with shapefiles and not true curves with the potential errors that Richard pointed out, then you should be able to create the table via several ways...&lt;/P&gt;&lt;P&gt;1&amp;nbsp; The one that Mark pointed out using the existing tools&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&amp;nbsp; Add two fields and use the Calculate Geometry to calculate the X and Y midpoint for each line segment (the 50% point which is 0.5 on the scale of 0-1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3&amp;nbsp; Add two fields and use the following python expressions for the 50% points ...or &lt;STRONG&gt;more flexibly ...&lt;/STRONG&gt; any position or percentage along the line, using one of the sets of python field calculator expressions assuming your shapefield is named !Shape! .&amp;nbsp; NOTE you have to use the Python parser in the field calculator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for percentages along the line you use values in the 0.0 to 1.0 range, hence 50% is actually &lt;STRONG&gt;0.5&lt;/STRONG&gt; (I don't know why they don't call this fractional distance) and you set the other option to &lt;STRONG&gt;True&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For actual distance along the line, then you specify the actual distances. IF ANY of the values exceed the acceptable range in EITHER case, then the coordinates are placed at the BEGINNING of the line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So... for actual distance traverse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14146361220091026" jivemacro_uid="_14146361220091026"&gt;
&lt;P&gt;!Shape!.positionAlongLine(5000,False).centroid.X&amp;nbsp; #&amp;nbsp;&amp;nbsp; 5000m along a polyline X coordinate&lt;/P&gt;
&lt;P&gt;!Shape!.positionAlongLine(5000,False).centroid.Y&amp;nbsp; #&amp;nbsp;&amp;nbsp; 5000m along a polyline Ycoordinate&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;For percentage distance traverse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14146361343018659" jivemacro_uid="_14146361343018659"&gt;
&lt;P&gt;!Shape!.positionAlongLine(0.5,True).centroid.X&amp;nbsp; #for polylines&amp;nbsp; use decimal % 0.25 = 25%&lt;/P&gt;
&lt;P&gt;!Shape!.positionAlongLine(0.5,True).centroid.Y&amp;nbsp; #for polylines&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably doesn't answer your question but it is worth looking into.&amp;nbsp; By the way see the attached figure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 02:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96163#M189</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-30T02:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create point shapefile at center of polyline WITH attributes from the polyline</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96164#M190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for your answers and suggestions. I will try each of them and see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 10:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96164#M190</guid>
      <dc:creator>MichaelJohnson1</dc:creator>
      <dc:date>2014-10-30T10:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create point shapefile at center of polyline WITH attributes from the polyline</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96165#M191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let us know if it worked out for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 11:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/create-point-shapefile-at-center-of-polyline-with/m-p/96165#M191</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-30T11:00:52Z</dc:date>
    </item>
  </channel>
</rss>

