source: extensions/AMetaData/JpegMetaData/TagDefinitions/GpsTags.class.php @ 4698

Last change on this file since 4698 was 4698, checked in by grum, 14 years ago

[Plugin:AMetaData] Finished to comment the JpegMetaData classes and rename some methods

  • Property svn:executable set to *
File size: 10.3 KB
Line 
1<?php
2/*
3 * --:: JPEG MetaDatas ::-------------------------------------------------------
4 *
5 *  Author    : Grum
6 *   email    : grum at piwigo.org
7 *   website  : http://photos.grum.fr
8 *
9 *   << May the Little SpaceFrog be with you ! >>
10 *
11 *
12 * +-----------------------------------------------------------------------+
13 * | JpegMetaData - a PHP based Jpeg Metadata manager                      |
14 * +-----------------------------------------------------------------------+
15 * | Copyright(C) 2010  Grum - http://www.grum.fr                          |
16 * +-----------------------------------------------------------------------+
17 * | This program is free software; you can redistribute it and/or modify  |
18 * | it under the terms of the GNU General Public License as published by  |
19 * | the Free Software Foundation                                          |
20 * |                                                                       |
21 * | This program is distributed in the hope that it will be useful, but   |
22 * | WITHOUT ANY WARRANTY; without even the implied warranty of            |
23 * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
24 * | General Public License for more details.                              |
25 * |                                                                       |
26 * | You should have received a copy of the GNU General Public License     |
27 * | along with this program; if not, write to the Free Software           |
28 * | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
29 * | USA.                                                                  |
30 * +-----------------------------------------------------------------------+
31 *
32 *
33 * -----------------------------------------------------------------------------
34 *
35 * The GpsTags is the definition of the Gps Exif tags
36 *
37 * -----------------------------------------------------------------------------
38 *
39 * .. Notes ..
40 *
41 * The GpsTags class is derived from the KnownTags class.
42 *
43 * ======> See KnownTags.class.php to know more about the tag definitions <=====
44 *
45 */
46
47  require_once(JPEG_METADATA_DIR."TagDefinitions/KnownTags.class.php");
48
49  /**
50   * Define the tags for GPS
51   */
52  class GpsTags extends KnownTags
53  {
54    protected $label = "Exif GPS tags";
55    protected $tags = Array(
56      /*
57       * tags with defined values
58       */
59
60      // GPSVersionID, tag 0x0000
61      0x0000 => Array(
62        'tagName'     => "GPSVersionID",
63        'schema'      => "GPS",
64        'translatable'=> false,
65        'combiTag'    => 0,
66        'implemented' => true
67      ), // < GPSVersionID
68
69      // GPSLatitudeRef, tag 0x0001
70      0x0001 => Array(
71        'tagName'     => "GPSLatitudeRef",
72        'schema'      => "GPS",
73        'translatable'=> false,
74        'combiTag'    => 0,
75        'implemented' => true
76      ), // < GPSLatitudeRef
77
78      // GPSLatitude, tag 0x0002
79      0x0002 => Array(
80        'tagName'     => "GPSLatitude",
81        'schema'      => "GPS",
82        'translatable'=> false,
83        'combiTag'    => 0,
84        'implemented' => true
85      ), // < GPSLatitudeRef
86
87      // GPSLongitudeRef, tag 0x0003
88      0x0003 => Array(
89        'tagName'     => "GPSLongitudeRef",
90        'schema'      => "GPS",
91        'translatable'=> false,
92        'combiTag'    => 0,
93        'implemented' => true
94      ), // < GPSLongitudeRef
95
96      // GPSLongitude, tag 0x0004
97      0x0004 => Array(
98        'tagName'     => "GPSLongitude",
99        'schema'      => "GPS",
100        'translatable'=> false,
101        'combiTag'    => 0,
102        'implemented' => true
103      ), // < GPSLongitude
104
105      // GPSAltitudeRef, tag 0x0005
106      0x0005 => Array(
107        'tagName'     => "GPSAltitudeRef",
108        'schema'      => "GPS",
109        'translatable'=> false,
110        'combiTag'    => 0,
111        'implemented' => true,
112        'tagValues'   => Array(
113          0x00 => "above sea level",
114          0x01 => "under sea level"
115        )
116      ), // < GPSAltitudeRef
117
118      // GPSAltitude, tag 0x0006
119      0x0006 => Array(
120        'tagName'     => "GPSAltitude",
121        'schema'      => "GPS",
122        'translatable'=> false,
123        'combiTag'    => 0,
124        'implemented' => true
125      ), // < GPSAltitude
126
127      // GPSTimeStamp, tag 0x0007
128      0x0007 => Array(
129        'tagName'     => "GPSTimeStamp",
130        'schema'      => "GPS",
131        'translatable'=> false,
132        'combiTag'    => 0,
133        'implemented' => false
134      ), // < GPSTimeStamp
135
136      // GPSSatellites, tag 0x0008
137      0x0008 => Array(
138        'tagName'     => "GPSSatellites",
139        'schema'      => "GPS",
140        'translatable'=> false,
141        'combiTag'    => 0,
142        'implemented' => true
143      ), // < GPSSatellites
144
145      // GPSStatus, tag 0x0009
146      0x0009 => Array(
147        'tagName'     => "GPSStatus",
148        'schema'      => "GPS",
149        'translatable'=> false,
150        'combiTag'    => 0,
151        'implemented' => true
152      ), // < GPSStatus
153
154      // GPSMeasureMode, tag 0x000a
155      0x000A => Array(
156        'tagName'     => "GPSMeasureMode",
157        'schema'      => "GPS",
158        'translatable'=> false,
159        'combiTag'    => 0,
160        'implemented' => true
161      ), // < GPSMeasureMode
162
163      // GPSDOP, tag 0x000b
164      0x000B => Array(
165        'tagName'     => "GPSDOP",
166        'schema'      => "GPS",
167        'translatable'=> false,
168        'combiTag'    => 0,
169        'implemented' => false
170      ), // < GPSDOP
171
172      // GPSSpeedRef, tag 0x000c
173      0x000C => Array(
174        'tagName'     => "GPSSpeedRef",
175        'schema'      => "GPS",
176        'translatable'=> false,
177        'combiTag'    => 0,
178        'implemented' => true
179      ), // < GPSSpeedRef
180
181      // GPSSpeed, tag 0x000d
182      0x000D => Array(
183        'tagName'     => "GPSSpeed",
184        'schema'      => "GPS",
185        'translatable'=> false,
186        'combiTag'    => 0,
187        'implemented' => true
188      ), // < GPSSpeed
189
190      // GPSTrackRef, tag 0x000e
191      0x000E => Array(
192        'tagName'     => "GPSTrackRef",
193        'schema'      => "GPS",
194        'translatable'=> false,
195        'combiTag'    => 0,
196        'implemented' => true
197      ), // < GPSTrackRef
198
199      // GPSTrack, tag 0x000f
200      0x000F => Array(
201        'tagName'     => "GPSTrack",
202        'schema'      => "GPS",
203        'translatable'=> false,
204        'combiTag'    => 0,
205        'implemented' => true
206      ), // < GPSTrack
207
208      // GPSImgDirectionRef, tag 0x0010
209      0x0010 => Array(
210        'tagName'     => "GPSImgDirectionRef",
211        'schema'      => "GPS",
212        'translatable'=> false,
213        'combiTag'    => 0,
214        'implemented' => true
215      ), // < GPSImgDirectionRef
216
217      // GPSImgDirection, tag 0x0011
218      0x0011 => Array(
219        'tagName'     => "GPSImgDirection",
220        'schema'      => "GPS",
221        'translatable'=> false,
222        'combiTag'    => 0,
223        'implemented' => true
224      ), // < GPSImgDirection
225
226      // GPSMapDatum, tag 0x0012
227      0x0012 => Array(
228        'tagName'     => "GPSMapDatum",
229        'schema'      => "GPS",
230        'translatable'=> false,
231        'combiTag'    => 0,
232        'implemented' => true
233      ), // < GPSMapDatum
234
235      // GPSDestLatitudeRef, tag 0x0013
236      0x0013 => Array(
237        'tagName'     => "GPSDestLatitudeRef",
238        'schema'      => "GPS",
239        'translatable'=> false,
240        'combiTag'    => 0,
241        'implemented' => true
242      ), // < GPSDestLatitudeRef
243
244      // GPSDestLatitude, tag 0x0014
245      0x0014 => Array(
246        'tagName'     => "GPSDestLatitude",
247        'schema'      => "GPS",
248        'translatable'=> false,
249        'combiTag'    => 0,
250        'implemented' => true
251      ), // < GPSDestLatitude
252
253      // GPSDestLongitudeRef, tag 0x0015
254      0x0015 => Array(
255        'tagName'     => "GPSDestLongitudeRef",
256        'schema'      => "GPS",
257        'translatable'=> false,
258        'combiTag'    => 0,
259        'implemented' => true
260      ), // < GPSDestLongitudeRef
261
262      // GPSDestLongitude, tag 0x0016
263      0x0016 => Array(
264        'tagName'     => "GPSDestLongitude",
265        'schema'      => "GPS",
266        'translatable'=> false,
267        'combiTag'    => 0,
268        'implemented' => true
269      ), // < GPSDestLongitude
270
271      // GPSDestBearingRef, tag 0x0017
272      0x0017 => Array(
273        'tagName'     => "GPSDestBearingRef",
274        'schema'      => "GPS",
275        'translatable'=> false,
276        'combiTag'    => 0,
277        'implemented' => true
278      ), // < GPSDestBearingRef
279
280      // GPSDestBearing, tag 0x0018
281      0x0018 => Array(
282        'tagName'     => "GPSDestBearing",
283        'schema'      => "GPS",
284        'translatable'=> false,
285        'combiTag'    => 0,
286        'implemented' => true
287      ), // < GPSDestBearing
288
289      // GPSDestDistanceRef, tag 0x0019
290      0x0019=> Array(
291        'tagName'     => "GPSDestDistanceRef",
292        'schema'      => "GPS",
293        'translatable'=> false,
294        'combiTag'    => 0,
295        'implemented' => true
296      ), // < GPSDestDistanceRef
297
298      // GPSDestDistance, tag 0x001A
299      0x001A=> Array(
300        'tagName'     => "GPSDestDistance",
301        'schema'      => "GPS",
302        'translatable'=> false,
303        'combiTag'    => 0,
304        'implemented' => true
305      ), // < GPSDestDistance
306
307
308      // GPSProcessingMethod, tag 0x001B
309      0x001B=> Array(
310        'tagName'     => "GPSProcessingMethod",
311        'schema'      => "GPS",
312        'translatable'=> false,
313        'combiTag'    => 0,
314        'implemented' => true
315      ), // < GPSProcessingMethod
316
317      // GPSAreaInformation, tag 0x001C
318      0x001C=> Array(
319        'tagName'     => "GPSAreaInformation",
320        'schema'      => "GPS",
321        'translatable'=> false,
322        'combiTag'    => 0,
323        'implemented' => true
324      ), // < GPSAreaInformation
325
326      // GPSDateStamp, tag 0x001D
327      0x001D=> Array(
328        'tagName'     => "GPSDateStamp",
329        'schema'      => "GPS",
330        'translatable'=> false,
331        'combiTag'    => 0,
332        'implemented' => true
333      ), // < GPSDateStamp
334
335
336      // GPSDifferential, tag 0x001E
337      0x001E=> Array(
338        'tagName'     => "GPSDifferential",
339        'schema'      => "GPS",
340        'translatable'=> false,
341        'combiTag'    => 0,
342        'implemented' => true,
343        'tagValues'   => Array(
344          0x00 => "measurement without differential correction",
345          0x01 => "differential correction applied"
346        )
347      ), // < GPSDifferential
348
349
350
351    );
352
353  }
354
355
356?>
Note: See TracBrowser for help on using the repository browser.