Difference between revisions of "Access to Single Point in the Feature"

From ArcoWiki
Jump to: navigation, search
(Created page with "In order to '''Access to Single Point in the Feature''' it is necessary to use the command <code>PTDATA/</code>.<br/> In this example it is shown how to read a measured point...")
 
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
In order to '''Access to Single Point in the Feature''' it is necessary to use the command <code>PTDATA/</code>.<br/>
+
<!--T:1-->
 +
In order to '''[[Access to Single Point in the Feature]]''' it is necessary to use the command <code>PTDATA/</code>.<br/>
  
 +
<!--T:2-->
 
In this example it is shown how to read a measured point of a feature.
 
In this example it is shown how to read a measured point of a feature.
  
<code><span style="color: green; text-decoration: none;">$$ Measuring a Circle with 3 points</span><br/></code>
+
<!--T:3-->
 +
<code><span style="color: green; text-decoration: none;">$$ Measuring a Circle with 3 points</span></code>
 
::<code>F(C1)=FEAT/CIRCLE,INNER,CART,0.0000,0.0000,0.0000,0.00000000,0.00000000,1.00000000,20.0000</code>
 
::<code>F(C1)=FEAT/CIRCLE,INNER,CART,0.0000,0.0000,0.0000,0.00000000,0.00000000,1.00000000,20.0000</code>
 
::<code>MEAS/CIRCLE,F(C1),3</code>
 
::<code>MEAS/CIRCLE,F(C1),3</code>
Line 11: Line 14:
 
::<code>ENDMES</code>
 
::<code>ENDMES</code>
  
 +
<!--T:4-->
 
<code><span style="color: green; text-decoration: none;">$$Declaring the necessary Variables</span><br/></code>
 
<code><span style="color: green; text-decoration: none;">$$Declaring the necessary Variables</span><br/></code>
 
::<code>DECL/DOUBLE,xx,yy,zz,ii,jj,kk</code>
 
::<code>DECL/DOUBLE,xx,yy,zz,ii,jj,kk</code>
Line 16: Line 20:
 
::<code>DECL/CHAR,100,st1</code>
 
::<code>DECL/CHAR,100,st1</code>
  
<code><span style="color: green; text-decoration: none;">$$Get the number of points measured in the circle using the function PTDATA/</span><br/></code>
+
<!--T:5-->
 +
<code><span style="color: green; text-decoration: none;">$$Get the number of points measured in the circle using the function PTDATA/</span></code>
 
::<code>npt1=ASSIGN/PTDATA(FA(C1))</code>
 
::<code>npt1=ASSIGN/PTDATA(FA(C1))</code>
  
 +
<!--T:6-->
 
<code><span style="color: green; text-decoration: none;">$$Loop within the number of points and Copy the raw points in an sequence of New point Features</span><br/></code>
 
<code><span style="color: green; text-decoration: none;">$$Loop within the number of points and Copy the raw points in an sequence of New point Features</span><br/></code>
 
<code><span style="color: green; text-decoration: none;">$$The access to each individual feature is made with the commandFA(name)[numPoint]</span><br/></code>
 
<code><span style="color: green; text-decoration: none;">$$The access to each individual feature is made with the commandFA(name)[numPoint]</span><br/></code>
  
 +
<!--T:7-->
 
::<code>DO/aa,1,npt1,1</code>
 
::<code>DO/aa,1,npt1,1</code>
 
::::<code>xx=OBTAIN/FA(C1)[aa],4</code>
 
::::<code>xx=OBTAIN/FA(C1)[aa],4</code>
Line 33: Line 40:
 
::::<code>FA(@st1)=FEAT/POINT,CART,xx,yy,zz,ii,jj,kk</code>
 
::::<code>FA(@st1)=FEAT/POINT,CART,xx,yy,zz,ii,jj,kk</code>
 
::<code>ENDDO</code>
 
::<code>ENDDO</code>
 +
 +
[[it:Accesso al punto singolo nella feature]]
 +
[[zh-cn:访问功能中的单点]]
 +
[[pt:Acesso a um único ponto no recurso]]
 +
[[de:Zugriff auf Single Point im Feature]]
 +
[[es:Acceso a un solo punto en la característica]]
 +
[[en: Access to Single Point in the Feature ]]
 +
 +
[[Category:Dmis_Tutorial]]

Latest revision as of 07:28, 1 June 2018

In order to Access to Single Point in the Feature it is necessary to use the command PTDATA/.

In this example it is shown how to read a measured point of a feature.

$$ Measuring a Circle with 3 points

F(C1)=FEAT/CIRCLE,INNER,CART,0.0000,0.0000,0.0000,0.00000000,0.00000000,1.00000000,20.0000
MEAS/CIRCLE,F(C1),3
PTMEAS/CART,6.0000,0.0000,0.0000,-1.00000000,0.00000000,0.00000000
PTMEAS/CART,-3.0000,5.1962,0.0000,0.50000000,-0.86602540,0.00000000
PTMEAS/CART,-3.0000,-5.1962,0.0000,0.50000000,0.86602540,0.00000000
ENDMES

$$Declaring the necessary Variables

DECL/DOUBLE,xx,yy,zz,ii,jj,kk
DECL/INTGR,npt1,aa
DECL/CHAR,100,st1

$$Get the number of points measured in the circle using the function PTDATA/

npt1=ASSIGN/PTDATA(FA(C1))

$$Loop within the number of points and Copy the raw points in an sequence of New point Features
$$The access to each individual feature is made with the commandFA(name)[numPoint]

DO/aa,1,npt1,1
xx=OBTAIN/FA(C1)[aa],4
yy=OBTAIN/FA(C1)[aa],5
zz=OBTAIN/FA(C1)[aa],6
ii=OBTAIN/FA(C1)[aa],8
jj=OBTAIN/FA(C1)[aa],9
kk=OBTAIN/FA(C1)[aa],10
st1=ASSIGN/STR(aa)
F(@st1)=FEAT/POINT,CART,xx,yy,zz,ii,jj,kk
FA(@st1)=FEAT/POINT,CART,xx,yy,zz,ii,jj,kk
ENDDO