topic Re: Calculate/Compare 3D-angle and rotation of two polygons in 3D Mapping Questions
https://community.esri.com/t5/3d-mapping-questions/calculate-compare-3d-angle-and-rotation-of-two-polygons/m-p/804998#M320
<HTML><HEAD></HEAD><BODY><P>Hi Dan, thanks a lot for coming back to me so quickly. In 3D analyst, I had a look at 'slope' and 'aspect' (also 'surface aspect'). I found on this forum the suggestion to use the mean value in Zonal statistics to get the average slope of my polygon. However, both of these procedures want to have a raster file, I can create a DEM/TIN/raster from my data, select area by my created polygons and then do the means, but I'm not completely sure if this is the right approach. I also had a look at Cartography tools, 'calculate main polygon angle' and then compare the two layers outside of ArcGIS (Excel), but this gives me only 2D angles and not the angle in relation to the z-value. I'm also not completely sure whether ArcGIS calculates the same main axis when the polygon is rotated (if this makes sense).</P><P></P><P>The original data is ASCII, but at the moment it is in an excel file, an example below:</P><P></P><TABLE width="882"><TBODY><TR><TD width="76">1/4 SHELLS</TD><TD width="64">GRAMS</TD><TD width="82">LENGTH MM</TD><TD width="78">WIDTH MM</TD><TD width="11"> </TD><TD width="56">BEFORE-JCU ID</TD><TD width="75">X</TD><TD width="73">Y</TD><TD width="75">Z</TD><TD width="9"> </TD><TD width="64">AFTER-JCU ID</TD><TD width="71">X</TD><TD width="73">Y</TD><TD width="75">Z</TD></TR><TR><TD>B26</TD><TD>3.149</TD><TD>31.6</TD><TD>22.33</TD><TD> </TD><TD>27</TD><TD>999.567</TD><TD>1002.509</TD><TD>99.718</TD><TD> </TD><TD>2475</TD><TD>999.541</TD><TD>1002.495</TD><TD>99.7</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>28</TD><TD>999.558</TD><TD>1002.495</TD><TD>99.718</TD><TD> </TD><TD>2476</TD><TD>999.547</TD><TD>1002.513</TD><TD>99.696</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>29</TD><TD>999.545</TD><TD>1002.498</TD><TD>99.716</TD><TD> </TD><TD>2477</TD><TD>999.557</TD><TD>1002.517</TD><TD>99.697</TD></TR><TR><TD>B27</TD><TD>2.49</TD><TD>32.87</TD><TD>23.8</TD><TD> </TD><TD>33</TD><TD>999.761</TD><TD>1002.422</TD><TD>99.719</TD><TD> </TD><TD>2457</TD><TD>999.766</TD><TD>1002.412</TD><TD>99.7</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>34</TD><TD>999.748</TD><TD>1002.423</TD><TD>99.717</TD><TD> </TD><TD>2458</TD><TD>999.753</TD><TD>1002.42</TD><TD>99.695</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>35</TD><TD>999.739</TD><TD>1002.432</TD><TD>99.719</TD><TD> </TD><TD>2459</TD><TD>999.741</TD><TD>1002.431</TD><TD>99.7</TD></TR><TR><TD>B28</TD><TD>4.462</TD><TD>43.7</TD><TD>23</TD><TD> </TD><TD>54</TD><TD>999.665</TD><TD>1002.034</TD><TD>99.72</TD><TD> </TD><TD>2276</TD><TD>999.681</TD><TD>1002.005</TD><TD>99.744</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>55</TD><TD>999.643</TD><TD>1002.036</TD><TD>99.717</TD><TD> </TD><TD>2277</TD><TD>999.666</TD><TD>1002.027</TD><TD>99.744</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>56</TD><TD>999.63</TD><TD>1002.053</TD><TD>99.718</TD><TD> </TD><TD>2278</TD><TD>999.653</TD><TD>1002.028</TD><TD>99.758</TD></TR></TBODY></TABLE></BODY></HTML>Fri, 04 Aug 2017 02:43:47 GMTChristianReepmeyer2017-08-04T02:43:47ZCalculate/Compare 3D-angle and rotation of two polygons
https://community.esri.com/t5/3d-mapping-questions/calculate-compare-3d-angle-and-rotation-of-two-polygons/m-p/804996#M318
<HTML><HEAD></HEAD><BODY><P>Hi everyone, I hope this forum can help me with a problem of one of my archaeology students. We conducted an experiment were we measured the spatial movement of artefacts after trampling of an area. Our data are two polygon layers (before/after trampling) in an arbitrary x,y,z coordinate system (Total Station data, can be georeferenced/projected). Each polygon is one artefact and consists of three data points. The two layers are related in that we shot in each point for every artefact before and exactly the same point again after excavation. I would like to automate the process of identifying movement of each artefact (each polygon). I would be interested in the change of 3D-angle and rotation of each artefact. I tried to do this in ArcScene, but I’m a bit lost. I’m also not sure whether ArcGIS is the best program to do this or whether there are easier solutions. Any help would be much appreciated.</P></BODY></HTML>Thu, 03 Aug 2017 22:25:37 GMThttps://community.esri.com/t5/3d-mapping-questions/calculate-compare-3d-angle-and-rotation-of-two-polygons/m-p/804996#M318ChristianReepmeyer2017-08-03T22:25:37ZRe: Calculate/Compare 3D-angle and rotation of two polygons
https://community.esri.com/t5/3d-mapping-questions/calculate-compare-3d-angle-and-rotation-of-two-polygons/m-p/804997#M319
<HTML><HEAD></HEAD><BODY><P>Interesting... what form is the data in now?</P><P>If you have them in X, Y, Z for the point objects for each artifact between the two time periods, I am thinking array manipulation and analysis tools may be useful (numpy and/or scipy) and could be accessed through ArcMap or Pro to provide any capabilities that Arc*'s 3D tools don't</P><P>What have you looked in </P><P><A href="http://pro.arcgis.com/en/pro-app/tool-reference/3d-analyst/an-overview-of-the-3d-analyst-toolbox.htm">Pro 3d</A> or</P><P><A href="http://desktop.arcgis.com/en/arcmap/latest/extensions/3d-analyst/what-is-the-3d-analyst-extension-.htm">ArcMap</A></P><P></P><P>If you could post a sample even as text in your post it would be interesting</P></BODY></HTML>Fri, 04 Aug 2017 01:47:21 GMThttps://community.esri.com/t5/3d-mapping-questions/calculate-compare-3d-angle-and-rotation-of-two-polygons/m-p/804997#M319DanPatterson_Retired2017-08-04T01:47:21ZRe: Calculate/Compare 3D-angle and rotation of two polygons
https://community.esri.com/t5/3d-mapping-questions/calculate-compare-3d-angle-and-rotation-of-two-polygons/m-p/804998#M320
<HTML><HEAD></HEAD><BODY><P>Hi Dan, thanks a lot for coming back to me so quickly. In 3D analyst, I had a look at 'slope' and 'aspect' (also 'surface aspect'). I found on this forum the suggestion to use the mean value in Zonal statistics to get the average slope of my polygon. However, both of these procedures want to have a raster file, I can create a DEM/TIN/raster from my data, select area by my created polygons and then do the means, but I'm not completely sure if this is the right approach. I also had a look at Cartography tools, 'calculate main polygon angle' and then compare the two layers outside of ArcGIS (Excel), but this gives me only 2D angles and not the angle in relation to the z-value. I'm also not completely sure whether ArcGIS calculates the same main axis when the polygon is rotated (if this makes sense).</P><P></P><P>The original data is ASCII, but at the moment it is in an excel file, an example below:</P><P></P><TABLE width="882"><TBODY><TR><TD width="76">1/4 SHELLS</TD><TD width="64">GRAMS</TD><TD width="82">LENGTH MM</TD><TD width="78">WIDTH MM</TD><TD width="11"> </TD><TD width="56">BEFORE-JCU ID</TD><TD width="75">X</TD><TD width="73">Y</TD><TD width="75">Z</TD><TD width="9"> </TD><TD width="64">AFTER-JCU ID</TD><TD width="71">X</TD><TD width="73">Y</TD><TD width="75">Z</TD></TR><TR><TD>B26</TD><TD>3.149</TD><TD>31.6</TD><TD>22.33</TD><TD> </TD><TD>27</TD><TD>999.567</TD><TD>1002.509</TD><TD>99.718</TD><TD> </TD><TD>2475</TD><TD>999.541</TD><TD>1002.495</TD><TD>99.7</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>28</TD><TD>999.558</TD><TD>1002.495</TD><TD>99.718</TD><TD> </TD><TD>2476</TD><TD>999.547</TD><TD>1002.513</TD><TD>99.696</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>29</TD><TD>999.545</TD><TD>1002.498</TD><TD>99.716</TD><TD> </TD><TD>2477</TD><TD>999.557</TD><TD>1002.517</TD><TD>99.697</TD></TR><TR><TD>B27</TD><TD>2.49</TD><TD>32.87</TD><TD>23.8</TD><TD> </TD><TD>33</TD><TD>999.761</TD><TD>1002.422</TD><TD>99.719</TD><TD> </TD><TD>2457</TD><TD>999.766</TD><TD>1002.412</TD><TD>99.7</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>34</TD><TD>999.748</TD><TD>1002.423</TD><TD>99.717</TD><TD> </TD><TD>2458</TD><TD>999.753</TD><TD>1002.42</TD><TD>99.695</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>35</TD><TD>999.739</TD><TD>1002.432</TD><TD>99.719</TD><TD> </TD><TD>2459</TD><TD>999.741</TD><TD>1002.431</TD><TD>99.7</TD></TR><TR><TD>B28</TD><TD>4.462</TD><TD>43.7</TD><TD>23</TD><TD> </TD><TD>54</TD><TD>999.665</TD><TD>1002.034</TD><TD>99.72</TD><TD> </TD><TD>2276</TD><TD>999.681</TD><TD>1002.005</TD><TD>99.744</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>55</TD><TD>999.643</TD><TD>1002.036</TD><TD>99.717</TD><TD> </TD><TD>2277</TD><TD>999.666</TD><TD>1002.027</TD><TD>99.744</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD></TD><TD> </TD><TD>56</TD><TD>999.63</TD><TD>1002.053</TD><TD>99.718</TD><TD> </TD><TD>2278</TD><TD>999.653</TD><TD>1002.028</TD><TD>99.758</TD></TR></TBODY></TABLE></BODY></HTML>Fri, 04 Aug 2017 02:43:47 GMThttps://community.esri.com/t5/3d-mapping-questions/calculate-compare-3d-angle-and-rotation-of-two-polygons/m-p/804998#M320ChristianReepmeyer2017-08-04T02:43:47ZRe: Calculate/Compare 3D-angle and rotation of two polygons
https://community.esri.com/t5/3d-mapping-questions/calculate-compare-3d-angle-and-rotation-of-two-polygons/m-p/804999#M321
<HTML><HEAD></HEAD><BODY><P>read the help topics on slope and aspect for rasters... they aren't the same as what you would expect as a formulation for points and conventional mathematical treatments.</P><P>I will have a look and get back to you</P><P>Can you confirm points 27, 28, 29 represent 3 observations for shell B26 at time 0, and 2475, 2476, 2477 are those same locations (albeit shifted) for the same shell at time 1?</P><P>So can the 3 points be treated as 3 separate locations or 3 observations for the same location (from which one could determine an average? like below</P><PRE class="language-python line-numbers"><CODE>a0 <SPAN class="comment token"># array a0 for 27, 28, 29, treated as 3 observations at one location</SPAN><BR /> <BR />array<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="punctuation token">[</SPAN> <SPAN class="number token">999.567000</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">1002.509000</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">99.718000</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN><BR /> <SPAN class="punctuation token">[</SPAN> <SPAN class="number token">999.558000</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">1002.495000</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">99.718000</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN><BR /> <SPAN class="punctuation token">[</SPAN> <SPAN class="number token">999.545000</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">1002.498000</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">99.716000</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN><BR /><BR />np<SPAN class="punctuation token">.</SPAN>average<SPAN class="punctuation token">(</SPAN>a0<SPAN class="punctuation token">,</SPAN> axis<SPAN class="operator token">=</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">)</SPAN><BR />array<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">[</SPAN> <SPAN class="number token">999.556667</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">1002.500667</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">99.717333</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN></CODE></PRE></BODY></HTML>Fri, 04 Aug 2017 03:06:47 GMThttps://community.esri.com/t5/3d-mapping-questions/calculate-compare-3d-angle-and-rotation-of-two-polygons/m-p/804999#M321DanPatterson_Retired2017-08-04T03:06:47ZRe: Calculate/Compare 3D-angle and rotation of two polygons
https://community.esri.com/t5/3d-mapping-questions/calculate-compare-3d-angle-and-rotation-of-two-polygons/m-p/805000#M322
<HTML><HEAD></HEAD><BODY><P>Dear Dan, my sincere apologies for the late reply, I someone didn't get a notification of your answer.</P><P><IMG __jive_id="367721" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/367721_Trampeling.jpg" style="width: 620px; height: 255px;" /></P><P></P><P>I have attached an ArcScene image of the situation. This is the situation of the artefact layer after trampling in relation to an arbitrary horizontal plane. For the angle calculation, I think we can treat the three observation as one (to get the vector of the plane created through the three measurements and calculate the angle between these two planes). I think we need to treat the three observations also as one for the rotation, but I'm not sure how we can get a consistent direction of each triangle. Can we chose two observations and then calculate a vector which runs perpendicular to the line created by the first two observations through the third observation?</P></BODY></HTML>Mon, 21 Aug 2017 01:18:15 GMThttps://community.esri.com/t5/3d-mapping-questions/calculate-compare-3d-angle-and-rotation-of-two-polygons/m-p/805000#M322ChristianReepmeyer2017-08-21T01:18:15Z