@cpp.js/package-geotiff 1.0.0 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/cppjs.build.js +7 -0
  2. package/cppjs.config.js +11 -19
  3. package/package.json +8 -17
  4. package/dist/prebuilt/Android-arm64-v8a/include/cpl_serv.h +0 -258
  5. package/dist/prebuilt/Android-arm64-v8a/include/epsg_datum.inc +0 -174
  6. package/dist/prebuilt/Android-arm64-v8a/include/epsg_ellipse.inc +0 -48
  7. package/dist/prebuilt/Android-arm64-v8a/include/epsg_gcs.inc +0 -193
  8. package/dist/prebuilt/Android-arm64-v8a/include/epsg_pcs.inc +0 -1012
  9. package/dist/prebuilt/Android-arm64-v8a/include/epsg_pm.inc +0 -22
  10. package/dist/prebuilt/Android-arm64-v8a/include/epsg_proj.inc +0 -443
  11. package/dist/prebuilt/Android-arm64-v8a/include/epsg_units.inc +0 -35
  12. package/dist/prebuilt/Android-arm64-v8a/include/epsg_vertcs.inc +0 -46
  13. package/dist/prebuilt/Android-arm64-v8a/include/geo_config.h +0 -10
  14. package/dist/prebuilt/Android-arm64-v8a/include/geo_ctrans.inc +0 -84
  15. package/dist/prebuilt/Android-arm64-v8a/include/geo_keyp.h +0 -128
  16. package/dist/prebuilt/Android-arm64-v8a/include/geo_normalize.h +0 -259
  17. package/dist/prebuilt/Android-arm64-v8a/include/geo_simpletags.h +0 -73
  18. package/dist/prebuilt/Android-arm64-v8a/include/geo_tiffp.h +0 -109
  19. package/dist/prebuilt/Android-arm64-v8a/include/geokeys.h +0 -52
  20. package/dist/prebuilt/Android-arm64-v8a/include/geokeys.inc +0 -78
  21. package/dist/prebuilt/Android-arm64-v8a/include/geokeys_v1_1.inc +0 -85
  22. package/dist/prebuilt/Android-arm64-v8a/include/geonames.h +0 -149
  23. package/dist/prebuilt/Android-arm64-v8a/include/geotiff.h +0 -177
  24. package/dist/prebuilt/Android-arm64-v8a/include/geotiffio.h +0 -20
  25. package/dist/prebuilt/Android-arm64-v8a/include/geovalues.h +0 -115
  26. package/dist/prebuilt/Android-arm64-v8a/include/xtiffio.h +0 -101
  27. package/dist/prebuilt/Android-arm64-v8a/lib/libgeotiff.la +0 -41
  28. package/dist/prebuilt/Android-arm64-v8a/lib/libgeotiff.so +0 -0
  29. package/dist/prebuilt/Android-arm64-v8a/lib/pkgconfig/libgeotiff.pc +0 -11
  30. package/dist/prebuilt/Android-arm64-v8a/share/man/man1/applygeo.1 +0 -31
  31. package/dist/prebuilt/Android-arm64-v8a/share/man/man1/geotifcp.1 +0 -156
  32. package/dist/prebuilt/Android-arm64-v8a/share/man/man1/listgeo.1 +0 -51
  33. package/dist/prebuilt/Android-x86_64/include/cpl_serv.h +0 -258
  34. package/dist/prebuilt/Android-x86_64/include/epsg_datum.inc +0 -174
  35. package/dist/prebuilt/Android-x86_64/include/epsg_ellipse.inc +0 -48
  36. package/dist/prebuilt/Android-x86_64/include/epsg_gcs.inc +0 -193
  37. package/dist/prebuilt/Android-x86_64/include/epsg_pcs.inc +0 -1012
  38. package/dist/prebuilt/Android-x86_64/include/epsg_pm.inc +0 -22
  39. package/dist/prebuilt/Android-x86_64/include/epsg_proj.inc +0 -443
  40. package/dist/prebuilt/Android-x86_64/include/epsg_units.inc +0 -35
  41. package/dist/prebuilt/Android-x86_64/include/epsg_vertcs.inc +0 -46
  42. package/dist/prebuilt/Android-x86_64/include/geo_config.h +0 -10
  43. package/dist/prebuilt/Android-x86_64/include/geo_ctrans.inc +0 -84
  44. package/dist/prebuilt/Android-x86_64/include/geo_keyp.h +0 -128
  45. package/dist/prebuilt/Android-x86_64/include/geo_normalize.h +0 -259
  46. package/dist/prebuilt/Android-x86_64/include/geo_simpletags.h +0 -73
  47. package/dist/prebuilt/Android-x86_64/include/geo_tiffp.h +0 -109
  48. package/dist/prebuilt/Android-x86_64/include/geokeys.h +0 -52
  49. package/dist/prebuilt/Android-x86_64/include/geokeys.inc +0 -78
  50. package/dist/prebuilt/Android-x86_64/include/geokeys_v1_1.inc +0 -85
  51. package/dist/prebuilt/Android-x86_64/include/geonames.h +0 -149
  52. package/dist/prebuilt/Android-x86_64/include/geotiff.h +0 -177
  53. package/dist/prebuilt/Android-x86_64/include/geotiffio.h +0 -20
  54. package/dist/prebuilt/Android-x86_64/include/geovalues.h +0 -115
  55. package/dist/prebuilt/Android-x86_64/include/xtiffio.h +0 -101
  56. package/dist/prebuilt/Android-x86_64/lib/libgeotiff.la +0 -41
  57. package/dist/prebuilt/Android-x86_64/lib/libgeotiff.so +0 -0
  58. package/dist/prebuilt/Android-x86_64/lib/pkgconfig/libgeotiff.pc +0 -11
  59. package/dist/prebuilt/Android-x86_64/share/man/man1/applygeo.1 +0 -31
  60. package/dist/prebuilt/Android-x86_64/share/man/man1/geotifcp.1 +0 -156
  61. package/dist/prebuilt/Android-x86_64/share/man/man1/listgeo.1 +0 -51
  62. package/dist/prebuilt/CMakeLists.txt +0 -44
  63. package/dist/prebuilt/Emscripten-x86_64/include/cpl_serv.h +0 -258
  64. package/dist/prebuilt/Emscripten-x86_64/include/epsg_datum.inc +0 -174
  65. package/dist/prebuilt/Emscripten-x86_64/include/epsg_ellipse.inc +0 -48
  66. package/dist/prebuilt/Emscripten-x86_64/include/epsg_gcs.inc +0 -193
  67. package/dist/prebuilt/Emscripten-x86_64/include/epsg_pcs.inc +0 -1012
  68. package/dist/prebuilt/Emscripten-x86_64/include/epsg_pm.inc +0 -22
  69. package/dist/prebuilt/Emscripten-x86_64/include/epsg_proj.inc +0 -443
  70. package/dist/prebuilt/Emscripten-x86_64/include/epsg_units.inc +0 -35
  71. package/dist/prebuilt/Emscripten-x86_64/include/epsg_vertcs.inc +0 -46
  72. package/dist/prebuilt/Emscripten-x86_64/include/geo_config.h +0 -10
  73. package/dist/prebuilt/Emscripten-x86_64/include/geo_ctrans.inc +0 -84
  74. package/dist/prebuilt/Emscripten-x86_64/include/geo_keyp.h +0 -128
  75. package/dist/prebuilt/Emscripten-x86_64/include/geo_normalize.h +0 -259
  76. package/dist/prebuilt/Emscripten-x86_64/include/geo_simpletags.h +0 -73
  77. package/dist/prebuilt/Emscripten-x86_64/include/geo_tiffp.h +0 -109
  78. package/dist/prebuilt/Emscripten-x86_64/include/geokeys.h +0 -52
  79. package/dist/prebuilt/Emscripten-x86_64/include/geokeys.inc +0 -78
  80. package/dist/prebuilt/Emscripten-x86_64/include/geokeys_v1_1.inc +0 -85
  81. package/dist/prebuilt/Emscripten-x86_64/include/geonames.h +0 -149
  82. package/dist/prebuilt/Emscripten-x86_64/include/geotiff.h +0 -177
  83. package/dist/prebuilt/Emscripten-x86_64/include/geotiffio.h +0 -20
  84. package/dist/prebuilt/Emscripten-x86_64/include/geovalues.h +0 -115
  85. package/dist/prebuilt/Emscripten-x86_64/include/xtiffio.h +0 -101
  86. package/dist/prebuilt/Emscripten-x86_64/lib/libgeotiff.a +0 -0
  87. package/dist/prebuilt/Emscripten-x86_64/lib/libgeotiff.la +0 -41
  88. package/dist/prebuilt/Emscripten-x86_64/lib/pkgconfig/libgeotiff.pc +0 -11
  89. package/dist/prebuilt/Emscripten-x86_64/share/man/man1/applygeo.1 +0 -31
  90. package/dist/prebuilt/Emscripten-x86_64/share/man/man1/geotifcp.1 +0 -156
  91. package/dist/prebuilt/Emscripten-x86_64/share/man/man1/listgeo.1 +0 -51
  92. package/dist/prebuilt/iOS-iphoneos/include/cpl_serv.h +0 -258
  93. package/dist/prebuilt/iOS-iphoneos/include/epsg_datum.inc +0 -174
  94. package/dist/prebuilt/iOS-iphoneos/include/epsg_ellipse.inc +0 -48
  95. package/dist/prebuilt/iOS-iphoneos/include/epsg_gcs.inc +0 -193
  96. package/dist/prebuilt/iOS-iphoneos/include/epsg_pcs.inc +0 -1012
  97. package/dist/prebuilt/iOS-iphoneos/include/epsg_pm.inc +0 -22
  98. package/dist/prebuilt/iOS-iphoneos/include/epsg_proj.inc +0 -443
  99. package/dist/prebuilt/iOS-iphoneos/include/epsg_units.inc +0 -35
  100. package/dist/prebuilt/iOS-iphoneos/include/epsg_vertcs.inc +0 -46
  101. package/dist/prebuilt/iOS-iphoneos/include/geo_config.h +0 -10
  102. package/dist/prebuilt/iOS-iphoneos/include/geo_ctrans.inc +0 -84
  103. package/dist/prebuilt/iOS-iphoneos/include/geo_keyp.h +0 -128
  104. package/dist/prebuilt/iOS-iphoneos/include/geo_normalize.h +0 -259
  105. package/dist/prebuilt/iOS-iphoneos/include/geo_simpletags.h +0 -73
  106. package/dist/prebuilt/iOS-iphoneos/include/geo_tiffp.h +0 -109
  107. package/dist/prebuilt/iOS-iphoneos/include/geokeys.h +0 -52
  108. package/dist/prebuilt/iOS-iphoneos/include/geokeys.inc +0 -78
  109. package/dist/prebuilt/iOS-iphoneos/include/geokeys_v1_1.inc +0 -85
  110. package/dist/prebuilt/iOS-iphoneos/include/geonames.h +0 -149
  111. package/dist/prebuilt/iOS-iphoneos/include/geotiff.h +0 -177
  112. package/dist/prebuilt/iOS-iphoneos/include/geotiffio.h +0 -20
  113. package/dist/prebuilt/iOS-iphoneos/include/geovalues.h +0 -115
  114. package/dist/prebuilt/iOS-iphoneos/include/xtiffio.h +0 -101
  115. package/dist/prebuilt/iOS-iphoneos/lib/libgeotiff.a +0 -0
  116. package/dist/prebuilt/iOS-iphoneos/lib/libgeotiff.la +0 -41
  117. package/dist/prebuilt/iOS-iphoneos/lib/pkgconfig/libgeotiff.pc +0 -11
  118. package/dist/prebuilt/iOS-iphoneos/share/man/man1/applygeo.1 +0 -31
  119. package/dist/prebuilt/iOS-iphoneos/share/man/man1/geotifcp.1 +0 -156
  120. package/dist/prebuilt/iOS-iphoneos/share/man/man1/listgeo.1 +0 -51
  121. package/dist/prebuilt/iOS-iphonesimulator/include/cpl_serv.h +0 -258
  122. package/dist/prebuilt/iOS-iphonesimulator/include/epsg_datum.inc +0 -174
  123. package/dist/prebuilt/iOS-iphonesimulator/include/epsg_ellipse.inc +0 -48
  124. package/dist/prebuilt/iOS-iphonesimulator/include/epsg_gcs.inc +0 -193
  125. package/dist/prebuilt/iOS-iphonesimulator/include/epsg_pcs.inc +0 -1012
  126. package/dist/prebuilt/iOS-iphonesimulator/include/epsg_pm.inc +0 -22
  127. package/dist/prebuilt/iOS-iphonesimulator/include/epsg_proj.inc +0 -443
  128. package/dist/prebuilt/iOS-iphonesimulator/include/epsg_units.inc +0 -35
  129. package/dist/prebuilt/iOS-iphonesimulator/include/epsg_vertcs.inc +0 -46
  130. package/dist/prebuilt/iOS-iphonesimulator/include/geo_config.h +0 -10
  131. package/dist/prebuilt/iOS-iphonesimulator/include/geo_ctrans.inc +0 -84
  132. package/dist/prebuilt/iOS-iphonesimulator/include/geo_keyp.h +0 -128
  133. package/dist/prebuilt/iOS-iphonesimulator/include/geo_normalize.h +0 -259
  134. package/dist/prebuilt/iOS-iphonesimulator/include/geo_simpletags.h +0 -73
  135. package/dist/prebuilt/iOS-iphonesimulator/include/geo_tiffp.h +0 -109
  136. package/dist/prebuilt/iOS-iphonesimulator/include/geokeys.h +0 -52
  137. package/dist/prebuilt/iOS-iphonesimulator/include/geokeys.inc +0 -78
  138. package/dist/prebuilt/iOS-iphonesimulator/include/geokeys_v1_1.inc +0 -85
  139. package/dist/prebuilt/iOS-iphonesimulator/include/geonames.h +0 -149
  140. package/dist/prebuilt/iOS-iphonesimulator/include/geotiff.h +0 -177
  141. package/dist/prebuilt/iOS-iphonesimulator/include/geotiffio.h +0 -20
  142. package/dist/prebuilt/iOS-iphonesimulator/include/geovalues.h +0 -115
  143. package/dist/prebuilt/iOS-iphonesimulator/include/xtiffio.h +0 -101
  144. package/dist/prebuilt/iOS-iphonesimulator/lib/libgeotiff.a +0 -0
  145. package/dist/prebuilt/iOS-iphonesimulator/lib/libgeotiff.la +0 -41
  146. package/dist/prebuilt/iOS-iphonesimulator/lib/pkgconfig/libgeotiff.pc +0 -11
  147. package/dist/prebuilt/iOS-iphonesimulator/share/man/man1/applygeo.1 +0 -31
  148. package/dist/prebuilt/iOS-iphonesimulator/share/man/man1/geotifcp.1 +0 -156
  149. package/dist/prebuilt/iOS-iphonesimulator/share/man/man1/listgeo.1 +0 -51
  150. package/geotiff.xcframework/Info.plist +0 -50
  151. package/geotiff.xcframework/ios-arm64_arm64e/Headers/cpl_serv.h +0 -258
  152. package/geotiff.xcframework/ios-arm64_arm64e/Headers/epsg_datum.inc +0 -174
  153. package/geotiff.xcframework/ios-arm64_arm64e/Headers/epsg_ellipse.inc +0 -48
  154. package/geotiff.xcframework/ios-arm64_arm64e/Headers/epsg_gcs.inc +0 -193
  155. package/geotiff.xcframework/ios-arm64_arm64e/Headers/epsg_pcs.inc +0 -1012
  156. package/geotiff.xcframework/ios-arm64_arm64e/Headers/epsg_pm.inc +0 -22
  157. package/geotiff.xcframework/ios-arm64_arm64e/Headers/epsg_proj.inc +0 -443
  158. package/geotiff.xcframework/ios-arm64_arm64e/Headers/epsg_units.inc +0 -35
  159. package/geotiff.xcframework/ios-arm64_arm64e/Headers/epsg_vertcs.inc +0 -46
  160. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geo_config.h +0 -10
  161. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geo_ctrans.inc +0 -84
  162. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geo_keyp.h +0 -128
  163. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geo_normalize.h +0 -259
  164. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geo_simpletags.h +0 -73
  165. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geo_tiffp.h +0 -109
  166. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geokeys.h +0 -52
  167. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geokeys.inc +0 -78
  168. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geokeys_v1_1.inc +0 -85
  169. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geonames.h +0 -149
  170. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geotiff.h +0 -177
  171. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geotiffio.h +0 -20
  172. package/geotiff.xcframework/ios-arm64_arm64e/Headers/geovalues.h +0 -115
  173. package/geotiff.xcframework/ios-arm64_arm64e/Headers/xtiffio.h +0 -101
  174. package/geotiff.xcframework/ios-arm64_arm64e/libgeotiff.a +0 -0
  175. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/cpl_serv.h +0 -258
  176. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/epsg_datum.inc +0 -174
  177. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/epsg_ellipse.inc +0 -48
  178. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/epsg_gcs.inc +0 -193
  179. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/epsg_pcs.inc +0 -1012
  180. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/epsg_pm.inc +0 -22
  181. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/epsg_proj.inc +0 -443
  182. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/epsg_units.inc +0 -35
  183. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/epsg_vertcs.inc +0 -46
  184. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geo_config.h +0 -10
  185. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geo_ctrans.inc +0 -84
  186. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geo_keyp.h +0 -128
  187. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geo_normalize.h +0 -259
  188. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geo_simpletags.h +0 -73
  189. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geo_tiffp.h +0 -109
  190. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geokeys.h +0 -52
  191. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geokeys.inc +0 -78
  192. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geokeys_v1_1.inc +0 -85
  193. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geonames.h +0 -149
  194. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geotiff.h +0 -177
  195. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geotiffio.h +0 -20
  196. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/geovalues.h +0 -115
  197. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/xtiffio.h +0 -101
  198. package/geotiff.xcframework/ios-arm64_arm64e_x86_64-simulator/libgeotiff.a +0 -0
@@ -1,128 +0,0 @@
1
- /**********************************************************************
2
- *
3
- * geo_keyp.h - private interface for GeoTIFF geokey tag parsing
4
- *
5
- * Written by: Niles D. Ritter
6
- *
7
- * copyright (c) 1995 Niles D. Ritter
8
- *
9
- * Permission granted to use this software, so long as this copyright
10
- * notice accompanies any products derived therefrom.
11
- **********************************************************************/
12
-
13
- #ifndef LIBGEOTIFF_GEO_KEYP_H_
14
- #define LIBGEOTIFF_GEO_KEYP_H_
15
-
16
- #include <stdlib.h> /* for size_t */
17
-
18
- #include "proj.h"
19
-
20
- /*
21
- * This structure contains the internal program
22
- * representation of the key entry.
23
- */
24
- struct GeoKey {
25
- int gk_key; /* GeoKey ID */
26
- size_t gk_size; /* data byte size */
27
- tagtype_t gk_type; /* TIFF data type */
28
- long gk_count; /* number of values */
29
- char* gk_data; /* pointer to data, or value */
30
- };
31
- typedef struct GeoKey GeoKey;
32
-
33
- /*
34
- * This structure represents the file-organization of
35
- * the key entry. Note that it assumes that short entries
36
- * are aligned along 2-byte boundaries.
37
- */
38
- struct KeyEntry {
39
- pinfo_t ent_key; /* GeoKey ID */
40
- pinfo_t ent_location; /* TIFF Tag ID or 0 */
41
- pinfo_t ent_count; /* GeoKey value count */
42
- pinfo_t ent_val_offset; /* value or tag offset */
43
- };
44
- typedef struct KeyEntry KeyEntry;
45
-
46
- /*
47
- * This is the header of the CoordSystemInfoTag. The 'Version'
48
- * will only change if the CoorSystemInfoTag structure changes;
49
- * The Major Revision will be incremented whenever a new set of
50
- * Keys is added or changed, while the Minor revision will be
51
- * incremented when only the set of Key-values is increased.
52
- */
53
- struct KeyHeader{
54
- pinfo_t hdr_version; /* GeoTIFF Version */
55
- pinfo_t hdr_rev_major; /* GeoKey Major Revision # */
56
- pinfo_t hdr_rev_minor; /* GeoKey Minor Revision # */
57
- pinfo_t hdr_num_keys; /* Number of GeoKeys */
58
- };
59
- typedef struct KeyHeader KeyHeader;
60
-
61
- /*
62
- * This structure holds temporary data while reading or writing
63
- * the tags.
64
- */
65
- struct TempKeyData {
66
- char *tk_asciiParams;
67
- int tk_asciiParamsLength;
68
- int tk_asciiParamsOffset;
69
- };
70
- typedef struct TempKeyData TempKeyData;
71
-
72
- struct gtiff;
73
-
74
- #ifndef GTIF_PRINT_FUNC_FORMAT
75
- #if defined(__GNUC__) && __GNUC__ >= 3
76
- #define GTIF_PRINT_FUNC_FORMAT( format_idx, arg_idx ) __attribute__((__format__ (__printf__, format_idx, arg_idx)))
77
- #else
78
- #define GTIF_PRINT_FUNC_FORMAT( format_idx, arg_idx )
79
- #endif
80
- #endif
81
-
82
- #ifndef GTERRORCALLBACK_DEFINED
83
- #define GTERRORCALLBACK_DEFINED
84
- /* Defined in both geotiff.h and geo_kep.h */
85
- typedef void (*GTErrorCallback) (struct gtiff*,
86
- int level,
87
- const char* msg, ...) GTIF_PRINT_FUNC_FORMAT(3,4);
88
- #endif
89
-
90
- struct gtiff {
91
- tiff_t* gt_tif; /* TIFF file descriptor */
92
- struct _TIFFMethod gt_methods; /* TIFF i/o methods */
93
- int gt_flags; /* file flags */
94
-
95
- pinfo_t gt_version; /* GeoTIFF Version */
96
- pinfo_t gt_rev_major;/* GeoKey Key Revision */
97
- pinfo_t gt_rev_minor;/* GeoKey Code Revision */
98
-
99
- int gt_num_keys; /* number of keys */
100
- GeoKey* gt_keys; /* array of keys */
101
- int* gt_keyindex; /* index of a key, if set*/
102
- int gt_keymin; /* smallest key set */
103
- int gt_keymax; /* largest key set */
104
-
105
- pinfo_t* gt_short; /* array of SHORT vals */
106
- double* gt_double; /* array of DOUBLE vals */
107
- int gt_nshorts; /* number of SHORT vals */
108
- int gt_ndoubles; /* number of DOUBLE vals */
109
-
110
- GTErrorCallback gt_error_callback;
111
- void* gt_user_data;
112
-
113
- PJ_CONTEXT *pj_context; /* PROJ context */
114
- int own_pj_context; /* whether we own the PROJ context */
115
-
116
- char szTmpBufferForGTIFValueNameEx[160];
117
- };
118
-
119
- typedef enum {
120
- FLAG_FILE_OPEN=1,
121
- FLAG_FILE_MODIFIED=2
122
- } gtiff_flags;
123
-
124
- #define MAX_KEYINDEX 65535 /* largest possible key */
125
- #define MAX_KEYS 100 /* maximum keys in a file */
126
- #define MAX_VALUES 1000 /* maximum values in a tag */
127
-
128
- #endif /* LIBGEOTIFF_GEO_KEYP_H_ */
@@ -1,259 +0,0 @@
1
- /******************************************************************************
2
- * $Id$
3
- *
4
- * Project: libgeotiff
5
- * Purpose: Include file related to geo_normalize.c containing Code to
6
- * normalize PCS and other composite codes in a GeoTIFF file.
7
- * Author: Frank Warmerdam, warmerda@home.com
8
- *
9
- ******************************************************************************
10
- * Copyright (c) 1999, Frank Warmerdam
11
- *
12
- * Permission is hereby granted, free of charge, to any person obtaining a
13
- * copy of this software and associated documentation files (the "Software"),
14
- * to deal in the Software without restriction, including without limitation
15
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16
- * and/or sell copies of the Software, and to permit persons to whom the
17
- * Software is furnished to do so, subject to the following conditions:
18
- *
19
- * The above copyright notice and this permission notice shall be included
20
- * in all copies or substantial portions of the Software.
21
- *
22
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28
- * DEALINGS IN THE SOFTWARE.
29
- *****************************************************************************/
30
-
31
- #ifndef GEO_NORMALIZE_H_INCLUDED
32
- #define GEO_NORMALIZE_H_INCLUDED
33
-
34
- #include <stdio.h>
35
- #include "geotiff.h"
36
-
37
- #ifdef __cplusplus
38
- extern "C" {
39
- #endif
40
-
41
- /**
42
- * \file geo_normalize.h
43
- *
44
- * Include file for extended projection definition normalization api.
45
- */
46
-
47
- #define MAX_GTIF_PROJPARMS 10
48
-
49
- /**
50
- * Holds a definition of a coordinate system in normalized form.
51
- */
52
-
53
- typedef struct {
54
- /** From GTModelTypeGeoKey tag. Can have the values ModelTypeGeographic
55
- or ModelTypeProjected. */
56
- short Model;
57
-
58
- /** From ProjectedCSTypeGeoKey tag. For example PCS_NAD27_UTM_zone_3N.*/
59
- short PCS;
60
-
61
- /** From GeographicTypeGeoKey tag. For example GCS_WGS_84 or
62
- GCS_Voirol_1875_Paris. Includes datum and prime meridian value. */
63
- short GCS;
64
-
65
- /** From ProjLinearUnitsGeoKey if found, or from GeogLinearUnitsGeoKey otherwise. For example Linear_Meter. */
66
- short UOMLength;
67
-
68
- /** One UOMLength = UOMLengthInMeters meters. */
69
- double UOMLengthInMeters;
70
-
71
- /** The angular units of the GCS. */
72
- short UOMAngle;
73
-
74
- /** One UOMAngle = UOMLengthInDegrees degrees. */
75
- double UOMAngleInDegrees;
76
-
77
- /** Datum from GeogGeodeticDatumGeoKey tag. For example Datum_WGS84 */
78
- short Datum;
79
-
80
- /** Prime meridian from GeogPrimeMeridianGeoKey. For example PM_Greenwich
81
- or PM_Paris. */
82
- short PM;
83
-
84
- /** Decimal degrees of longitude between this prime meridian and
85
- Greenwich. Prime meridians to the west of Greenwich are negative. */
86
- double PMLongToGreenwich;
87
-
88
- /** Ellipsoid identifier from GeogELlipsoidGeoKey. For example
89
- Ellipse_Clarke_1866. */
90
- short Ellipsoid;
91
-
92
- /** The length of the semi major ellipse axis in meters. */
93
- double SemiMajor;
94
-
95
- /** The length of the semi minor ellipse axis in meters. */
96
- double SemiMinor;
97
-
98
- /* This #if is primary intended to maintain binary compatibility with older
99
- versions of libgeotiff for MrSID binaries (for example). */
100
- #if !defined(GEO_NORMALIZE_DISABLE_TOWGS84)
101
- /** TOWGS84 transformation values (0/3/7) */
102
- short TOWGS84Count;
103
-
104
- /** TOWGS84 transformation values */
105
- double TOWGS84[7];
106
- #endif /* !defined(GEO_NORMALIZE_DISABLE_TOWGS84) */
107
-
108
- /** Projection id from ProjectionGeoKey. For example Proj_UTM_11S. */
109
- short ProjCode;
110
-
111
- /** EPSG identifier for underlying projection method. From the EPSG
112
- TRF_METHOD table. */
113
- short Projection;
114
-
115
- /** GeoTIFF identifier for underlying projection method. While some of
116
- these values have corresponding values in EPSG (Projection field),
117
- others do not. For example CT_TransverseMercator. */
118
- short CTProjection;
119
-
120
- /** Number of projection parameters in ProjParm and ProjParmId. */
121
- int nParms;
122
-
123
- /** Projection parameter value. The identify of this parameter
124
- is established from the corresponding entry in ProjParmId. The
125
- value will be measured in meters, or decimal degrees if it is a
126
- linear or angular measure. */
127
- double ProjParm[MAX_GTIF_PROJPARMS];
128
-
129
- /** Projection parameter identifier. For example ProjFalseEastingGeoKey.
130
- The value will be 0 for unused table entries. */
131
- int ProjParmId[MAX_GTIF_PROJPARMS]; /* geokey identifier,
132
- eg. ProjFalseEastingGeoKey*/
133
-
134
- /** Special zone map system code (MapSys_UTM_South, MapSys_UTM_North,
135
- MapSys_State_Plane or KvUserDefined if none apply. */
136
- int MapSys;
137
-
138
- /** UTM, or State Plane Zone number, zero if not known. */
139
- int Zone;
140
-
141
- /** Do we have any definition at all? 0 if no geokeys found */
142
- int DefnSet;
143
-
144
- } GTIFDefn;
145
-
146
- int GTIF_DLL GTIFGetPCSInfoEx( void* ctx, /* The void* should be a PJ_CONTEXT* */
147
- int nPCSCode, char **ppszEPSGName,
148
- short *pnProjOp, short *pnUOMLengthCode,
149
- short *pnGeogCS );
150
- int GTIF_DLL GTIFGetPCSInfo( int nPCSCode, char **ppszEPSGName,
151
- short *pnProjOp,
152
- short *pnUOMLengthCode, short *pnGeogCS );
153
-
154
- int GTIF_DLL GTIFGetProjTRFInfoEx( void* ctx, /* The void* should be a PJ_CONTEXT* */
155
- int nProjTRFCode,
156
- char **ppszProjTRFName,
157
- short * pnProjMethod,
158
- double * padfProjParams );
159
- int GTIF_DLL GTIFGetProjTRFInfo( int nProjTRFCode,
160
- char ** ppszProjTRFName,
161
- short * pnProjMethod,
162
- double * padfProjParams );
163
-
164
- int GTIF_DLL GTIFGetGCSInfoEx( void* ctx, /* The void* should be a PJ_CONTEXT* */
165
- int nGCSCode, char ** ppszName,
166
- short * pnDatum, short * pnPM, short *pnUOMAngle );
167
- int GTIF_DLL GTIFGetGCSInfo( int nGCSCode, char **ppszName,
168
- short *pnDatum, short *pnPM, short *pnUOMAngle );
169
-
170
- int GTIF_DLL GTIFGetDatumInfoEx( void* ctx, /* The void* should be a PJ_CONTEXT* */
171
- int nDatumCode, char ** ppszName, short * pnEllipsoid );
172
- int GTIF_DLL GTIFGetDatumInfo( int nDatumCode, char **ppszName,
173
- short * pnEllipsoid );
174
-
175
- int GTIF_DLL GTIFGetEllipsoidInfoEx( void* ctx, /* The void* should be a PJ_CONTEXT* */
176
- int nEllipseCode, char ** ppszName,
177
- double * pdfSemiMajor, double * pdfSemiMinor );
178
- int GTIF_DLL GTIFGetEllipsoidInfo( int nEllipsoid, char ** ppszName,
179
- double * pdfSemiMajor,
180
- double * pdfSemiMinor );
181
-
182
- int GTIF_DLL GTIFGetPMInfoEx( void* ctx, /* The void* should be a PJ_CONTEXT* */
183
- int nPMCode, char ** ppszName, double *pdfOffset );
184
- int GTIF_DLL GTIFGetPMInfo( int nPM, char **ppszName,
185
- double * pdfLongToGreenwich );
186
-
187
- double GTIF_DLL GTIFAngleStringToDD( const char *pszAngle, int nUOMAngle );
188
-
189
- int GTIF_DLL GTIFGetUOMLengthInfoEx( void* ctx, /* The void* should be a PJ_CONTEXT* */
190
- int nUOMLengthCode,
191
- char **ppszUOMName,
192
- double * pdfInMeters );
193
- int GTIF_DLL GTIFGetUOMLengthInfo( int nUOMLengthCode,
194
- char **ppszUOMName,
195
- double * pdfInMeters );
196
-
197
- int GTIF_DLL GTIFGetUOMAngleInfoEx( void* ctx, /* The void* should be a PJ_CONTEXT* */
198
- int nUOMAngleCode,
199
- char **ppszUOMName,
200
- double * pdfInDegrees );
201
- int GTIF_DLL GTIFGetUOMAngleInfo( int nUOMAngleCode,
202
- char **ppszUOMName,
203
- double * pdfInDegrees );
204
- double GTIF_DLL GTIFAngleToDD( double dfAngle, int nUOMAngle );
205
-
206
-
207
- /* this should be used to free strings returned by GTIFGet... funcs */
208
- void GTIF_DLL GTIFFreeMemory( char * );
209
-
210
- /* The void* should be a PJ_CONTEXT* */
211
- void GTIF_DLL GTIFAttachPROJContext( GTIF *psGTIF, void* pjContext );
212
- void GTIF_DLL *GTIFGetPROJContext( GTIF *psGTIF, int instantiateIfNeeded,
213
- int* out_gtif_own_pj_context );
214
-
215
- int GTIF_DLL GTIFGetDefn( GTIF *psGTIF, GTIFDefn * psDefn );
216
- void GTIF_DLL GTIFPrintDefn( GTIFDefn *, FILE * );
217
- void GTIF_DLL GTIFPrintDefnEx( GTIF *psGTIF, GTIFDefn *, FILE * );
218
- GTIFDefn GTIF_DLL *GTIFAllocDefn( void );
219
- void GTIF_DLL GTIFFreeDefn( GTIFDefn * );
220
-
221
- const char GTIF_DLL *GTIFDecToDMS( double, const char *, int );
222
-
223
- /*
224
- * These are useful for recognising UTM and State Plane.
225
- */
226
-
227
- #define MapSys_UTM_North -9001
228
- #define MapSys_UTM_South -9002
229
- #define MapSys_State_Plane_27 -9003
230
- #define MapSys_State_Plane_83 -9004
231
-
232
- int GTIF_DLL GTIFMapSysToPCS( int MapSys, int Datum, int nZone );
233
- int GTIF_DLL GTIFMapSysToProj( int MapSys, int nZone );
234
- int GTIF_DLL GTIFPCSToMapSys( int PCSCode, int * pDatum, int * pZone );
235
- int GTIF_DLL GTIFProjToMapSys( int ProjCode, int * pZone );
236
-
237
- /*
238
- * These are only useful if using libgeotiff with libproj (PROJ.4+).
239
- */
240
- char GTIF_DLL *GTIFGetProj4Defn( GTIFDefn * );
241
-
242
- int GTIF_DLL GTIFProj4ToLatLong( GTIFDefn *, int, double *, double * );
243
- int GTIF_DLL GTIFProj4FromLatLong( GTIFDefn *, int, double *, double * );
244
-
245
- int GTIF_DLL GTIFSetFromProj4( GTIF *gtif, const char *proj4 );
246
-
247
-
248
- /*
249
- * The following functions were used up to libgeotiff 1.4.X series, but
250
- * are now no-operation, since there is no longer any CSV use in libgeotiff.
251
- */
252
- void GTIF_DLL GTIFDeaccessCSV( void );
253
-
254
-
255
- #ifdef __cplusplus
256
- }
257
- #endif
258
-
259
- #endif /* ndef GEO_NORMALIZE_H_INCLUDED */
@@ -1,73 +0,0 @@
1
- /******************************************************************************
2
- * Copyright (c) 2008, Frank Warmerdam
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining a
5
- * copy of this software and associated documentation files (the "Software"),
6
- * to deal in the Software without restriction, including without limitation
7
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
- * and/or sell copies of the Software, and to permit persons to whom the
9
- * Software is furnished to do so, subject to the following conditions:
10
- *
11
- * The above copyright notice and this permission notice shall be included
12
- * in all copies or substantial portions of the Software.
13
- *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20
- * DEALINGS IN THE SOFTWARE.
21
- *****************************************************************************
22
- *
23
- * geo_simpletags.h
24
- *
25
- * Provides interface for a "simple tags io in memory" mechanism
26
- * as an alternative to accessing a real tiff file using libtiff.
27
- *
28
- ****************************************************************************/
29
-
30
- #ifndef LIBGEOTIFF_GEO_SIMPLETAGS_H_
31
- #define LIBGEOTIFF_GEO_SIMPLETAGS_H_
32
-
33
- #include "geotiff.h"
34
-
35
- #if defined(__cplusplus)
36
- extern "C" {
37
- #endif
38
-
39
- #define STT_SHORT 1
40
- #define STT_DOUBLE 2
41
- #define STT_ASCII 3
42
-
43
- typedef struct {
44
- int tag;
45
- int count;
46
- int type;
47
- void *data;
48
- } ST_KEY;
49
-
50
- typedef struct {
51
- int key_count;
52
- ST_KEY *key_list;
53
- } ST_TIFF;
54
-
55
- typedef void *STIFF;
56
-
57
- void GTIF_DLL GTIFSetSimpleTagsMethods(TIFFMethod *method);
58
-
59
- int GTIF_DLL ST_SetKey( ST_TIFF *, int tag, int count,
60
- int st_type, void *data );
61
- int GTIF_DLL ST_GetKey( ST_TIFF *, int tag, int *count,
62
- int *st_type, void **data_ptr );
63
-
64
- ST_TIFF GTIF_DLL *ST_Create( void );
65
- void GTIF_DLL ST_Destroy( ST_TIFF * );
66
-
67
- int GTIF_DLL ST_TagType( int tag );
68
-
69
- #if defined(__cplusplus)
70
- }
71
- #endif
72
-
73
- #endif /* LIBGEOTIFF_GEO_SIMPLETAGS_H_ */
@@ -1,109 +0,0 @@
1
- /**********************************************************************
2
- *
3
- * geo_tiffp.h - Private interface for TIFF tag parsing.
4
- *
5
- * Written by: Niles D. Ritter
6
- *
7
- * This interface file encapsulates the interface to external TIFF
8
- * file-io routines and definitions. The current configuration
9
- * assumes that the "libtiff" module is used, but if you have your
10
- * own TIFF reader, you may replace the definitions with your own
11
- * here, and replace the implementations in geo_tiffp.c. No other
12
- * modules have any explicit dependence on external TIFF modules.
13
- *
14
- * copyright (c) 1995 Niles D. Ritter
15
- *
16
- * Permission granted to use this software, so long as this copyright
17
- * notice accompanies any products derived therefrom.
18
- **********************************************************************/
19
-
20
- #ifndef LIBGEOTIFF_GEO_TIFFP_H_
21
- #define LIBGEOTIFF_GEO_TIFFP_H_
22
-
23
- /**********************************************************************
24
- *
25
- * Private includes
26
- *
27
- * If you are not using libtiff and XTIFF, replace this include file
28
- * with the appropriate one for your own TIFF parsing routines.
29
- *
30
- **********************************************************************/
31
-
32
- #include "geotiff.h"
33
- #include "xtiffio.h"
34
- #include "cpl_serv.h"
35
-
36
- /*
37
- * dblparam_t is the type that a double precision
38
- * floating point value will have on the parameter
39
- * stack (when coerced by the compiler). You shouldn't
40
- * have to change this.
41
- */
42
- #ifdef applec
43
- typedef extended dblparam_t;
44
- #else
45
- typedef double dblparam_t;
46
- #endif
47
-
48
-
49
- /**********************************************************************
50
- *
51
- * Private defines
52
- *
53
- * If you are not using "libtiff"/LIBXTIFF, replace these definitions
54
- * with the appropriate definitions to access the geo-tags
55
- *
56
- **********************************************************************/
57
-
58
- typedef unsigned short pinfo_t; /* SHORT ProjectionInfo tag type */
59
- typedef TIFF tiff_t; /* TIFF file descriptor */
60
- typedef tdata_t gdata_t; /* pointer to data */
61
- typedef tsize_t gsize_t; /* data allocation size */
62
-
63
- #define GTIFF_GEOKEYDIRECTORY TIFFTAG_GEOKEYDIRECTORY /* from xtiffio.h */
64
- #define GTIFF_DOUBLEPARAMS TIFFTAG_GEODOUBLEPARAMS
65
- #define GTIFF_ASCIIPARAMS TIFFTAG_GEOASCIIPARAMS
66
- #define GTIFF_PIXELSCALE TIFFTAG_GEOPIXELSCALE
67
- #define GTIFF_TRANSMATRIX TIFFTAG_GEOTRANSMATRIX
68
- #define GTIFF_INTERGRAPH_MATRIX TIFFTAG_INTERGRAPH_MATRIX
69
- #define GTIFF_TIEPOINTS TIFFTAG_GEOTIEPOINTS
70
- #define GTIFF_LOCAL 0
71
-
72
- #if defined(__cplusplus)
73
- extern "C" {
74
- #endif
75
-
76
- /*
77
- * Method function pointer types
78
- */
79
- typedef int (*GTGetFunction) (tiff_t *tif, pinfo_t tag, int *count, void *value );
80
- typedef int (*GTSetFunction) (tiff_t *tif, pinfo_t tag, int count, void *value );
81
- typedef tagtype_t (*GTTypeFunction) (tiff_t *tif, pinfo_t tag);
82
- typedef struct _TIFFMethod {
83
- GTGetFunction get;
84
- GTSetFunction set;
85
- GTTypeFunction type;
86
- } TIFFMethod_t;
87
-
88
- /**********************************************************************
89
- *
90
- * Protected Function Declarations
91
- *
92
- * These routines are exposed implementations, and should not
93
- * be used by external GEOTIFF client programs.
94
- *
95
- **********************************************************************/
96
-
97
- extern gsize_t _gtiff_size[]; /* TIFF data sizes */
98
- extern void GTIF_DLL _GTIFSetDefaultTIFF(TIFFMethod *method);
99
- extern gdata_t GTIF_DLL _GTIFcalloc(gsize_t);
100
- extern gdata_t GTIF_DLL _GTIFrealloc(gdata_t,gsize_t);
101
- extern void GTIF_DLL _GTIFFree(gdata_t data);
102
- extern void GTIF_DLL _GTIFmemcpy(gdata_t out,gdata_t in,gsize_t size);
103
-
104
- #if defined(__cplusplus)
105
- }
106
- #endif
107
-
108
-
109
- #endif /* LIBGEOTIFF_GEO_TIFFP_H_ */
@@ -1,52 +0,0 @@
1
- /**********************************************************************
2
- *
3
- * geokeys.h - Public registry for valid GEOTIFF GeoKeys.
4
- *
5
- * Written By: Niles D. Ritter
6
- *
7
- * copyright (c) 1995 Niles D. Ritter
8
- *
9
- * Permission granted to use this software, so long as this copyright
10
- * notice accompanies any products derived therefrom.
11
- **********************************************************************/
12
-
13
- #ifndef LIBGEOTIFF_GEOKEYS_H_
14
- #define LIBGEOTIFF_GEOKEYS_H_
15
-
16
- /* The GvCurrentRevision number should be incremented whenever a
17
- * new set of Keys are defined or modified in "geokeys.inc", and comments
18
- * added to the "Revision History" section above. If only code
19
- * _values_ are augmented, the "GvCurrentMinorRev" number should
20
- * be incremented instead (see "geovalues.h"). Whenever the
21
- * GvCurrentRevision is incremented, the GvCurrentMinorRev should
22
- * be reset to zero.
23
- *
24
- *
25
- * The Section Numbers below refer to the GeoTIFF Spec sections
26
- * in which these values are documented.
27
- *
28
- */
29
- #define GvCurrentRevision 1 /* Final 1.0 Release */
30
-
31
- #ifdef ValuePair
32
- # undef ValuePair
33
- #endif
34
- #define ValuePair(name,value) name = value,
35
-
36
- typedef enum {
37
- BaseGeoKey = 1024, /* First valid code */
38
-
39
- # include "geokeys.inc" /* geokey database */
40
- #define ONLY_GEOTIFF_V1_1_CHANGES
41
- # include "geokeys_v1_1.inc" /* geokey database */
42
- #undef ONLY_GEOTIFF_V1_1_CHANGES
43
- ReservedEndGeoKey = 32767,
44
-
45
- /* Key space available for Private or internal use */
46
- PrivateBaseGeoKey = 32768, /* Consistent with TIFF Private tags */
47
- PrivateEndGeoKey = 65535,
48
-
49
- EndGeoKey = 65535 /* Largest Possible GeoKey ID */
50
- } geokey_t;
51
-
52
- #endif /* LIBGEOTIFF_GEOKEYS_H_ */