lezen in gpx file top op een bepaalde plaats

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Pagina: 1 2 3 4 volgende »

Berta Pappens

Berta Pappens

17/02/2023 11:58:40
Quote Anchor link
Hallo,

Ik wil in een gpx file gaan lezen vanaf een bepaalde plaats(vb waar telkens <wpt begint) , daar maak ik dan een file van fread($fopen, 3800); met deze grootte, daarna moet er terug gezocht worden naar <wpt om terug een file van 3800 van te maken.

Ziet iemand dit zitten om hier een klein voorbeeld van te geven ?
Als je wil kan ik altijd de gpx aan iemand laten geworden.(blijkbaar kan ik hier geen file doorsturen)

Met dank op voorhand
 
PHP hulp

PHP hulp

19/04/2024 01:15:36
 
- Ariën  -
Beheerder

- Ariën -

17/02/2023 12:25:07
Quote Anchor link
Heb je een kleine sample van een gpx-file?

Ik denk dat je hier ook wat aan hebt:
https://github.com/Sibyx/phpGPX
Gewijzigd op 17/02/2023 12:26:12 door - Ariën -
 
Berta Pappens

Berta Pappens

17/02/2023 13:04:00
Quote Anchor link
Hoe kan ik u dat opsturen ?
 
Ozzie PHP

Ozzie PHP

17/02/2023 13:26:08
Quote Anchor link
>> Hoe kan ik u dat opsturen ?

Ariën bedoelt dat je een stukje uit het bestand kopieert en vervolgens hier plakt.
 
Berta Pappens

Berta Pappens

17/02/2023 13:28:09
Quote Anchor link
hier is een stukje :
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<?xml version="1.0" encoding="utf-8"?>
<gpx xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0" creator="GSAK"
xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd http://www.groundspeak.com/cache/1/0/1 http://www.groundspeak.com/cache/1/0/1/cache.xsd"
xmlns="http://www.topografix.com/GPX/1/0">
 <desc>Geocache file generated by GSAK</desc>
 <author>GSAK</author>
 <email>[email protected]</email>
 <time>2023-02-17T10:29:25Z</time>
 <keywords>cache, geocache, groundspeak</keywords>
 <bounds minlat="47.799367" minlon="6.4509" maxlat="54.782533" maxlon="14.788783"/>
 <wpt lat="51.313983" lon="6.4509">
  <time>2017-05-24T08:00:00Z</time>
  <name>GC764N6</name>
  <desc>#9 Angelr(o)ute by RebDeb (5/1)</desc>
  <url>http://coord.info/GC764N6</url>
  <urlname>#9 Angelr(o)ute by RebDeb</urlname>
  <sym>Geocache</sym>
  <type>Geocache|Wherigo Cache</type>
  <groundspeak:cache id="6236774" available="True" archived="False" xmlns:groundspeak="http://www.groundspeak.com/cache/1/0/1">
   <groundspeak:name>#9 Angelr(o)ute</groundspeak:name>
   <groundspeak:placed_by>RebDeb</groundspeak:placed_by>
   <groundspeak:owner id="3302289">RebDeb</groundspeak:owner>
   <groundspeak:type>Wherigo Cache</groundspeak:type>
   <groundspeak:container>Micro</groundspeak:container>
   <groundspeak:attributes>
     <groundspeak:attribute id="1" inc="1">Dogs</groundspeak:attribute>
     <groundspeak:attribute id="14" inc="0">Recommended at night</groundspeak:attribute>
     <groundspeak:attribute id="24" inc="1">Wheelchair accessible</groundspeak:attribute>
     <groundspeak:attribute id="32" inc="1">Bicycles</groundspeak:attribute>
     <groundspeak:attribute id="33" inc="0">Motorcycles</groundspeak:attribute>
     <groundspeak:attribute id="34" inc="0">Quads</groundspeak:attribute>
     <groundspeak:attribute id="35" inc="0">Off-road vehicles</groundspeak:attribute>
     <groundspeak:attribute id="41" inc="1">Stroller accessible</groundspeak:attribute>
     <groundspeak:attribute id="42" inc="1">Needs maintenance</groundspeak:attribute>
     <groundspeak:attribute id="51" inc="1">Special Tool Required</groundspeak:attribute>
     <groundspeak:attribute id="64" inc="0">Tree Climbing</groundspeak:attribute>
   </groundspeak:attributes>
   <groundspeak:difficulty>5</groundspeak:difficulty>
   <groundspeak:terrain>1</groundspeak:terrain>
   <groundspeak:country>Germany</groundspeak:country>
   <groundspeak:state>Nordrhein-Westfalen</groundspeak:state>
   <groundspeak:short_description html="True">&lt;center&gt;&lt;img src="https://s3.amazonaws.com/gs-geo-images/229efd77-1982-4542-8f55-8f9719773411.gif" alt width="32" height="33" /&gt; &lt;span style="font-size:large;color:#0000ff;"&gt;&lt;strong&gt;&lt;em&gt;The Reverse Cache Box-Rtsel Cache&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt; &lt;img src="https://s3.amazonaws.com/gs-geo-images/229efd77-1982-4542-8f55-8f9719773411.gif" alt width="32" height="33" /&gt;&lt;/center&gt;</groundspeak:short_description>
   <groundspeak:long_description html="True">&lt;center&gt;&lt;span&gt;&lt;span style="font-size:x-large;color:#ff0000;"&gt;&lt;strong&gt;Achtung !! Dies ist KEIN Klettercache !!!!&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Dies ist ein Reverse Cache. Er befindet sich nicht an den angegebenen Koordinaten. Beginnen knnt ihr von berall auf der Welt! Ihr seid im Besitz einer virtuellen "Reverse-Cache-Box", welche euch keine Koordinaten sondern nur die Entfernung zum Final/Geocache anzeigt. Aufgabe ist es, die Entfernung so selten wie mglich zu erfragen und den Geocache nur mit Hilfe dieser Entfernungsangaben zu finden. Fr diesen Cache bentigt ihr ein Wherigo-fhiges GPS-Gert oder Smartphone.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/strong&gt;
&lt;center&gt;&lt;strong&gt;&lt;a href="http://www.wherigo.com/cartridge/details.aspx?CGUID=dcdcd2ff-c171-4487-93bc-678f6d03ac4f"&gt;Hier gibt es die Cartridge zum Download&lt;/a&gt;&lt;/strong&gt;&lt;/center&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;center&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Um das Spiel zu starten bentigt ihr noch folgende Codes: Die Ihr &lt;a href="http://rebdeb.bplaced.net/Angelroute/9/9.htm"&gt;Hier&lt;/a&gt; findet!&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/center&gt;
&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;span style="font-size:medium;"&gt;Wie bei allen anderen "Angel-Caches" auch, geht es hier nicht nur darum, die Dose zu finden, zu "bergen" und sich ins Logbuch einzutragen, sondern auch darum, sie wieder genau dahin zu hngen, wo sie vorher auch war. !&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;span style="font-size:medium;"&gt;Ein Hinweis noch, damit ihr hier nicht mit "zu kurzem" Werkzeug anreist:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Die Dose hngt in etwas mehr als 8 m Hhe! So, nun viel Spass beim Angeln!&lt;/span&gt;&lt;/strong&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;font size="+1"&gt;&lt;br /&gt;&lt;/font&gt;Vielen Dank an &lt;a href="http://www.geocaching.com/profile/?guid=34e72530-db09-4460-8d37-cacc04fdb981" target="_blank" rel="noopener noreferrer"&gt;-Waldmeister-&lt;/a&gt; &lt;a name="-Waldmeister-"&gt;&lt;img title="Add User -Waldmeister- to VIP-List" border="0" /&gt;&lt;/a&gt;frs erstellen dieser Cartridge&lt;br /&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;p style="text-align:left;"&gt;Spoiler:&lt;/p&gt;
&lt;p style="text-align:left;"&gt;&lt;img src="http://rebdeb.bplaced.net/Angelroute/spoiler.jpg" alt width="161" height="102" /&gt;&lt;/p&gt;</groundspeak:long_description>
    <groundspeak:encoded_hints></groundspeak:encoded_hints>
   <groundspeak:logs>
  </groundspeak:logs>
   <groundspeak:travelbugs>
   </groundspeak:travelbugs>
</groundspeak:cache>
</wpt>
 <wpt lat="51.314767" lon="6.453617">
  <time>2017-05-24T08:00:00Z</time>
  <name>GC764N3</name>
  <desc>#8 Angelr(o)ute by RebDeb (5/1)</desc>
  <url>http://coord.info/GC764N3</url>
  <urlname>#8 Angelr(o)ute by RebDeb</urlname>
  <sym>Geocache</sym>
  <type>Geocache|Wherigo Cache</type>
  <groundspeak:cache id="6236771" available="True" archived="False" xmlns:groundspeak="http://www.groundspeak.com/cache/1/0/1">
   <groundspeak:name>#8 Angelr(o)ute</groundspeak:name>
   <groundspeak:placed_by>RebDeb</groundspeak:placed_by>
   <groundspeak:owner id="3302289">RebDeb</groundspeak:owner>
   <groundspeak:type>Wherigo Cache</groundspeak:type>
   <groundspeak:container>Micro</groundspeak:container>
   <groundspeak:attributes>
     <groundspeak:attribute id="1" inc="1">Dogs</groundspeak:attribute>
     <groundspeak:attribute id="14" inc="0">Recommended at night</groundspeak:attribute>
     <groundspeak:attribute id="24" inc="1">Wheelchair accessible</groundspeak:attribute>
     <groundspeak:attribute id="32" inc="1">Bicycles</groundspeak:attribute>
     <groundspeak:attribute id="33" inc="0">Motorcycles</groundspeak:attribute>
     <groundspeak:attribute id="34" inc="0">Quads</groundspeak:attribute>
     <groundspeak:attribute id="35" inc="0">Off-road vehicles</groundspeak:attribute>
     <groundspeak:attribute id="41" inc="1">Stroller accessible</groundspeak:attribute>
     <groundspeak:attribute id="42" inc="1">Needs maintenance</groundspeak:attribute>
     <groundspeak:attribute id="51" inc="1">Special Tool Required</groundspeak:attribute>
     <groundspeak:attribute id="64" inc="0">Tree Climbing</groundspeak:attribute>
   </groundspeak:attributes>
   <groundspeak:difficulty>5</groundspeak:difficulty>
   <groundspeak:terrain>1</groundspeak:terrain>
   <groundspeak:country>Germany</groundspeak:country>
   <groundspeak:state>Nordrhein-Westfalen</groundspeak:state>
   <groundspeak:short_description html="True">&lt;center&gt;&lt;img src="https://s3.amazonaws.com/gs-geo-images/229efd77-1982-4542-8f55-8f9719773411.gif" alt width="32" height="33" /&gt; &lt;span style="font-size:large;color:#0000ff;"&gt;&lt;strong&gt;&lt;em&gt;The Reverse Cache Box-Rtsel Cache&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt; &lt;img src="https://s3.amazonaws.com/gs-geo-images/229efd77-1982-4542-8f55-8f9719773411.gif" alt width="32" height="33" /&gt;&lt;/center&gt;</groundspeak:short_description>
   <groundspeak:long_description html="True">&lt;center&gt;&lt;span&gt;&lt;span style="font-size:x-large;color:#ff0000;"&gt;&lt;strong&gt;Achtung !! Dies ist KEIN Klettercache !!!!&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Dies ist ein Reverse Cache. Er befindet sich nicht an den angegebenen Koordinaten. Beginnen knnt ihr von berall auf der Welt! Ihr seid im Besitz einer virtuellen "Reverse-Cache-Box", welche euch keine Koordinaten sondern nur die Entfernung zum Final/Geocache anzeigt. Aufgabe ist es, die Entfernung so selten wie mglich zu erfragen und den Geocache nur mit Hilfe dieser Entfernungsangaben zu finden. Fr diesen Cache bentigt ihr ein Wherigo-fhiges GPS-Gert oder Smartphone.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/strong&gt;
&lt;center&gt;&lt;strong&gt;&lt;a href="http://www.wherigo.com/cartridge/details.aspx?CGUID=dcdcd2ff-c171-4487-93bc-678f6d03ac4f"&gt;Hier gibt es die Cartridge zum Download&lt;/a&gt;&lt;/strong&gt;&lt;/center&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;center&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Um das Spiel zu starten bentigt ihr noch folgende Codes: Die Ihr &lt;a href="http://rebdeb.bplaced.net/Angelroute/8/8.htm"&gt;Hier&lt;/a&gt; findet!&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/center&gt;
&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;span style="font-size:medium;"&gt;Wie bei allen anderen "Angel-Caches" auch, geht es hier nicht nur darum, die Dose zu finden, zu "bergen" und sich ins Logbuch einzutragen, sondern auch darum, sie wieder genau dahin zu hngen, wo sie vorher auch war. !&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;span style="font-size:medium;"&gt;Ein Hinweis noch, damit ihr hier nicht mit "zu kurzem" Werkzeug anreist:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Die Dose hngt in etwas mehr als 8 m Hhe! So, nun viel Spass beim Angeln!&lt;/span&gt;&lt;/strong&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;font size="+1"&gt;&lt;br /&gt;&lt;/font&gt;Vielen Dank an &lt;a href="http://www.geocaching.com/profile/?guid=34e72530-db09-4460-8d37-cacc04fdb981" target="_blank" rel="noopener noreferrer"&gt;-Waldmeister-&lt;/a&gt; &lt;a name="-Waldmeister-"&gt;&lt;img title="Add User -Waldmeister- to VIP-List" border="0" /&gt;&lt;/a&gt;frs erstellen dieser Cartridge&lt;br /&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;p style="text-align:left;"&gt;Spoiler:&lt;/p&gt;
&lt;p style="text-align:left;"&gt;&lt;img src="http://rebdeb.bplaced.net/Angelroute/spoiler.jpg" alt width="161" height="102" /&gt;&lt;/p&gt;</groundspeak:long_description>
    <groundspeak:encoded_hints></groundspeak:encoded_hints>
   <groundspeak:logs>
  </groundspeak:logs>
   <groundspeak:travelbugs>
   </groundspeak:travelbugs>
</groundspeak:cache>
</wpt>
 <wpt lat="51.315617" lon="6.4566">
  <time>2017-05-24T08:00:00Z</time>
  <name>GC764N1</name>
  <desc>#7 Angelr(o)ute by RebDeb (5/1)</desc>
  <url>http://coord.info/GC764N1</url>
  <urlname>#7 Angelr(o)ute by RebDeb</urlname>
  <sym>Geocache</sym>
  <type>Geocache|Wherigo Cache</type>
  <groundspeak:cache id="6236769" available="True" archived="False" xmlns:groundspeak="http://www.groundspeak.com/cache/1/0/1">
   <groundspeak:name>#7 Angelr(o)ute</groundspeak:name>
   <groundspeak:placed_by>RebDeb</groundspeak:placed_by>
   <groundspeak:owner id="3302289">RebDeb</groundspeak:owner>
   <groundspeak:type>Wherigo Cache</groundspeak:type>
   <groundspeak:container>Micro</groundspeak:container>
   <groundspeak:attributes>
     <groundspeak:attribute id="1" inc="1">Dogs</groundspeak:attribute>
     <groundspeak:attribute id="14" inc="0">Recommended at night</groundspeak:attribute>
     <groundspeak:attribute id="24" inc="1">Wheelchair accessible</groundspeak:attribute>
     <groundspeak:attribute id="32" inc="1">Bicycles</groundspeak:attribute>
     <groundspeak:attribute id="33" inc="0">Motorcycles</groundspeak:attribute>
     <groundspeak:attribute id="34" inc="0">Quads</groundspeak:attribute>
     <groundspeak:attribute id="35" inc="0">Off-road vehicles</groundspeak:attribute>
     <groundspeak:attribute id="41" inc="1">Stroller accessible</groundspeak:attribute>
     <groundspeak:attribute id="42" inc="1">Needs maintenance</groundspeak:attribute>
     <groundspeak:attribute id="51" inc="1">Special Tool Required</groundspeak:attribute>
     <groundspeak:attribute id="64" inc="0">Tree Climbing</groundspeak:attribute>
   </groundspeak:attributes>
   <groundspeak:difficulty>5</groundspeak:difficulty>
   <groundspeak:terrain>1</groundspeak:terrain>
   <groundspeak:country>Germany</groundspeak:country>
   <groundspeak:state>Nordrhein-Westfalen</groundspeak:state>
   <groundspeak:short_description html="True">&lt;center&gt;&lt;img src="https://s3.amazonaws.com/gs-geo-images/229efd77-1982-4542-8f55-8f9719773411.gif" alt width="32" height="33" /&gt; &lt;span style="font-size:large;color:#0000ff;"&gt;&lt;strong&gt;&lt;em&gt;The Reverse Cache Box-Rtsel Cache&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt; &lt;img src="https://s3.amazonaws.com/gs-geo-images/229efd77-1982-4542-8f55-8f9719773411.gif" alt width="32" height="33" /&gt;&lt;/center&gt;</groundspeak:short_description>
   <groundspeak:long_description html="True">&lt;center&gt;&lt;span&gt;&lt;span style="font-size:x-large;color:#ff0000;"&gt;&lt;strong&gt;Achtung !! Dies ist KEIN Klettercache !!!!&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Dies ist ein Reverse Cache. Er befindet sich nicht an den angegebenen Koordinaten. Beginnen knnt ihr von berall auf der Welt! Ihr seid im Besitz einer virtuellen "Reverse-Cache-Box", welche euch keine Koordinaten sondern nur die Entfernung zum Final/Geocache anzeigt. Aufgabe ist es, die Entfernung so selten wie mglich zu erfragen und den Geocache nur mit Hilfe dieser Entfernungsangaben zu finden. Fr diesen Cache bentigt ihr ein Wherigo-fhiges GPS-Gert oder Smartphone.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/strong&gt;
&lt;center&gt;&lt;strong&gt;&lt;a href="http://www.wherigo.com/cartridge/details.aspx?CGUID=dcdcd2ff-c171-4487-93bc-678f6d03ac4f"&gt;Hier gibt es die Cartridge zum Download&lt;/a&gt;&lt;/strong&gt;&lt;/center&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;center&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Um das Spiel zu starten bentigt ihr noch folgende Codes: Die Ihr &lt;a href="http://rebdeb.bplaced.net/Angelroute/7/7.htm"&gt;Hier&lt;/a&gt; findet!&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/center&gt;
&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;span style="font-size:medium;"&gt;Wie bei allen anderen "Angel-Caches" auch, geht es hier nicht nur darum, die Dose zu finden, zu "bergen" und sich ins Logbuch einzutragen, sondern auch darum, sie wieder genau dahin zu hngen, wo sie vorher auch war. !&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;span style="font-size:medium;"&gt;Ein Hinweis noch, damit ihr hier nicht mit "zu kurzem" Werkzeug anreist:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Die Dose hngt in etwas mehr als 8 m Hhe! So, nun viel Spass beim Angeln!&lt;/span&gt;&lt;/strong&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;font size="+1"&gt;&lt;br /&gt;&lt;/font&gt;Vielen Dank an &lt;a href="http://www.geocaching.com/profile/?guid=34e72530-db09-4460-8d37-cacc04fdb981" target="_blank" rel="noopener noreferrer"&gt;-Waldmeister-&lt;/a&gt; &lt;a name="-Waldmeister-"&gt;&lt;img title="Add User -Waldmeister- to VIP-List" border="0" /&gt;&lt;/a&gt;frs erstellen dieser Cartridge&lt;br /&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;p style="text-align:left;"&gt;Spoiler:&lt;/p&gt;
&lt;p style="text-align:left;"&gt;&lt;img src="http://rebdeb.bplaced.net/Angelroute/spoiler.jpg" alt width="161" height="102" /&gt;&lt;/p&gt;</groundspeak:long_description>
    <groundspeak:encoded_hints>Nach dem Unwetter am 15.06.2017,mussten wir feststellen,dass hier kein Baum mehr steht.
Der Petling hngt jetzt im nchsten Baum in sdwestlicher Richtung.
oder peilt: 245  in 58m</groundspeak:encoded_hints>
   <groundspeak:logs>
  </groundspeak:logs>
   <groundspeak:travelbugs>
   </groundspeak:travelbugs>
</groundspeak:cache>
</wpt>
 <wpt lat="51.316333" lon="6.4589">
  <time>2017-05-24T08:00:00Z</time>
  <name>GC764MZ</name>
  <desc>#6 Angelr(o)ute by RebDeb (5/1)</desc>
  <url>http://coord.info/GC764MZ</url>
  <urlname>#6 Angelr(o)ute by RebDeb</urlname>
  <sym>Geocache</sym>
  <type>Geocache|Wherigo Cache</type>
  <groundspeak:cache id="6236767" available="True" archived="False" xmlns:groundspeak="http://www.groundspeak.com/cache/1/0/1">
   <groundspeak:name>#6 Angelr(o)ute</groundspeak:name>
   <groundspeak:placed_by>RebDeb</groundspeak:placed_by>
   <groundspeak:owner id="3302289">RebDeb</groundspeak:owner>
   <groundspeak:type>Wherigo Cache</groundspeak:type>
   <groundspeak:container>Micro</groundspeak:container>
   <groundspeak:attributes>
     <groundspeak:attribute id="1" inc="1">Dogs</groundspeak:attribute>
     <groundspeak:attribute id="14" inc="0">Recommended at night</groundspeak:attribute>
     <groundspeak:attribute id="24" inc="1">Wheelchair accessible</groundspeak:attribute>
     <groundspeak:attribute id="32" inc="1">Bicycles</groundspeak:attribute>
     <groundspeak:attribute id="33" inc="0">Motorcycles</groundspeak:attribute>
     <groundspeak:attribute id="34" inc="0">Quads</groundspeak:attribute>
     <groundspeak:attribute id="35" inc="0">Off-road vehicles</groundspeak:attribute>
     <groundspeak:attribute id="41" inc="1">Stroller accessible</groundspeak:attribute>
     <groundspeak:attribute id="42" inc="1">Needs maintenance</groundspeak:attribute>
     <groundspeak:attribute id="51" inc="1">Special Tool Required</groundspeak:attribute>
     <groundspeak:attribute id="64" inc="0">Tree Climbing</groundspeak:attribute>
   </groundspeak:attributes>
   <groundspeak:difficulty>5</groundspeak:difficulty>
   <groundspeak:terrain>1</groundspeak:terrain>
   <groundspeak:country>Germany</groundspeak:country>
   <groundspeak:state>Nordrhein-Westfalen</groundspeak:state>
   <groundspeak:short_description html="True">&lt;center&gt;&lt;img src="https://s3.amazonaws.com/gs-geo-images/229efd77-1982-4542-8f55-8f9719773411.gif" alt width="32" height="33" /&gt; &lt;span style="font-size:large;color:#0000ff;"&gt;&lt;strong&gt;&lt;em&gt;The Reverse Cache Box-Rtsel Cache&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt; &lt;img src="https://s3.amazonaws.com/gs-geo-images/229efd77-1982-4542-8f55-8f9719773411.gif" alt width="32" height="33" /&gt;&lt;/center&gt;</groundspeak:short_description>
   <groundspeak:long_description html="True">&lt;center&gt;&lt;span&gt;&lt;span style="font-size:x-large;color:#ff0000;"&gt;&lt;strong&gt;Achtung !! Dies ist KEIN Klettercache !!!!&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Dies ist ein Reverse Cache. Er befindet sich nicht an den angegebenen Koordinaten. Beginnen knnt ihr von berall auf der Welt! Ihr seid im Besitz einer virtuellen "Reverse-Cache-Box", welche euch keine Koordinaten sondern nur die Entfernung zum Final/Geocache anzeigt. Aufgabe ist es, die Entfernung so selten wie mglich zu erfragen und den Geocache nur mit Hilfe dieser Entfernungsangaben zu finden. Fr diesen Cache bentigt ihr ein Wherigo-fhiges GPS-Gert oder Smartphone.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/strong&gt;
&lt;center&gt;&lt;strong&gt;&lt;a href="http://www.wherigo.com/cartridge/details.aspx?CGUID=dcdcd2ff-c171-4487-93bc-678f6d03ac4f"&gt;Hier gibt es die Cartridge zum Download&lt;/a&gt;&lt;/strong&gt;&lt;/center&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;center&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Um das Spiel zu starten bentigt ihr noch folgende Codes: Die Ihr &lt;a href="http://rebdeb.bplaced.net/Angelroute/6/6.htm"&gt;Hier&lt;/a&gt; findet!&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/center&gt;
&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;span style="font-size:medium;"&gt;Wie bei allen anderen "Angel-Caches" auch, geht es hier nicht nur darum, die Dose zu finden, zu "bergen" und sich ins Logbuch einzutragen, sondern auch darum, sie wieder genau dahin zu hngen, wo sie vorher auch war. !&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;span style="font-size:medium;"&gt;Ein Hinweis noch, damit ihr hier nicht mit "zu kurzem" Werkzeug anreist:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Die Dose hngt in etwas mehr als 8 m Hhe! So, nun viel Spass beim Angeln!&lt;/span&gt;&lt;/strong&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;font size="+1"&gt;&lt;br /&gt;&lt;/font&gt;Vielen Dank an &lt;a href="http://www.geocaching.com/profile/?guid=34e72530-db09-4460-8d37-cacc04fdb981" target="_blank" rel="noopener noreferrer"&gt;-Waldmeister-&lt;/a&gt; &lt;a name="-Waldmeister-"&gt;&lt;img title="Add User -Waldmeister- to VIP-List" border="0" /&gt;&lt;/a&gt;frs erstellen dieser Cartridge&lt;br /&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;p style="text-align:left;"&gt;Spoiler:&lt;/p&gt;
&lt;p style="text-align:left;"&gt;&lt;img src="http://rebdeb.bplaced.net/Angelroute/spoiler.jpg" alt width="161" height="102" /&gt;&lt;/p&gt;</groundspeak:long_description>
    <groundspeak:encoded_hints></groundspeak:encoded_hints>
   <groundspeak:logs>
  </groundspeak:logs>
   <groundspeak:travelbugs>
   </groundspeak:travelbugs>
</groundspeak:cache>
</wpt>
 <wpt lat="51.3178" lon="6.463933">
  <time>2017-05-24T08:00:00Z</time>
  <name>GC764MV</name>
  <desc>#4 Angelr(o)ute by RebDeb (5/1)</desc>
  <url>http://coord.info/GC764MV</url>
  <urlname>#4 Angelr(o)ute by RebDeb</urlname>
  <sym>Geocache</sym>
  <type>Geocache|Wherigo Cache</type>
  <groundspeak:cache id="6236763" available="True" archived="False" xmlns:groundspeak="http://www.groundspeak.com/cache/1/0/1">
   <groundspeak:name>#4 Angelr(o)ute</groundspeak:name>
   <groundspeak:placed_by>RebDeb</groundspeak:placed_by>
   <groundspeak:owner id="3302289">RebDeb</groundspeak:owner>
   <groundspeak:type>Wherigo Cache</groundspeak:type>
   <groundspeak:container>Micro</groundspeak:container>
   <groundspeak:attributes>
     <groundspeak:attribute id="1" inc="1">Dogs</groundspeak:attribute>
     <groundspeak:attribute id="14" inc="0">Recommended at night</groundspeak:attribute>
     <groundspeak:attribute id="24" inc="1">Wheelchair accessible</groundspeak:attribute>
     <groundspeak:attribute id="32" inc="1">Bicycles</groundspeak:attribute>
     <groundspeak:attribute id="33" inc="0">Motorcycles</groundspeak:attribute>
     <groundspeak:attribute id="34" inc="0">Quads</groundspeak:attribute>
     <groundspeak:attribute id="35" inc="0">Off-road vehicles</groundspeak:attribute>
     <groundspeak:attribute id="41" inc="1">Stroller accessible</groundspeak:attribute>
     <groundspeak:attribute id="42" inc="1">Needs maintenance</groundspeak:attribute>
     <groundspeak:attribute id="51" inc="1">Special Tool Required</groundspeak:attribute>
     <groundspeak:attribute id="64" inc="0">Tree Climbing</groundspeak:attribute>
   </groundspeak:attributes>
   <groundspeak:difficulty>5</groundspeak:difficulty>
   <groundspeak:terrain>1</groundspeak:terrain>
   <groundspeak:country>Germany</groundspeak:country>
   <groundspeak:state>Nordrhein-Westfalen</groundspeak:state>
   <groundspeak:short_description html="True">&lt;center&gt;&lt;img src="https://s3.amazonaws.com/gs-geo-images/229efd77-1982-4542-8f55-8f9719773411.gif" alt width="32" height="33" /&gt; &lt;span style="font-size:large;color:#0000ff;"&gt;&lt;strong&gt;&lt;em&gt;The Reverse Cache Box-Rtsel Cache&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt; &lt;img src="https://s3.amazonaws.com/gs-geo-images/229efd77-1982-4542-8f55-8f9719773411.gif" alt width="32" height="33" /&gt;&lt;/center&gt;</groundspeak:short_description>
   <groundspeak:long_description html="True">&lt;center&gt;&lt;span&gt;&lt;span style="font-size:x-large;color:#ff0000;"&gt;&lt;strong&gt;Achtung !! Dies ist KEIN Klettercache !!!!&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Dies ist ein Reverse Cache. Er befindet sich nicht an den angegebenen Koordinaten. Beginnen knnt ihr von berall auf der Welt! Ihr seid im Besitz einer virtuellen "Reverse-Cache-Box", welche euch keine Koordinaten sondern nur die Entfernung zum Final/Geocache anzeigt. Aufgabe ist es, die Entfernung so selten wie mglich zu erfragen und den Geocache nur mit Hilfe dieser Entfernungsangaben zu finden. Fr diesen Cache bentigt ihr ein Wherigo-fhiges GPS-Gert oder Smartphone.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/strong&gt;
&lt;center&gt;&lt;strong&gt;&lt;a href="http://www.wherigo.com/cartridge/details.aspx?CGUID=dcdcd2ff-c171-4487-93bc-678f6d03ac4f"&gt;Hier gibt es die Cartridge zum Download&lt;/a&gt;&lt;/strong&gt;&lt;/center&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;center&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;Um das Spiel zu starten bentigt ihr noch folgende Codes: Die Ihr &lt;a href="http://rebdeb.bplaced.net/Angelroute/4/4.htm"&gt;Hier&lt;/a&gt; findet!&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/center&gt;
&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;
&lt;p style="text-align:center;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;"&gt;&lt;span
Gewijzigd op 17/02/2023 15:19:13 door - Ariën -
 
- Ariën  -
Beheerder

- Ariën -

17/02/2023 13:32:43
Quote Anchor link
Ik geloof dat dit niet alles is? Ik zie de tags niet beëindigd worden. Graag volledig maar beperkt (dus geen honderden regels) tussen codetags.
Maar kan je wat met de gegeven tool die ik noemde?Zo te zien kan je de data makkelijk uitlezen.
Gewijzigd op 17/02/2023 13:33:00 door - Ariën -
 
Berta Pappens

Berta Pappens

17/02/2023 13:35:22
Quote Anchor link
met de opgeven tool ben ik niks.
 
- Ariën  -
Beheerder

- Ariën -

17/02/2023 14:02:32
Quote Anchor link
Voldoet het niet aan de eisen, of werkt het niet?

Voor GeoCaching is er ook een speciale package op GitHub.

https://github.com/Surfoo/gc-gpx-viewer
Gewijzigd op 17/02/2023 14:04:11 door - Ariën -
 
Berta Pappens

Berta Pappens

17/02/2023 14:05:27
Quote Anchor link
voldoet niet aan de eisen , ben momenteel bezig met

while(! feof($filenam))
{
$searchfor = '<wpt';


$contents = file_get_contents($file);


$pattern = preg_quote($searchfor, '/');


$pattern = "/^.*$pattern.*\$/m";


if(preg_match_all($pattern, $contents, $matches)){
echo "Found matches:\n";
}
}
 
- Ariën  -
Beheerder

- Ariën -

17/02/2023 14:13:59
Quote Anchor link
Waarom geen SimpleXML, of de net genoemde van Surfoo?
 
Berta Pappens

Berta Pappens

17/02/2023 14:17:20
Quote Anchor link
omdat dit gpx'en zijn die gemaakt zijn door Gsak.
 
- Ariën  -
Beheerder

- Ariën -

17/02/2023 14:24:29
Quote Anchor link
Vanuit Groundspeak wat van Geocaching is.
Wat Surfoo heeft sluit er goed op aan, lijkt me.

Maar anders is SimpleXML de oplossing in plaats van met holbewonerstechniek een xml uitelkaar trekken met basic PHP-functies en (ranzige) expressies.
Gewijzigd op 17/02/2023 14:25:45 door - Ariën -
 
Berta Pappens

Berta Pappens

17/02/2023 15:46:08
Quote Anchor link
waarom leest php de > tekens niet met fgets ?
 
- Ariën  -
Beheerder

- Ariën -

17/02/2023 16:03:52
Quote Anchor link
Waarom wil je dat op die manier?
Niet altijd hoeft alles op een logge brute manier, terwijl je PHP genoeg gereedschappen heeft.
 
Berta Pappens

Berta Pappens

17/02/2023 16:07:39
Quote Anchor link
Alvast bedankt, maar er wordt niet geantwoord op mijn vraag .

bedankt
 
- Ariën  -
Beheerder

- Ariën -

17/02/2023 16:12:27
Quote Anchor link
Ik ben benieuwd waarom je dit op die manier wilt doen?
Het is een XML-file, en ikzelf gebruik al jaren SimpleXML om XML-feeds uit te lezen.

Waarom wil je dit niet horen dan? Waarom zou je als een holbewoner met reguliere expressies willen werken?
Gewijzigd op 17/02/2023 16:14:07 door - Ariën -
 
Berta Pappens

Berta Pappens

17/02/2023 16:16:49
Quote Anchor link
Hetgeen ik wil is bepaalde gegevens uit de gpx halen waar het begint met <wpt en ook waar het begint met <name> enz..

Nu ik wil het op een andere manier doen, maar leg het dan duidelijk uit hoe AUB?
 
- Ariën  -
Beheerder

- Ariën -

17/02/2023 16:19:05
Quote Anchor link
Maar waarom? Wil je grote kans hebben dat het straks fout gaat als er een namespace wordt aangebracht?
Als je wilt weten hoe reguliere expressies werken, kan je beter een ander voorbeeld gebruiken.

Je hebt met SimpleXML het ideale gereedschap die ervoor zorgt dat het haast niet fout kan gaan. Als je het zelf gaat doen met blote handen en door het wiel opnieuw uit gaat vinden, dan heb je zeker kans dat het ooit eens fout gaat. En je wilt toch geen fouten aanleren?
Gewijzigd op 17/02/2023 16:19:32 door - Ariën -
 
Ozzie PHP

Ozzie PHP

17/02/2023 17:38:11
Quote Anchor link
Jullie praten een beetje langs elkaar heen :-) Ik kom heel even tussenbeide.

Ariën heeft (vermoedelijk) de juiste tool, maar Berta heeft geen idee hoe die te gebruiken.

Dus ...

1) Berta: geef aub nog eenmaal aan wat (welke informatie) je probeert te verkrijgen uit het bestand.

2) Ariën: geef nadat Berta heeft geantwoord aub een voorbeeldje van hoe je dit met SimpleXML zou kunnen doen.

Volgens mij moet het op die manier lukken :-)
 
Berta Pappens

Berta Pappens

18/02/2023 15:06:33
Quote Anchor link
Ik wil de informatie die een cache bevat opslaan in mijn database.
de cache begint bij <wpt en eindigt bij </wpt> enkele gegevens die daar tussen zitten wil ik gaan opslaan, en dan verder doen naar 2de cache enz... tot einde gpx file deze kan soms honderden cachen bevatten.

Anders moet je me eens uitleggen hoe een andere manier werkt ??
 
- Ariën  -
Beheerder

- Ariën -

18/02/2023 15:50:18
Quote Anchor link
Hopelijk kan je hier wat mee.

https://www.w3schools.com/php/php_xml_simplexml_read.asp

Een uitgebreid voorbeeld gebaseerd op je XML kan ik nu even niet maken. Kan je de XML anders delen op www.pastebin.com ?
Gewijzigd op 18/02/2023 15:51:07 door - Ariën -
 

Pagina: 1 2 3 4 volgende »



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.