<?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 M value (Geometry) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/m-value-geometry/m-p/318324#M24720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an attribute table for point shapefile. I want to assign column with name "Fix CoDe" to my M values. Now it shows "NaN". For Z value I could calculate it with "interpolate shape" tool, but for M values I could not find.&lt;/P&gt;&lt;P&gt;Is there the way to do it with tool,python or somehow? (amount of data is big)&lt;/P&gt;&lt;P&gt;The solutions can be with ArcMap 10.x or ArcGIS Pro, (python 3.6-spyder)&lt;/P&gt;&lt;P&gt;Thank you for your valuable time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2019 07:22:11 GMT</pubDate>
    <dc:creator>OrkhanAbdullayev</dc:creator>
    <dc:date>2019-11-22T07:22:11Z</dc:date>
    <item>
      <title>M value (Geometry)</title>
      <link>https://community.esri.com/t5/python-questions/m-value-geometry/m-p/318324#M24720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an attribute table for point shapefile. I want to assign column with name "Fix CoDe" to my M values. Now it shows "NaN". For Z value I could calculate it with "interpolate shape" tool, but for M values I could not find.&lt;/P&gt;&lt;P&gt;Is there the way to do it with tool,python or somehow? (amount of data is big)&lt;/P&gt;&lt;P&gt;The solutions can be with ArcMap 10.x or ArcGIS Pro, (python 3.6-spyder)&lt;/P&gt;&lt;P&gt;Thank you for your valuable time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 07:22:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/m-value-geometry/m-p/318324#M24720</guid>
      <dc:creator>OrkhanAbdullayev</dc:creator>
      <dc:date>2019-11-22T07:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: M value (Geometry)</title>
      <link>https://community.esri.com/t5/python-questions/m-value-geometry/m-p/318325#M24721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/classes/point.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/classes/point.htm"&gt;Point—ArcPy classes | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shows that the M attribute must be a number type (Double).&lt;/P&gt;&lt;P&gt;Do you have data of the appropriate type you want to assign to M?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 11:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/m-value-geometry/m-p/318325#M24721</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-11-22T11:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: M value (Geometry)</title>
      <link>https://community.esri.com/t5/python-questions/m-value-geometry/m-p/318326#M24722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; "&gt;Do you have data of the appropriate type you want to assign to M?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have in my column of "FIX CODE" the numbers that start from 1000. These points come from navigation track line shots.&amp;nbsp; for example line A the first shot of GPS fix number 1000, second number 1001, line B first shot 1000,second shot 1001 and so. I have more than 1k lines and for each line more 10k points.&lt;/P&gt;&lt;P&gt;Should I use below-mentioned stand alone script? if yes, can you help with this if my shape name "A" and column name "W", the column contains the only number?&lt;/P&gt;&lt;P&gt;Thank you Dan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; arcpy &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #006a00;"&gt;# Create cursor to retrieve Hawaii shape&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; feature_class = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"c:/data/Hawaii.shp"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;cursor = arcpy.da.SearchCursor(feature_class, [&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"SHAPE@"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;]) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; row &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; cursor: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #006a00;"&gt;# Get the geometry object from the shape field&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;print(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"Number of Hawaiian islands: {0}"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;.format(row[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;].partCount)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #006a00;"&gt;# GetPart returns an array of point objects for each part.&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; island &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; row[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;].getPart(): &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;print(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"Vertices in island: {0}"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;.format(island.count)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; point &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; island: print(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"X: {0}, Y: {1})"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;.format(point.X, point.Y))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 12:46:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/m-value-geometry/m-p/318326#M24722</guid>
      <dc:creator>OrkhanAbdullayev</dc:creator>
      <dc:date>2019-11-22T12:46:48Z</dc:date>
    </item>
  </channel>
</rss>

