Test Hans 12: verschil tussen versies

 
(12 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 2: Regel 2:
 
{{#vardefine:varAng|175*pi/180}}
 
{{#vardefine:varAng|175*pi/180}}
   
{{#vardefine:varN|5}}
+
{{#vardefine:varN|{{#explode:{{PAGENAME}}| |-1}}}}
  +
n = {{#var:varN}}
  +
 
 
{{#vardefine:varX|{{#expr: {{#var:varRad}} * sin( {{#var:varN}} * {{#var:varAng}} )}}}}
 
{{#vardefine:varX|{{#expr: {{#var:varRad}} * sin( {{#var:varN}} * {{#var:varAng}} )}}}}
 
{{#vardefine:varY|{{#expr: {{#var:varRad}} * cos( {{#var:varN}} * {{#var:varAng}} )}}}}
 
{{#vardefine:varY|{{#expr: {{#var:varRad}} * cos( {{#var:varN}} * {{#var:varAng}} )}}}}
Regel 13: Regel 15:
 
-->
 
-->
   
{{#geocode: The Netherlands, Zuidsingel 110, 4331 RV Middelburg}}
+
{{#vardefine:varGC|{{#geocode: The Netherlands, Zuidsingel 110, 4331 RV Middelburg|format=float|directional=no}}}}
  +
<!--
  +
{{#vardefine:varGCX|{{#sub:{{#var:varGC}}|0|{{#pos:{{#var:varGC}}|,}}}}}}
  +
{{#vardefine:varGCY|{{#sub:{{#var:varGC}}|{{#expr:{{#pos:{{#var:varGC}}|,}}+1}}|0}}}}
  +
-->
  +
{{#vardefine:varGCX|{{#explode:{{#var:varGC}}|,|0}}}}
  +
{{#vardefine:varGCY|{{#explode:{{#var:varGC}}|,|1}}}}
  +
 
  +
gc  = {{#var:varGC}} <br />
  +
gcx = {{#var:varGCX}} <br />
  +
gcy = {{#var:varGCY}}
  +
 
  +
{{#expr:{{#var:varGCX}} + {{#var:varX}}}}, {{#expr:{{#var:varGCY}} + {{#var:varY}}}}
  +
 
  +
{{#set:Coordinate={{#expr:{{#var:varGCX}} + {{#var:varX}}}}, {{#expr:{{#var:varGCY}} + {{#var:varY}}}}}}
  +
 
  +
{{#show: {{PAGENAME}} | ?Coordinate}}
  +
 
  +
{{Geoshiftcode|Location=The Netherlands, Zuidsingel 110, 4331 RV Middelburg}}

Huidige versie van 19 nov 2016 om 22:36



n = 12



x = -8.6602540378444E-5
y = 5.0E-5




gc = 51.502686111111, 3.6157972222222
gcx = 51.502686111111
gcy = 3.6157972222222

51.502599508571, 3.6158472222222


51° 30' 9", 3° 36' 57"






51.502671111111, 3.6157712414601