<?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 9.3.1 Extract Measure Values From Points To Attribute Table (precision and scale) in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/9-3-1-extract-measure-values-from-points-to/m-p/400178#M22941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcInfo 9.3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to get the measure value of a point feature into an attribute field of a point shapefile with the correct precision and scale?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to generate a spreadsheet of Measure Values (and X, Y values) of all the vertices from a line feature. In other words all of the attributes from the &lt;/SPAN&gt;&lt;STRONG&gt;Edit Sketch Properties Window&lt;/STRONG&gt;&lt;SPAN&gt;. It would be nice if there was an export function from the Edit/Sketch Properties window to a spreadsheet but as far as I know there is not a way to export this table at all. Or at the very least have the ability to use Calculate Geometry to populate Z values and M values into an attribute field (it works very well for X and Y values)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've completed the following steps to get what I need:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Feature Vertices To Points - this generates a point file of all vertices of the line. Each point contains attributes from the line itself. From here I can create 4 new fields (X, Y, Z, and M) in the Attribute Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Use the Calculate Geometry function to populate the X and Y fields &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Use the advanced Field Calculator and VBScript to populate the Z and M fields with the Z Values and Measure Values using the following script (swapping out pPoint.Z and pPoint.M to get those values respectively).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PRE-LOGIC VBA SCRIPT CODE&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim Output As Double&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pPoint As IPoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pPoint = [Shape]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Output = pPoint.M&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Output&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This populates the M field with the measure values. However, it rounds up the decimal places into an integer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, Measure Value from point1 = 64.635&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The value populated into the M field in the attribute table using the script above has a value of "65" (even though the M field Data Type is Double, Precision = 20 and Scale = 3) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I viewed the .dbf file in excel to see if the Measure Value was actually stored with the correct precision and scale but just not displaying correctly in the Attribute Table.&amp;nbsp; the Measure Value for point1 = "65.000." This tells me that the VBScript is rounding the value before populating it into the M field. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I change the script to grab the actual M value "64.635" and not rounding up to "65?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be much appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Damien&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2013 17:42:11 GMT</pubDate>
    <dc:creator>DamienMaggio</dc:creator>
    <dc:date>2013-01-10T17:42:11Z</dc:date>
    <item>
      <title>9.3.1 Extract Measure Values From Points To Attribute Table (precision and scale)</title>
      <link>https://community.esri.com/t5/data-management-questions/9-3-1-extract-measure-values-from-points-to/m-p/400178#M22941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcInfo 9.3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to get the measure value of a point feature into an attribute field of a point shapefile with the correct precision and scale?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to generate a spreadsheet of Measure Values (and X, Y values) of all the vertices from a line feature. In other words all of the attributes from the &lt;/SPAN&gt;&lt;STRONG&gt;Edit Sketch Properties Window&lt;/STRONG&gt;&lt;SPAN&gt;. It would be nice if there was an export function from the Edit/Sketch Properties window to a spreadsheet but as far as I know there is not a way to export this table at all. Or at the very least have the ability to use Calculate Geometry to populate Z values and M values into an attribute field (it works very well for X and Y values)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've completed the following steps to get what I need:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Feature Vertices To Points - this generates a point file of all vertices of the line. Each point contains attributes from the line itself. From here I can create 4 new fields (X, Y, Z, and M) in the Attribute Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Use the Calculate Geometry function to populate the X and Y fields &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Use the advanced Field Calculator and VBScript to populate the Z and M fields with the Z Values and Measure Values using the following script (swapping out pPoint.Z and pPoint.M to get those values respectively).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PRE-LOGIC VBA SCRIPT CODE&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim Output As Double&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pPoint As IPoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pPoint = [Shape]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Output = pPoint.M&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Output&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This populates the M field with the measure values. However, it rounds up the decimal places into an integer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, Measure Value from point1 = 64.635&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The value populated into the M field in the attribute table using the script above has a value of "65" (even though the M field Data Type is Double, Precision = 20 and Scale = 3) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I viewed the .dbf file in excel to see if the Measure Value was actually stored with the correct precision and scale but just not displaying correctly in the Attribute Table.&amp;nbsp; the Measure Value for point1 = "65.000." This tells me that the VBScript is rounding the value before populating it into the M field. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I change the script to grab the actual M value "64.635" and not rounding up to "65?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be much appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Damien&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 17:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/9-3-1-extract-measure-values-from-points-to/m-p/400178#M22941</guid>
      <dc:creator>DamienMaggio</dc:creator>
      <dc:date>2013-01-10T17:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: 9.3.1 Extract Measure Values From Points To Attribute Table (precision and scale)</title>
      <link>https://community.esri.com/t5/data-management-questions/9-3-1-extract-measure-values-from-points-to/m-p/400179#M22942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've found a solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. use the Feature Vertices To Points (ArcInfo) to generate points from vertices in a line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Add XY Coordinates tool. This will add a column for X, Y, Z and M.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 21:05:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/9-3-1-extract-measure-values-from-points-to/m-p/400179#M22942</guid>
      <dc:creator>DamienMaggio</dc:creator>
      <dc:date>2013-01-10T21:05:02Z</dc:date>
    </item>
  </channel>
</rss>

