|
|||
(7 tussenliggende versies door dezelfde gebruiker niet weergegeven) | |||
Regel 2: | Regel 2: | ||
{{#vardefine:varAng|175*pi/180}} |
{{#vardefine:varAng|175*pi/180}} |
||
− | {{#vardefine:varN| |
+ | {{#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 14: | Regel 16: | ||
{{#vardefine:varGC|{{#geocode: The Netherlands, Zuidsingel 110, 4331 RV Middelburg|format=float|directional=no}}}} |
{{#vardefine:varGC|{{#geocode: The Netherlands, Zuidsingel 110, 4331 RV Middelburg|format=float|directional=no}}}} |
||
+ | <!-- |
||
{{#vardefine:varGCX|{{#sub:{{#var:varGC}}|0|{{#pos:{{#var:varGC}}|,}}}}}} |
{{#vardefine:varGCX|{{#sub:{{#var:varGC}}|0|{{#pos:{{#var:varGC}}|,}}}}}} |
||
{{#vardefine:varGCY|{{#sub:{{#var:varGC}}|{{#expr:{{#pos:{{#var:varGC}}|,}}+1}}|0}}}} |
{{#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 /> |
gc = {{#var:varGC}} <br /> |
||
Regel 22: | Regel 28: | ||
{{#expr:{{#var:varGCX}} + {{#var:varX}}}}, {{#expr:{{#var:varGCY}} + {{#var:varY}}}} |
{{#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}} |
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