ffi-gdal 1.0.0.beta16 → 1.0.0

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 (324) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +17 -0
  3. data/.github/workflows/codacy.yml +61 -0
  4. data/.github/workflows/codeql.yml +74 -0
  5. data/.github/workflows/continuous-integration.yml +36 -0
  6. data/.github/workflows/dependency-review.yml +20 -0
  7. data/.github/workflows/specs-in-docker.yml +27 -0
  8. data/.gitignore +3 -0
  9. data/.rspec +1 -0
  10. data/.rubocop.yml +10 -80
  11. data/.rubocop_todo.yml +23 -40
  12. data/.ruby-version +1 -1
  13. data/Changelog-0.x.md +512 -0
  14. data/Changelog.md +12 -0
  15. data/Dockerfile.gdal2 +110 -0
  16. data/Dockerfile.gdal3 +73 -0
  17. data/README.md +25 -14
  18. data/Rakefile +0 -8
  19. data/Tiltfile +91 -0
  20. data/bin/bundle +123 -0
  21. data/bin/docker-clean +8 -0
  22. data/bin/rake +29 -0
  23. data/bin/rspec +29 -0
  24. data/bin/rubocop +29 -0
  25. data/docker-compose.yml +25 -0
  26. data/examples/extract_and_colorize.rb +0 -13
  27. data/examples/geometries.rb +14 -14
  28. data/examples/ogr_layer_to_layer.rb +1 -3
  29. data/examples/raster_erasing.rb +1 -0
  30. data/examples/remove_small_polygons.rb +1 -1
  31. data/examples/testing_gdal.rb +20 -17
  32. data/examples/warping.rb +9 -7
  33. data/ffi-gdal.gemspec +12 -6
  34. data/lib/ext/ffi_library_function_checks.rb +2 -2
  35. data/lib/ext/to_bool.rb +5 -3
  36. data/lib/ffi/cpl/conv.rb +27 -25
  37. data/lib/ffi/cpl/error.rb +19 -20
  38. data/lib/ffi/cpl/hash_set.rb +4 -4
  39. data/lib/ffi/cpl/http.rb +3 -3
  40. data/lib/ffi/cpl/http_result.rb +8 -8
  41. data/lib/ffi/cpl/list.rb +1 -1
  42. data/lib/ffi/cpl/mime_part.rb +2 -2
  43. data/lib/ffi/cpl/minixml.rb +7 -7
  44. data/lib/ffi/cpl/progress.rb +8 -8
  45. data/lib/ffi/cpl/quad_tree.rb +14 -14
  46. data/lib/ffi/cpl/rect_obj.rb +3 -3
  47. data/lib/ffi/cpl/string.rb +17 -20
  48. data/lib/ffi/cpl/vsi.rb +13 -13
  49. data/lib/ffi/cpl/xml_node.rb +3 -3
  50. data/lib/ffi/extensions/gdal/extensions/all.rb +4 -0
  51. data/lib/ffi/extensions/gdal/extensions/version.rb +9 -0
  52. data/lib/ffi/extensions/gdal/extensions.rb +12 -0
  53. data/lib/ffi/extensions/rttopo/gbox.rb +19 -0
  54. data/lib/ffi/extensions/rttopo/geom.rb +16 -0
  55. data/lib/ffi/extensions/rttopo.rb +41 -0
  56. data/lib/ffi/gdal/alg.rb +277 -277
  57. data/lib/ffi/gdal/color_entry.rb +3 -3
  58. data/lib/ffi/gdal/gcp.rb +6 -6
  59. data/lib/ffi/gdal/gdal.rb +349 -349
  60. data/lib/ffi/gdal/grid.rb +134 -134
  61. data/lib/ffi/gdal/grid_data_metrics_options.rb +4 -4
  62. data/lib/ffi/gdal/grid_inverse_distance_to_a_power_options.rb +9 -9
  63. data/lib/ffi/gdal/grid_moving_average_options.rb +4 -4
  64. data/lib/ffi/gdal/grid_nearest_neighbor_options.rb +3 -3
  65. data/lib/ffi/gdal/matching.rb +3 -3
  66. data/lib/ffi/gdal/rpc_info.rb +17 -17
  67. data/lib/ffi/gdal/transformer_info.rb +4 -4
  68. data/lib/ffi/gdal/version.rb +1 -1
  69. data/lib/ffi/gdal/vrt.rb +39 -39
  70. data/lib/ffi/gdal/warp_options.rb +34 -34
  71. data/lib/ffi/gdal/warper.rb +90 -90
  72. data/lib/ffi/gdal.rb +2 -31
  73. data/lib/ffi/ogr/api.rb +175 -167
  74. data/lib/ffi/ogr/contour_writer_info.rb +4 -4
  75. data/lib/ffi/ogr/core.rb +107 -107
  76. data/lib/ffi/ogr/envelope.rb +3 -3
  77. data/lib/ffi/ogr/envelope_3d.rb +5 -5
  78. data/lib/ffi/ogr/featurestyle.rb +3 -3
  79. data/lib/ffi/ogr/field.rb +22 -22
  80. data/lib/ffi/ogr/geocoding.rb +4 -4
  81. data/lib/ffi/ogr/srs_api.rb +154 -155
  82. data/lib/ffi/ogr/style_param.rb +3 -3
  83. data/lib/ffi/ogr/style_value.rb +4 -4
  84. data/lib/gdal/color_entry.rb +1 -5
  85. data/lib/gdal/color_interpretation.rb +7 -3
  86. data/lib/gdal/color_table.rb +46 -27
  87. data/lib/gdal/cpl_error_handler.rb +26 -6
  88. data/lib/gdal/data_type.rb +10 -3
  89. data/lib/gdal/dataset.rb +171 -85
  90. data/lib/gdal/dataset_mixins/algorithm_methods.rb +44 -44
  91. data/lib/gdal/dataset_mixins/matching.rb +1 -1
  92. data/lib/gdal/dataset_mixins/warp_methods.rb +4 -2
  93. data/lib/gdal/driver.rb +38 -21
  94. data/lib/gdal/environment_methods.rb +6 -6
  95. data/lib/gdal/extensions/all.rb +3 -0
  96. data/lib/gdal/{color_entry_mixins → extensions/color_entry}/extensions.rb +4 -1
  97. data/lib/gdal/{color_table_mixins → extensions/color_table}/extensions.rb +3 -0
  98. data/lib/gdal/extensions/dataset/extensions.rb +205 -0
  99. data/lib/gdal/{driver_mixins → extensions/driver}/extensions.rb +6 -2
  100. data/lib/gdal/{geo_transform_mixins → extensions/geo_transform}/extensions.rb +10 -8
  101. data/lib/gdal/{gridder → extensions/gridder}/point_extracting.rb +7 -5
  102. data/lib/gdal/{gridder.rb → extensions/gridder.rb} +33 -33
  103. data/lib/gdal/{gridder_options.rb → extensions/gridder_options.rb} +13 -14
  104. data/lib/gdal/{raster_attribute_table_mixins → extensions/raster_attribute_table}/extensions.rb +8 -6
  105. data/lib/gdal/{raster_band_mixins → extensions/raster_band}/algorithm_extensions.rb +8 -6
  106. data/lib/gdal/{raster_band_mixins → extensions/raster_band}/coloring_extensions.rb +6 -4
  107. data/lib/gdal/{raster_band_mixins → extensions/raster_band}/extensions.rb +9 -5
  108. data/lib/gdal/{raster_band_mixins → extensions/raster_band}/io_extensions.rb +18 -14
  109. data/lib/gdal/{raster_band_classifier.rb → extensions/raster_band_classifier.rb} +3 -5
  110. data/lib/gdal/geo_transform.rb +1 -6
  111. data/lib/gdal/grid.rb +3 -2
  112. data/lib/gdal/grid_algorithms.rb +9 -9
  113. data/lib/gdal/internal_helpers.rb +46 -9
  114. data/lib/gdal/major_object.rb +11 -3
  115. data/lib/gdal/options.rb +26 -32
  116. data/lib/gdal/raster_attribute_table.rb +63 -37
  117. data/lib/gdal/raster_band.rb +164 -116
  118. data/lib/gdal/raster_band_mixins/algorithm_methods.rb +26 -25
  119. data/lib/gdal/rpc_info.rb +3 -2
  120. data/lib/gdal/transformers/approximate_transformer.rb +12 -3
  121. data/lib/gdal/transformers/base_general_image_projection_transformer.rb +15 -2
  122. data/lib/gdal/transformers/gcp_transformer.rb +27 -19
  123. data/lib/gdal/transformers/general_image_projection_transformer.rb +8 -6
  124. data/lib/gdal/transformers/general_image_projection_transformer2.rb +9 -6
  125. data/lib/gdal/transformers/general_image_projection_transformer3.rb +6 -2
  126. data/lib/gdal/transformers/geolocation_transformer.rb +12 -4
  127. data/lib/gdal/transformers/reprojection_transformer.rb +11 -3
  128. data/lib/gdal/transformers/rpc_transformer.rb +11 -2
  129. data/lib/gdal/transformers/tps_transformer.rb +12 -4
  130. data/lib/gdal/version_info.rb +2 -2
  131. data/lib/gdal/virtual_dataset.rb +2 -0
  132. data/lib/gdal/warp_operation.rb +65 -54
  133. data/lib/gdal/warp_options.rb +9 -11
  134. data/lib/ogr/coordinate_transformation.rb +23 -9
  135. data/lib/ogr/data_source.rb +68 -37
  136. data/lib/ogr/driver.rb +18 -17
  137. data/lib/ogr/envelope.rb +0 -3
  138. data/lib/ogr/error_handling.rb +22 -24
  139. data/lib/ogr/extensions/all.rb +3 -0
  140. data/lib/ogr/{data_source_mixins → extensions/data_source}/capability_methods.rb +2 -0
  141. data/lib/ogr/extensions/data_source/data_source_extensions.rb +16 -0
  142. data/lib/ogr/{driver_mixins → extensions/driver}/capability_methods.rb +5 -1
  143. data/lib/ogr/extensions/envelope/extensions.rb +114 -0
  144. data/lib/ogr/extensions/feature/extensions.rb +87 -0
  145. data/lib/ogr/extensions/feature_definition/extensions.rb +43 -0
  146. data/lib/ogr/extensions/geometries/point/extensions.rb +19 -0
  147. data/lib/ogr/extensions/geometry/container_mixins.rb +56 -0
  148. data/lib/ogr/extensions/geometry/ewkb_io_extensions.rb +44 -0
  149. data/lib/ogr/extensions/geometry/ewkb_record.rb +94 -0
  150. data/lib/ogr/{geometry_mixins → extensions/geometry}/extensions.rb +16 -9
  151. data/lib/ogr/extensions/geometry/rttopo_extensions.rb +48 -0
  152. data/lib/ogr/extensions/geometry/wkb_record.rb +63 -0
  153. data/lib/ogr/extensions/geometry_types/curve/extensions.rb +68 -0
  154. data/lib/ogr/{layer_mixins → extensions/layer}/capability_methods.rb +4 -0
  155. data/lib/ogr/{layer_mixins → extensions/layer}/extensions.rb +11 -6
  156. data/lib/ogr/extensions/spatial_reference/extensions.rb +38 -0
  157. data/lib/ogr/extensions/spatial_reference/initializers.rb +138 -0
  158. data/lib/ogr/extensions/style_table/extensions.rb +31 -0
  159. data/lib/ogr/feature.rb +173 -88
  160. data/lib/ogr/feature_definition.rb +53 -45
  161. data/lib/ogr/field.rb +17 -19
  162. data/lib/ogr/field_definition.rb +30 -18
  163. data/lib/ogr/geocoder.rb +11 -4
  164. data/lib/ogr/geometries/line_string.rb +1 -0
  165. data/lib/ogr/geometries/line_string_25d.rb +0 -9
  166. data/lib/ogr/geometries/linear_ring.rb +2 -2
  167. data/lib/ogr/geometries/point.rb +0 -9
  168. data/lib/ogr/geometry.rb +116 -49
  169. data/lib/ogr/geometry_field_definition.rb +31 -15
  170. data/lib/ogr/geometry_types/container.rb +26 -28
  171. data/lib/ogr/geometry_types/curve.rb +5 -61
  172. data/lib/ogr/geometry_types/surface.rb +1 -1
  173. data/lib/ogr/internal_helpers.rb +2 -2
  174. data/lib/ogr/layer.rb +12 -10
  175. data/lib/ogr/layer_mixins/ogr_feature_methods.rb +39 -27
  176. data/lib/ogr/layer_mixins/ogr_field_methods.rb +66 -50
  177. data/lib/ogr/layer_mixins/ogr_layer_method_methods.rb +17 -8
  178. data/lib/ogr/layer_mixins/ogr_query_filter_methods.rb +7 -6
  179. data/lib/ogr/layer_mixins/ogr_sql_methods.rb +15 -7
  180. data/lib/ogr/spatial_reference.rb +79 -42
  181. data/lib/ogr/spatial_reference_mixins/coordinate_system_getter_setters.rb +149 -118
  182. data/lib/ogr/spatial_reference_mixins/exporters.rb +87 -51
  183. data/lib/ogr/spatial_reference_mixins/importers.rb +88 -43
  184. data/lib/ogr/spatial_reference_mixins/morphers.rb +12 -8
  185. data/lib/ogr/spatial_reference_mixins/parameter_getter_setters.rb +27 -13
  186. data/lib/ogr/style_table.rb +15 -5
  187. data/lib/ogr/style_tool.rb +29 -15
  188. data/lib/ogr.rb +1 -0
  189. data/rakelib/docker.rake +10 -0
  190. data/sorbet/rbi/hidden-definitions/errors.txt +21790 -0
  191. data/tilt/gdal2.yml +22 -0
  192. data/tilt/gdal3.yml +22 -0
  193. metadata +116 -280
  194. data/History.md +0 -360
  195. data/lib/ext/error_symbols.rb +0 -7
  196. data/lib/gdal/dataset_mixins/extensions.rb +0 -380
  197. data/lib/gdal/merger.rb +0 -132
  198. data/lib/ogr/data_source_extensions.rb +0 -10
  199. data/lib/ogr/envelope_extensions.rb +0 -110
  200. data/lib/ogr/feature_definition_extensions.rb +0 -39
  201. data/lib/ogr/feature_extensions.rb +0 -87
  202. data/lib/ogr/geometry_mixins/container_mixins.rb +0 -25
  203. data/lib/ogr/spatial_reference_extensions.rb +0 -34
  204. data/lib/ogr/style_table_extensions.rb +0 -26
  205. data/spec/ffi-gdal_spec.rb +0 -24
  206. data/spec/integration/gdal/color_table_info_spec.rb +0 -78
  207. data/spec/integration/gdal/dataset_info_spec.rb +0 -342
  208. data/spec/integration/gdal/driver_info_spec.rb +0 -170
  209. data/spec/integration/gdal/geo_transform_info_spec.rb +0 -226
  210. data/spec/integration/gdal/gridder_spec.rb +0 -331
  211. data/spec/integration/gdal/raster_attribute_table_info_spec.rb +0 -229
  212. data/spec/integration/gdal/raster_band_algorithms_spec.rb +0 -35
  213. data/spec/integration/gdal/raster_band_info_spec.rb +0 -320
  214. data/spec/integration/ogr/layer_spec.rb +0 -95
  215. data/spec/spec_helper.rb +0 -116
  216. data/spec/support/images/123.tiff +0 -0
  217. data/spec/support/images/osgeo/gdal/data/hfa/float-rle.img +0 -0
  218. data/spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.lgo +0 -31
  219. data/spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.tif +0 -0
  220. data/spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.tif.msk +0 -0
  221. data/spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.txt +0 -10
  222. data/spec/support/images/osgeo/geotiff/gdal_eg/cea.tif +0 -0
  223. data/spec/support/images/osgeo/geotiff/gdal_eg/cea.txt +0 -84
  224. data/spec/support/images/osgeo/geotiff/zi_imaging/image0.lgo +0 -45
  225. data/spec/support/images/osgeo/geotiff/zi_imaging/image0.tif +0 -0
  226. data/spec/support/integration_help.rb +0 -34
  227. data/spec/support/shapefiles/states_21basic/states.dbf +0 -0
  228. data/spec/support/shapefiles/states_21basic/states.prj +0 -1
  229. data/spec/support/shapefiles/states_21basic/states.sbn +0 -0
  230. data/spec/support/shapefiles/states_21basic/states.sbx +0 -0
  231. data/spec/support/shapefiles/states_21basic/states.shp +0 -0
  232. data/spec/support/shapefiles/states_21basic/states.shp.xml +0 -3
  233. data/spec/support/shapefiles/states_21basic/states.shx +0 -0
  234. data/spec/support/shared_contexts.rb +0 -28
  235. data/spec/support/shared_examples/gdal/major_object_examples.rb +0 -55
  236. data/spec/support/shared_examples/ogr/a_25d_geometry.rb +0 -9
  237. data/spec/support/shared_examples/ogr/a_container_geometry.rb +0 -49
  238. data/spec/support/shared_examples/ogr/a_geometry.rb +0 -406
  239. data/spec/support/shared_examples/ogr/a_line_string.rb +0 -18
  240. data/spec/support/test_style_table.txt +0 -3
  241. data/spec/support/worldfiles/SR_50M/SR_50M.VERSION.txt +0 -1
  242. data/spec/support/worldfiles/SR_50M/SR_50M.prj +0 -1
  243. data/spec/support/worldfiles/SR_50M/SR_50M.tfw +0 -6
  244. data/spec/support/worldfiles/SR_50M/SR_50M.tif +0 -0
  245. data/spec/unit/ext/error_symbols_spec.rb +0 -69
  246. data/spec/unit/ext/numeric_as_data_type_spec.rb +0 -115
  247. data/spec/unit/ffi/gdal_spec.rb +0 -73
  248. data/spec/unit/gdal/color_entry_spec.rb +0 -8
  249. data/spec/unit/gdal/color_interpretation_spec.rb +0 -8
  250. data/spec/unit/gdal/color_table_mixins/extensions_spec.rb +0 -62
  251. data/spec/unit/gdal/color_table_spec.rb +0 -146
  252. data/spec/unit/gdal/data_type_spec.rb +0 -74
  253. data/spec/unit/gdal/dataset_mixins/warp_methods_spec.rb +0 -55
  254. data/spec/unit/gdal/dataset_spec.rb +0 -148
  255. data/spec/unit/gdal/driver_mixins/extensions_spec.rb +0 -24
  256. data/spec/unit/gdal/driver_spec.rb +0 -51
  257. data/spec/unit/gdal/environment_methods_spec.rb +0 -8
  258. data/spec/unit/gdal/geo_transform_mixins/extensions_spec.rb +0 -69
  259. data/spec/unit/gdal/geo_transform_spec.rb +0 -265
  260. data/spec/unit/gdal/grid_spec.rb +0 -98
  261. data/spec/unit/gdal/gridder/point_extracting_spec.rb +0 -101
  262. data/spec/unit/gdal/gridder_options_spec.rb +0 -185
  263. data/spec/unit/gdal/gridder_spec.rb +0 -182
  264. data/spec/unit/gdal/internal_helpers_spec.rb +0 -278
  265. data/spec/unit/gdal/major_object_spec.rb +0 -10
  266. data/spec/unit/gdal/options_spec.rb +0 -33
  267. data/spec/unit/gdal/raster_attribute_table_spec.rb +0 -7
  268. data/spec/unit/gdal/raster_band_classifier_spec.rb +0 -260
  269. data/spec/unit/gdal/raster_band_mixins/extensions_spec.rb +0 -73
  270. data/spec/unit/gdal/raster_band_mixins/io_extensions_spec.rb +0 -135
  271. data/spec/unit/gdal/raster_band_spec.rb +0 -8
  272. data/spec/unit/gdal/rpc_info_spec.rb +0 -8
  273. data/spec/unit/gdal/version_info_spec.rb +0 -10
  274. data/spec/unit/gdal/virtual_dataset_spec.rb +0 -34
  275. data/spec/unit/gdal/warp_operation_spec.rb +0 -8
  276. data/spec/unit/gdal/warp_options_spec.rb +0 -338
  277. data/spec/unit/ogr/coordinate_transformation_spec.rb +0 -104
  278. data/spec/unit/ogr/data_source_mixins/capability_methods_spec.rb +0 -32
  279. data/spec/unit/ogr/data_source_spec.rb +0 -223
  280. data/spec/unit/ogr/driver_mixins/capability_methods_spec.rb +0 -20
  281. data/spec/unit/ogr/driver_spec.rb +0 -152
  282. data/spec/unit/ogr/envelope_spec.rb +0 -324
  283. data/spec/unit/ogr/feature_definition_spec.rb +0 -296
  284. data/spec/unit/ogr/feature_extensions_spec.rb +0 -90
  285. data/spec/unit/ogr/feature_spec.rb +0 -363
  286. data/spec/unit/ogr/field_definition_spec.rb +0 -118
  287. data/spec/unit/ogr/field_spec.rb +0 -195
  288. data/spec/unit/ogr/geometries/geometry_collection_25d_spec.rb +0 -25
  289. data/spec/unit/ogr/geometries/geometry_collection_spec.rb +0 -188
  290. data/spec/unit/ogr/geometries/line_string_25d_spec.rb +0 -25
  291. data/spec/unit/ogr/geometries/line_string_spec.rb +0 -107
  292. data/spec/unit/ogr/geometries/linear_ring_spec.rb +0 -92
  293. data/spec/unit/ogr/geometries/multi_line_string_25d_spec.rb +0 -25
  294. data/spec/unit/ogr/geometries/multi_line_string_spec.rb +0 -16
  295. data/spec/unit/ogr/geometries/multi_point_25d_spec.rb +0 -25
  296. data/spec/unit/ogr/geometries/multi_point_spec.rb +0 -16
  297. data/spec/unit/ogr/geometries/multi_polygon_25d_spec.rb +0 -25
  298. data/spec/unit/ogr/geometries/multi_polygon_spec.rb +0 -43
  299. data/spec/unit/ogr/geometries/none_geometry_spec.rb +0 -14
  300. data/spec/unit/ogr/geometries/point_25d_spec.rb +0 -25
  301. data/spec/unit/ogr/geometries/point_spec.rb +0 -307
  302. data/spec/unit/ogr/geometries/polygon_25d_spec.rb +0 -25
  303. data/spec/unit/ogr/geometries/polygon_spec.rb +0 -19
  304. data/spec/unit/ogr/geometries/unknown_geometry_spec.rb +0 -12
  305. data/spec/unit/ogr/geometry_field_definition_spec.rb +0 -73
  306. data/spec/unit/ogr/geometry_spec.rb +0 -711
  307. data/spec/unit/ogr/internal_helpers_spec.rb +0 -70
  308. data/spec/unit/ogr/layer_mixins/capability_methods_spec.rb +0 -90
  309. data/spec/unit/ogr/layer_mixins/ogr_feature_methods_spec.rb +0 -155
  310. data/spec/unit/ogr/layer_mixins/ogr_field_methods_spec.rb +0 -434
  311. data/spec/unit/ogr/layer_mixins/ogr_layer_method_methods_spec.rb +0 -22
  312. data/spec/unit/ogr/layer_mixins/ogr_query_filter_methods_spec.rb +0 -44
  313. data/spec/unit/ogr/layer_mixins/ogr_sql_methods_spec.rb +0 -14
  314. data/spec/unit/ogr/layer_spec.rb +0 -98
  315. data/spec/unit/ogr/spatial_reference_mixins/coordinate_system_getter_setters_spec.rb +0 -48
  316. data/spec/unit/ogr/spatial_reference_mixins/exporters_spec.rb +0 -151
  317. data/spec/unit/ogr/spatial_reference_mixins/importers_spec.rb +0 -40
  318. data/spec/unit/ogr/spatial_reference_mixins/morphers_spec.rb +0 -38
  319. data/spec/unit/ogr/spatial_reference_mixins/parameter_getter_setters_spec.rb +0 -105
  320. data/spec/unit/ogr/spatial_reference_mixins/type_checks_spec.rb +0 -159
  321. data/spec/unit/ogr/spatial_reference_spec.rb +0 -44
  322. data/spec/unit/ogr/style_table_spec.rb +0 -108
  323. data/spec/unit/ogr/style_tool_spec.rb +0 -159
  324. data/spec/unit/version_info_spec.rb +0 -50
@@ -1,320 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
- require 'ffi-gdal'
5
- require 'gdal'
6
-
7
- RSpec.describe 'Raster Band Info', type: :integration do
8
- let(:original_tiff) do
9
- path = '../../../spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.tif'
10
- File.expand_path(path, __dir__)
11
- end
12
-
13
- let(:nodata_tiff) do
14
- path = '../../../spec/support/images/123.tiff'
15
- File.expand_path(path, __dir__)
16
- end
17
-
18
- let(:nodata_dataset) { GDAL::Dataset.open(nodata_tiff, 'r') }
19
-
20
- let(:tmp_tiff) { make_temp_test_file(original_tiff) }
21
- let(:dataset) { GDAL::Dataset.open(tmp_tiff, 'w') }
22
- after { dataset.close }
23
- subject { dataset.raster_band(1) }
24
-
25
- it_behaves_like 'a major object'
26
-
27
- describe '#x_size' do
28
- it 'is a non-zero Integer' do
29
- expect(subject.x_size).to be_a Integer
30
- expect(subject.x_size).to be > 0
31
- end
32
- end
33
-
34
- describe '#y_size' do
35
- it 'is a non-zero Integer' do
36
- expect(subject.y_size).to be_a Integer
37
- expect(subject.y_size).to be > 0
38
- end
39
- end
40
-
41
- describe '#access_flag' do
42
- specify { expect(subject.access_flag).to eq :GA_Update }
43
- end
44
-
45
- describe '#number' do
46
- it 'is a non-zero Integer' do
47
- expect(subject.number).to be_a Integer
48
- expect(subject.number).to be > 0
49
- end
50
- end
51
-
52
- describe '#color_interpretation' do
53
- it 'is a Symbol; one of FFI::GDAL::GDAL::ColorInterp' do
54
- expect(subject.color_interpretation).to be_a Symbol
55
- expect(FFI::GDAL::GDAL::ColorInterp.symbols).to include subject.color_interpretation
56
- end
57
- end
58
-
59
- describe '#color_table' do
60
- it 'is a GDAL::ColorTable' do
61
- expect(subject.color_table).to be_a GDAL::ColorTable if subject.color_table
62
- end
63
- end
64
-
65
- describe '#data_type' do
66
- it 'is a Symbol; one of FFI::GDAL::GDAL::DataType' do
67
- expect(subject.data_type).to be_a Symbol
68
- expect(FFI::GDAL::GDAL::DataType.symbols).to include subject.data_type
69
- end
70
- end
71
-
72
- describe '#block_size' do
73
- it 'is a Hash with x and y keys that are >= 1' do
74
- expect(subject.block_size).to be_a Hash
75
- expect(subject.block_size[:x]).to be >= 1
76
- expect(subject.block_size[:y]).to be >= 1
77
- end
78
- end
79
-
80
- describe '#category_names' do
81
- it 'is an Array of Strings' do
82
- expect(subject.category_names).to be_an Array
83
-
84
- subject.category_names.each do |category_name|
85
- expect(category_name).to be_a String
86
- expect(category_name).to_not be_empty
87
- end
88
- end
89
- end
90
-
91
- describe '#category_names=' do
92
- it 'sets the category names' do
93
- subject.category_names = %w[one two three]
94
-
95
- expect(subject.category_names).to eq %w[one two three]
96
- end
97
- end
98
-
99
- context 'no data not set' do
100
- describe '#no_data_value' do
101
- it 'is a Hash with :value and :is_associated keys' do
102
- expect(subject.no_data_value).to be_an Hash
103
-
104
- expect(subject.no_data_value[:value]).to be_nil
105
- expect(subject.no_data_value[:is_associated]).to_not be_nil
106
- end
107
- end
108
- end
109
-
110
- context 'no data is set' do
111
- subject { nodata_dataset.raster_band(1) }
112
-
113
- describe '#no_data_value' do
114
- it 'is a Hash with :value and :is_associated keys' do
115
- expect(subject.no_data_value).to be_an Hash
116
-
117
- expect(subject.no_data_value[:value]).to be_a Float
118
- expect(subject.no_data_value[:is_associated]).to_not be_nil
119
- end
120
- end
121
- end
122
-
123
- describe '#overview_count' do
124
- it 'is a Fixnum' do
125
- expect(subject.overview_count).to be_a Integer
126
- end
127
- end
128
-
129
- describe '#arbitrary_overviews?' do
130
- it 'is true or false' do
131
- expect([true, false]).to include subject.arbitrary_overviews?
132
- end
133
- end
134
-
135
- describe '#overview' do
136
- it 'returns a GDAL::RasterBand if the overview exists' do
137
- overview = subject.overview(0)
138
- expect(overview).to be_a GDAL::RasterBand if overview
139
- end
140
- end
141
-
142
- describe '#raster_sample_overview' do
143
- it 'returns a GDAL::RasterBand if the overview exists' do
144
- overview = subject.raster_sample_overview
145
- expect(overview).to be_a GDAL::RasterBand
146
- end
147
- end
148
-
149
- describe '#mask_band' do
150
- it 'returns a GDAL::RasterBand if the mask_band exists' do
151
- overview = subject.mask_band
152
- expect(overview).to be_a GDAL::RasterBand
153
- end
154
- end
155
-
156
- describe '#mask_flags' do
157
- it 'returns an Array of Symbols' do
158
- expect(subject.mask_flags).to eq([:GMF_ALL_VALID]).or eq([:GMF_PER_DATASET])
159
- end
160
- end
161
-
162
- describe '#statistics' do
163
- it 'returns a Hash with populated values' do
164
- expect(subject.statistics).to be_a Hash
165
- expect(%i[minimum maximum mean standard_deviation]).
166
- to eq subject.statistics.keys
167
- end
168
-
169
- it 'has a :minimum that ranges between 0.0/-32768.0 and 255.0' do
170
- min = subject.statistics[:minimum]
171
- unless min == -32_768.0
172
- expect(subject.statistics[:minimum]).to(satisfy { |v| v >= 0 || v == -32_768 })
173
- expect(subject.statistics[:minimum]).to be <= 255.0
174
- end
175
- end
176
- end
177
-
178
- describe '#scale' do
179
- it 'returns a Hash with populated values' do
180
- expect(subject.scale).to be_a Hash
181
- expect(%i[value is_meaningful]).to eq subject.scale.keys
182
- end
183
-
184
- it 'has a :value that is a Float' do
185
- expect(subject.scale[:value]).to be_a Float
186
- end
187
-
188
- it 'has a :is_meaningful that is false (since the examples are geotiffs)' do
189
- expect(subject.scale[:is_meaningful]).to eq false
190
- end
191
- end
192
-
193
- describe '#scale=' do
194
- it 'does nothing (because the file formats dont support it)' do
195
- subject.scale = 0.1
196
- expect(subject.scale[:value]).to eq 0.1
197
- end
198
- end
199
-
200
- describe '#offset' do
201
- it 'returns a Hash with populated values' do
202
- expect(subject.offset).to be_a Hash
203
- expect(%i[value is_meaningful]).to eq subject.offset.keys
204
- end
205
-
206
- it 'has a :value that is a Float' do
207
- expect(subject.offset[:value]).to be_a Float
208
- end
209
-
210
- it 'has a :is_meaningful that is false (since the examples are geotiffs)' do
211
- expect(subject.offset[:is_meaningful]).to eq false
212
- end
213
- end
214
-
215
- describe '#offset=' do
216
- it 'does nothing (because the file formats dont support it)' do
217
- subject.offset = 0.1
218
- expect(subject.offset[:value]).to eq 0.1
219
- end
220
- end
221
-
222
- describe '#unit_type' do
223
- it 'returns a String' do
224
- expect(subject.unit_type).to be_a String
225
- end
226
- end
227
-
228
- describe '#unit_type=' do
229
- it 'does nothing (because the file formats dont support it)' do
230
- if defined? FFI::GDAL::GDAL::GDALSetRasterUnitType
231
- subject.unit_type = 'ft'
232
- expect(subject.unit_type).to eq 'ft'
233
- else
234
- skip 'GDALSetRasterUnitType not supported'
235
- end
236
- end
237
- end
238
-
239
- describe '#default_histogram' do
240
- let!(:histogram) { subject.default_histogram }
241
-
242
- it 'returns a Hash with :minimum, :maximum, :buckets, and :totals' do
243
- if histogram
244
- expect(histogram).to be_a Hash
245
- expect(histogram.keys).to eq %i[minimum maximum buckets totals]
246
- end
247
- end
248
-
249
- it 'has :minimum as a Float' do
250
- expect(histogram[:minimum]).to be_a Float if histogram
251
- end
252
-
253
- it 'has :maximum as a Float' do
254
- expect(histogram[:maximum]).to be_a Float if histogram
255
- end
256
-
257
- it 'has :buckets as a Fixnum' do
258
- expect(histogram[:buckets]).to be_a Integer if histogram
259
- end
260
-
261
- it 'has :totals as an Array of 0 or 256 Fixnums' do
262
- if histogram
263
- expect(histogram[:totals]).to be_an Array
264
- expect(histogram[:totals].size).to eq(256).or eq(0)
265
- expect(histogram[:totals].all? { |t| t.class == Integer }).to eq true
266
- end
267
- end
268
- end
269
-
270
- describe '#default_raster_attribute_table' do
271
- it 'returns a GDAL::RasterAttributeTable' do
272
- rat = subject.default_raster_attribute_table
273
-
274
- expect(rat).to be_a GDAL::RasterAttributeTable if rat
275
- end
276
- end
277
-
278
- describe '#min_max' do
279
- it 'returns a Hash with :min and :max keys' do
280
- expect(subject.min_max).to be_a Hash
281
- expect(subject.min_max.size).to eq 2
282
- expect(subject.min_max[:min]).to be_a Float
283
- expect(subject.min_max[:max]).to be_a Float
284
- end
285
-
286
- it 'has a min that is < its max' do
287
- expect(subject.min_max[:min]).to be < subject.min_max[:max]
288
- end
289
- end
290
-
291
- describe '#minimum_value' do
292
- it 'returns a Hash with populated values' do
293
- expect(subject.minimum_value).to be_a Hash
294
- expect(%i[value is_tight]).to eq subject.minimum_value.keys
295
- end
296
-
297
- it 'has a :value that is a Float' do
298
- expect(subject.minimum_value[:value]).to be_a Float
299
- end
300
-
301
- it 'has a :is_tight that is nil (since the examples are geotiffs)' do
302
- # expect(subject.minimum_value[:is_tight]).to eq nil
303
- end
304
- end
305
-
306
- describe '#maximum_value' do
307
- it 'returns a Hash with populated values' do
308
- expect(subject.maximum_value).to be_a Hash
309
- expect(%i[value is_tight]).to eq subject.maximum_value.keys
310
- end
311
-
312
- it 'has a :value that is a Float' do
313
- expect(subject.maximum_value[:value]).to be_a Float
314
- end
315
-
316
- it 'has a :is_tight that is nil (since the examples are geotiffs)' do
317
- # expect(subject.maximum_value[:is_tight]).to eq nil
318
- end
319
- end
320
- end
@@ -1,95 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
- require 'ogr'
5
-
6
- RSpec.describe 'OGR::Layer' do
7
- let(:data_source) do
8
- OGR::DataSource.open('spec/support/shapefiles/states_21basic/states.shp', 'r')
9
- end
10
-
11
- let(:layer0) do
12
- data_source.layer(0)
13
- end
14
-
15
- subject do
16
- layer0
17
- end
18
-
19
- describe '#name' do
20
- subject { layer0.name }
21
- it { is_expected.to eq 'states' }
22
- end
23
-
24
- describe '#geometry_type' do
25
- subject { layer0.geometry_type }
26
- it { is_expected.to eq :wkbPolygon }
27
- end
28
-
29
- describe '#feature_count' do
30
- subject { layer0.feature_count }
31
- it { is_expected.to eq 51 }
32
- end
33
-
34
- describe '#feature' do
35
- subject { layer0.feature(0) }
36
- it { is_expected.to be_a OGR::Feature }
37
- end
38
-
39
- describe '#next_feature' do
40
- subject { layer0.next_feature }
41
- after { subject.destroy! }
42
- it { is_expected.to be_a OGR::Feature }
43
- end
44
-
45
- describe '#features_read' do
46
- subject { layer0.features_read }
47
- it { is_expected.to be >= 0 }
48
- end
49
-
50
- describe '#features' do
51
- subject { layer0.features }
52
- it { is_expected.to be_an Array }
53
- specify { expect(subject.first).to be_a OGR::Feature }
54
- specify { expect(subject.size).to eq layer0.feature_count }
55
- end
56
-
57
- describe '#feature_definition' do
58
- subject { layer0.feature_definition }
59
- it { is_expected.to be_a OGR::FeatureDefinition }
60
- end
61
-
62
- describe '#spatial_reference' do
63
- subject { layer0.spatial_reference }
64
- it { is_expected.to be_a OGR::SpatialReference }
65
- end
66
-
67
- describe '#extent' do
68
- subject { layer0.extent }
69
- it { is_expected.to be_a OGR::Envelope }
70
- end
71
-
72
- describe '#fid_column' do
73
- subject { layer0.fid_column }
74
- it { is_expected.to be_a String }
75
- it { is_expected.to be_empty }
76
- end
77
-
78
- describe '#geometry_column' do
79
- subject { layer0.geometry_column }
80
- it { is_expected.to be_a String }
81
- it { is_expected.to be_empty }
82
- end
83
-
84
- describe '#style_table' do
85
- subject { layer0.style_table }
86
- it { is_expected.to be_nil }
87
- end
88
-
89
- describe '#geometry_from_extent' do
90
- it 'is a Polygon' do
91
- geometry = subject.geometry_from_extent
92
- expect(geometry).to be_a OGR::Polygon
93
- end
94
- end
95
- end
data/spec/spec_helper.rb DELETED
@@ -1,116 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'simplecov'
4
- SimpleCov.start do
5
- add_filter '/spec/'
6
- add_group 'GDAL', 'lib/gdal'
7
- add_group 'OGR', 'lib/ogr'
8
- add_group 'FFI', 'lib/ffi'
9
- add_group 'ext', 'lib/ext'
10
- end
11
-
12
- $LOAD_PATH.unshift File.expand_path('lib', __dir__)
13
- require 'ffi-gdal'
14
- require 'byebug'
15
-
16
- Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
17
-
18
- # This file was generated by the `rspec --init` command. Conventionally, all
19
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
20
- # The generated `.rspec` file contains `--require spec_helper` which will cause this
21
- # file to always be loaded, without a need to explicitly require it in any files.
22
- #
23
- # Given that it is always loaded, you are encouraged to keep this file as
24
- # light-weight as possible. Requiring heavyweight dependencies from this file
25
- # will add to the boot time of your test suite on EVERY test run, even for an
26
- # individual file that may not need all of that loaded. Instead, consider making
27
- # a separate helper file that requires the additional dependencies and performs
28
- # the additional setup, and require it from the spec files that actually need it.
29
- #
30
- # The `.rspec` file also contains a few flags that are not defaults but that
31
- # users commonly want.
32
- #
33
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
34
- RSpec.configure do |config|
35
- # rspec-expectations config goes here. You can use an alternate
36
- # assertion/expectation library such as wrong or the stdlib/minitest
37
- # assertions if you prefer.
38
- config.expect_with :rspec do |expectations|
39
- # This option will default to `true` in RSpec 4. It makes the `description`
40
- # and `failure_message` of custom matchers include text for helper methods
41
- # defined using `chain`, e.g.:
42
- # be_bigger_than(2).and_smaller_than(4).description
43
- # # => "be bigger than 2 and smaller than 4"
44
- # ...rather than:
45
- # # => "be bigger than 2"
46
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
47
- end
48
-
49
- # rspec-mocks config goes here. You can use an alternate test double
50
- # library (such as bogus or mocha) by changing the `mock_with` option here.
51
- config.mock_with :rspec do |mocks|
52
- # Prevents you from mocking or stubbing a method that does not exist on
53
- # a real object. This is generally recommended, and will default to
54
- # `true` in RSpec 4.
55
- mocks.verify_partial_doubles = true
56
- end
57
-
58
- # The settings below are suggested to provide a good initial experience
59
- # with RSpec, but feel free to customize to your heart's content.
60
-
61
- # These two settings work together to allow you to limit a spec run
62
- # to individual examples or groups you care about by tagging them with
63
- # `:focus` metadata. When nothing is tagged with `:focus`, all examples
64
- # get run.
65
- config.filter_run :focus
66
- config.run_all_when_everything_filtered = true
67
-
68
- # Limits the available syntax to the non-monkey patched syntax that is recommended.
69
- # For more details, see:
70
- # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
71
- # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
72
- # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
73
- config.disable_monkey_patching!
74
-
75
- # This setting enables warnings. It's recommended, but in some cases may
76
- # be too noisy due to issues in dependencies.
77
- config.warnings = true
78
-
79
- # Many RSpec users commonly either run the entire suite or an individual
80
- # file, and it's useful to allow more verbose output when running an
81
- # individual spec file.
82
- if config.files_to_run.one?
83
- # Use the documentation formatter for detailed output,
84
- # unless a formatter has already been configured
85
- # (e.g. via a command-line flag).
86
- config.default_formatter = 'doc'
87
- end
88
-
89
- # Print the 10 slowest examples and example groups at the
90
- # end of the spec run, to help surface which specs are running
91
- # particularly slow.
92
- config.profile_examples = 10
93
-
94
- # Run specs in random order to surface order dependencies. If you find an
95
- # order dependency and want to debug it, you can fix the order by providing
96
- # the seed, which is printed after each run.
97
- # --seed 1234
98
- config.order = :random
99
-
100
- # Seed global randomization in this process using the `--seed` CLI option.
101
- # Setting this allows you to use `--seed` to deterministically reproduce
102
- # test failures related to randomization by passing the same `--seed` value
103
- # as the one that triggered the failure.
104
- Kernel.srand config.seed
105
-
106
- config.include IntegrationHelp, type: :integration
107
-
108
- config.before do
109
- ::FFI::GDAL::GDAL.GDALAllRegister
110
- Dir[File.join('tmp', '*')].each { |f| File.unlink(f) if File.exist?(f) }
111
- end
112
-
113
- config.after(:example, type: :integration) do
114
- cleanup_test_files
115
- end
116
- end
Binary file
@@ -1,31 +0,0 @@
1
- Geotiff_Information:
2
- Version: 1
3
- Key_Revision: 1.0
4
- Tagged_Information:
5
- ModelTiepointTag (2,3):
6
- 50.5 50.5 0
7
- 9.00105738 52.001376 0
8
- ModelPixelScaleTag (1,3):
9
- 2.77777778e-005 2.77777778e-005 1
10
- End_Of_Tags.
11
- Keyed_Information:
12
- GTModelTypeGeoKey (Short,1): ModelTypeGeographic
13
- GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
14
- GeographicTypeGeoKey (Short,1): User-Defined
15
- GeogGeodeticDatumGeoKey (Short,1): User-Defined
16
- GeogAngularUnitsGeoKey (Short,1): Angular_Degree
17
- GeogEllipsoidGeoKey (Short,1): Ellipse_Bessel_1841
18
- Unknown-2062 (Double,7): 598.1 73.7 418.2
19
- 0.202 0.045 -2.455
20
- 6.7
21
- End_Of_Keys.
22
- End_Of_Geotiff.
23
-
24
- Ellipsoid: 7004/(unknown) (0.00,0.00)
25
-
26
- Corner Coordinates:
27
- Upper Left ( 8d59'58.76"E, 52d 0'10.00"N)
28
- Lower Left ( 8d59'58.76"E, 51d59'59.90"N)
29
- Upper Right ( 9d 0' 8.86"E, 52d 0'10.00"N)
30
- Lower Right ( 9d 0' 8.86"E, 51d59'59.90"N)
31
- Center ( 9d 0' 3.81"E, 52d 0' 4.95"N)
@@ -1,10 +0,0 @@
1
- GeogToWGS84GeoKey5.tif is an sample GeoTIFF file for the GeogToWGS84GeoKey
2
- geo key. After datum transformation to the WGS84 reference system the center
3
- of the image (marked by a red pixel) should be exactly at N 52� E 9� in a
4
- geographic coordinate system.
5
-
6
- The output of listgeo is included as GeogToWGS84GeoKey5.lgo.
7
-
8
- The files are placed in the public domain.
9
-
10
- Christian Zietz <czietz@gmx.net>
@@ -1,84 +0,0 @@
1
- Cyldindrical Equal Area
2
- -----------------------
3
-
4
- Frank Warmerdam
5
- warmerdam@pobox.com
6
-
7
- Created by reprojecting utm11-27.tif in pci_eg directory.
8
-
9
- Geotiff_Information:
10
- Version: 1
11
- Key_Revision: 1.0
12
- Tagged_Information:
13
- ModelTiepointTag (2,3):
14
- 0 0 0
15
- -28493.1668 4255884.54 0
16
- ModelPixelScaleTag (1,3):
17
- 60.022137 60.022137 0
18
- End_Of_Tags.
19
- Keyed_Information:
20
- GTModelTypeGeoKey (Short,1): ModelTypeProjected
21
- GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
22
- GTCitationGeoKey (Ascii,8): "unnamed"
23
- GeographicTypeGeoKey (Short,1): GCS_NAD27
24
- GeogCitationGeoKey (Ascii,6): "NAD27"
25
- GeogAngularUnitsGeoKey (Short,1): Angular_Degree
26
- ProjectedCSTypeGeoKey (Short,1): User-Defined
27
- ProjectionGeoKey (Short,1): User-Defined
28
- ProjCoordTransGeoKey (Short,1): CT_CylindricalEqualArea
29
- ProjLinearUnitsGeoKey (Short,1): Linear_Meter
30
- ProjStdParallel1GeoKey (Double,1): 33.75
31
- ProjNatOriginLongGeoKey (Double,1): -117.333333
32
- ProjFalseEastingGeoKey (Double,1): 0
33
- ProjFalseNorthingGeoKey (Double,1): 0
34
- End_Of_Keys.
35
- End_Of_Geotiff.
36
-
37
- Projection Method: CT_CylindricalEqualArea
38
- ProjStdParallel1GeoKey: 33.750000 ( 33d45' 0.00"N)
39
- ProjNatOriginLongGeoKey: -117.333333 (117d20' 0.00"W)
40
- ProjFalseEastingGeoKey: 0.000000 m
41
- ProjFalseNorthingGeoKey: 0.000000 m
42
- GCS: 4267/NAD27
43
- Datum: 6267/North American Datum 1927
44
- Ellipsoid: 7008/Clarke 1866 (6378206.40,6356583.80)
45
- Prime Meridian: 8901/Greenwich (0.000000/ 0d 0' 0.00"E)
46
- Projection Linear Units: 9001/metre (1.000000m)
47
-
48
- Corner Coordinates:
49
- Upper Left ( -28493.167, 4255884.544) (117d38'28.21"W, 33d54'13.08"N)
50
- Lower Left ( -28493.167, 4224973.143) (117d38'28.21"W, 33d37'30.66"N)
51
- Upper Right ( 2358.212, 4255884.544) (117d18'28.28"W, 33d54'13.08"N)
52
- Lower Right ( 2358.212, 4224973.143) (117d18'28.28"W, 33d37'30.66"N)
53
- Center ( -13067.478, 4240428.844) (117d28'28.24"W, 33d45'51.47"N)
54
-
55
- From gdalinfo:
56
-
57
- Driver: GTiff/GeoTIFF
58
- Size is 514, 515
59
- Coordinate System is:
60
- PROJCS["unnamed",
61
- GEOGCS["NAD27",
62
- DATUM["North_American_Datum_1927",
63
- SPHEROID["Clarke 1866",6378206.4,294.9786982138982,
64
- AUTHORITY["EPSG","7008"]],
65
- AUTHORITY["EPSG","6267"]],
66
- PRIMEM["Greenwich",0],
67
- UNIT["degree",0.0174532925199433],
68
- AUTHORITY["EPSG","4267"]],
69
- PROJECTION["Cylindrical_Equal_Area"],
70
- PARAMETER["standard_parallel_1",33.75],
71
- PARAMETER["central_meridian",-117.333333333333],
72
- PARAMETER["false_easting",0],
73
- PARAMETER["false_northing",0],
74
- UNIT["metre",1,
75
- AUTHORITY["EPSG","9001"]]]
76
- Origin = (-28493.166784,4255884.543802)
77
- Pixel Size = (60.02213698,-60.02213698)
78
- Corner Coordinates:
79
- Upper Left ( -28493.167, 4255884.544) (117d38'28.21"W, 33d54'13.08"N)
80
- Lower Left ( -28493.167, 4224973.143) (117d38'28.21"W, 33d37'30.66"N)
81
- Upper Right ( 2358.212, 4255884.544) (117d18'28.28"W, 33d54'13.08"N)
82
- Lower Right ( 2358.212, 4224973.143) (117d18'28.28"W, 33d37'30.66"N)
83
- Center ( -13067.478, 4240428.844) (117d28'28.24"W, 33d45'51.47"N)
84
- Band 1 Block=514x15 Type=Byte, ColorInterp=Gray