ffi-gdal 1.0.0.beta6 → 1.0.0.beta7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/History.md +40 -0
  3. data/bitbucket-pipelines.yml +16 -0
  4. data/lib/ffi/gdal/version.rb +1 -1
  5. data/lib/ffi/gdal/warp_options.rb +18 -4
  6. data/lib/ffi/gdal/warper.rb +17 -1
  7. data/lib/ffi/gdal.rb +1 -1
  8. data/lib/gdal/color_entry_mixins/extensions.rb +0 -14
  9. data/lib/gdal/color_table_mixins/extensions.rb +0 -14
  10. data/lib/gdal/dataset_mixins/algorithm_methods.rb +2 -2
  11. data/lib/gdal/dataset_mixins/extensions.rb +3 -43
  12. data/lib/gdal/dataset_mixins/warp_methods.rb +50 -11
  13. data/lib/gdal/geo_transform_mixins/extensions.rb +0 -17
  14. data/lib/gdal/grid.rb +2 -1
  15. data/lib/gdal/gridder/point_extracting.rb +1 -2
  16. data/lib/gdal/gridder.rb +7 -2
  17. data/lib/gdal/options.rb +14 -13
  18. data/lib/gdal/raster_attribute_table_mixins/extensions.rb +0 -15
  19. data/lib/gdal/raster_band.rb +5 -3
  20. data/lib/gdal/raster_band_classifier.rb +5 -3
  21. data/lib/gdal/raster_band_mixins/extensions.rb +0 -35
  22. data/lib/gdal/raster_band_mixins/io_extensions.rb +4 -3
  23. data/lib/gdal/warp_options.rb +99 -35
  24. data/lib/gdal.rb +1 -0
  25. data/lib/ogr/data_source_extensions.rb +0 -19
  26. data/lib/ogr/envelope_extensions.rb +0 -22
  27. data/lib/ogr/feature_definition_extensions.rb +0 -18
  28. data/lib/ogr/feature_extensions.rb +0 -27
  29. data/lib/ogr/field_definition.rb +0 -3
  30. data/lib/ogr/geometry.rb +0 -1
  31. data/lib/ogr/geometry_field_definition.rb +0 -4
  32. data/lib/ogr/geometry_mixins/extensions.rb +0 -29
  33. data/lib/ogr/geometry_types/curve.rb +1 -1
  34. data/lib/ogr/layer.rb +3 -1
  35. data/lib/ogr/layer_mixins/extensions.rb +1 -25
  36. data/lib/ogr/spatial_reference.rb +10 -2
  37. data/lib/ogr/spatial_reference_extensions.rb +0 -26
  38. data/lib/ogr/style_table_extensions.rb +0 -10
  39. data/spec/integration/gdal/raster_band_info_spec.rb +27 -5
  40. data/spec/integration/ogr/layer_spec.rb +0 -6
  41. data/spec/support/images/123.tiff +0 -0
  42. data/spec/unit/ffi/gdal_spec.rb +1 -0
  43. data/spec/unit/gdal/dataset_mixins/warp_methods_spec.rb +52 -0
  44. data/spec/unit/gdal/geo_transform_spec.rb +0 -13
  45. data/spec/unit/gdal/grid_spec.rb +8 -0
  46. data/spec/unit/gdal/gridder_spec.rb +40 -0
  47. data/spec/unit/gdal/options_spec.rb +26 -1
  48. data/spec/unit/gdal/warp_options_spec.rb +336 -0
  49. data/spec/unit/ogr/feature_definition_spec.rb +0 -19
  50. data/spec/unit/ogr/feature_extensions_spec.rb +1 -1
  51. data/spec/unit/ogr/field_definition_spec.rb +0 -19
  52. data/spec/unit/ogr/geometry_field_definition_spec.rb +0 -16
  53. data/spec/unit/ogr/style_table_spec.rb +0 -26
  54. metadata +10 -5
  55. data/lib/ogr/field_definition_extensions.rb +0 -22
  56. data/lib/ogr/geometry_field_definition_extensions.rb +0 -19
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-gdal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta6
4
+ version: 1.0.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Loveless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -181,6 +181,7 @@ files:
181
181
  - README.md
182
182
  - Rakefile
183
183
  - TODO.md
184
+ - bitbucket-pipelines.yml
184
185
  - examples/extract_and_colorize.rb
185
186
  - examples/geometries.rb
186
187
  - examples/gridding.rb
@@ -328,7 +329,6 @@ files:
328
329
  - lib/ogr/feature_extensions.rb
329
330
  - lib/ogr/field.rb
330
331
  - lib/ogr/field_definition.rb
331
- - lib/ogr/field_definition_extensions.rb
332
332
  - lib/ogr/geocoder.rb
333
333
  - lib/ogr/geometries/geometry_collection.rb
334
334
  - lib/ogr/geometries/geometry_collection_25d.rb
@@ -349,7 +349,6 @@ files:
349
349
  - lib/ogr/geometries/unknown_geometry.rb
350
350
  - lib/ogr/geometry.rb
351
351
  - lib/ogr/geometry_field_definition.rb
352
- - lib/ogr/geometry_field_definition_extensions.rb
353
352
  - lib/ogr/geometry_mixins/container_mixins.rb
354
353
  - lib/ogr/geometry_mixins/extensions.rb
355
354
  - lib/ogr/geometry_types/container.rb
@@ -386,6 +385,7 @@ files:
386
385
  - spec/integration/gdal/raster_band_info_spec.rb
387
386
  - spec/integration/ogr/layer_spec.rb
388
387
  - spec/spec_helper.rb
388
+ - spec/support/images/123.tiff
389
389
  - spec/support/images/osgeo/gdal/data/hfa/float-rle.img
390
390
  - spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.lgo
391
391
  - spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.tif
@@ -422,6 +422,7 @@ files:
422
422
  - spec/unit/gdal/color_table_mixins/extensions_spec.rb
423
423
  - spec/unit/gdal/color_table_spec.rb
424
424
  - spec/unit/gdal/data_type_spec.rb
425
+ - spec/unit/gdal/dataset_mixins/warp_methods_spec.rb
425
426
  - spec/unit/gdal/dataset_spec.rb
426
427
  - spec/unit/gdal/driver_mixins/extensions_spec.rb
427
428
  - spec/unit/gdal/driver_spec.rb
@@ -444,6 +445,7 @@ files:
444
445
  - spec/unit/gdal/version_info_spec.rb
445
446
  - spec/unit/gdal/virtual_dataset_spec.rb
446
447
  - spec/unit/gdal/warp_operation_spec.rb
448
+ - spec/unit/gdal/warp_options_spec.rb
447
449
  - spec/unit/ogr/coordinate_transformation_spec.rb
448
450
  - spec/unit/ogr/data_source_mixins/capability_methods_spec.rb
449
451
  - spec/unit/ogr/data_source_spec.rb
@@ -513,7 +515,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
513
515
  version: 1.3.1
514
516
  requirements: []
515
517
  rubyforge_project:
516
- rubygems_version: 2.5.1
518
+ rubygems_version: 2.4.5.1
517
519
  signing_key:
518
520
  specification_version: 4
519
521
  summary: FFI wrapper for GDAL/OGR.
@@ -529,6 +531,7 @@ test_files:
529
531
  - spec/integration/gdal/raster_band_info_spec.rb
530
532
  - spec/integration/ogr/layer_spec.rb
531
533
  - spec/spec_helper.rb
534
+ - spec/support/images/123.tiff
532
535
  - spec/support/images/osgeo/gdal/data/hfa/float-rle.img
533
536
  - spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.lgo
534
537
  - spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.tif
@@ -565,6 +568,7 @@ test_files:
565
568
  - spec/unit/gdal/color_table_mixins/extensions_spec.rb
566
569
  - spec/unit/gdal/color_table_spec.rb
567
570
  - spec/unit/gdal/data_type_spec.rb
571
+ - spec/unit/gdal/dataset_mixins/warp_methods_spec.rb
568
572
  - spec/unit/gdal/dataset_spec.rb
569
573
  - spec/unit/gdal/driver_mixins/extensions_spec.rb
570
574
  - spec/unit/gdal/driver_spec.rb
@@ -587,6 +591,7 @@ test_files:
587
591
  - spec/unit/gdal/version_info_spec.rb
588
592
  - spec/unit/gdal/virtual_dataset_spec.rb
589
593
  - spec/unit/gdal/warp_operation_spec.rb
594
+ - spec/unit/gdal/warp_options_spec.rb
590
595
  - spec/unit/ogr/coordinate_transformation_spec.rb
591
596
  - spec/unit/ogr/data_source_mixins/capability_methods_spec.rb
592
597
  - spec/unit/ogr/data_source_spec.rb
@@ -1,22 +0,0 @@
1
- require 'json'
2
-
3
- module OGR
4
- module FieldDefinitionExtensions
5
- # @return [Hash]
6
- def as_json(_options = nil)
7
- {
8
- is_ignored: ignored?,
9
- justification: justification,
10
- name: name,
11
- precision: precision,
12
- type: type,
13
- width: width
14
- }
15
- end
16
-
17
- # @return [String]
18
- def to_json(options = nil)
19
- as_json(options).to_json
20
- end
21
- end
22
- end
@@ -1,19 +0,0 @@
1
- require 'json'
2
-
3
- module OGR
4
- module GeometryFieldDefinitionExtensions
5
- # @return [Hash]
6
- def as_json(options = nil)
7
- {
8
- is_ignored: ignored?,
9
- name: name,
10
- spatial_reference: spatial_reference ? spatial_reference.as_json(options) : nil,
11
- type: type
12
- }
13
- end
14
-
15
- def to_json(options = nil)
16
- as_json(options).to_json
17
- end
18
- end
19
- end