ffi-gdal 1.0.0.beta16 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dockerignore +17 -0
- data/.github/workflows/codacy.yml +61 -0
- data/.github/workflows/codeql.yml +74 -0
- data/.github/workflows/continuous-integration.yml +36 -0
- data/.github/workflows/dependency-review.yml +20 -0
- data/.github/workflows/specs-in-docker.yml +27 -0
- data/.gitignore +3 -0
- data/.rspec +1 -0
- data/.rubocop.yml +10 -80
- data/.rubocop_todo.yml +23 -40
- data/.ruby-version +1 -1
- data/Changelog-0.x.md +512 -0
- data/Changelog.md +12 -0
- data/Dockerfile.gdal2 +110 -0
- data/Dockerfile.gdal3 +73 -0
- data/README.md +25 -14
- data/Rakefile +0 -8
- data/Tiltfile +91 -0
- data/bin/bundle +123 -0
- data/bin/docker-clean +8 -0
- data/bin/rake +29 -0
- data/bin/rspec +29 -0
- data/bin/rubocop +29 -0
- data/docker-compose.yml +25 -0
- data/examples/extract_and_colorize.rb +0 -13
- data/examples/geometries.rb +14 -14
- data/examples/ogr_layer_to_layer.rb +1 -3
- data/examples/raster_erasing.rb +1 -0
- data/examples/remove_small_polygons.rb +1 -1
- data/examples/testing_gdal.rb +20 -17
- data/examples/warping.rb +9 -7
- data/ffi-gdal.gemspec +12 -6
- data/lib/ext/ffi_library_function_checks.rb +2 -2
- data/lib/ext/to_bool.rb +5 -3
- data/lib/ffi/cpl/conv.rb +27 -25
- data/lib/ffi/cpl/error.rb +19 -20
- data/lib/ffi/cpl/hash_set.rb +4 -4
- data/lib/ffi/cpl/http.rb +3 -3
- data/lib/ffi/cpl/http_result.rb +8 -8
- data/lib/ffi/cpl/list.rb +1 -1
- data/lib/ffi/cpl/mime_part.rb +2 -2
- data/lib/ffi/cpl/minixml.rb +7 -7
- data/lib/ffi/cpl/progress.rb +8 -8
- data/lib/ffi/cpl/quad_tree.rb +14 -14
- data/lib/ffi/cpl/rect_obj.rb +3 -3
- data/lib/ffi/cpl/string.rb +17 -20
- data/lib/ffi/cpl/vsi.rb +13 -13
- data/lib/ffi/cpl/xml_node.rb +3 -3
- data/lib/ffi/extensions/gdal/extensions/all.rb +4 -0
- data/lib/ffi/extensions/gdal/extensions/version.rb +9 -0
- data/lib/ffi/extensions/gdal/extensions.rb +12 -0
- data/lib/ffi/extensions/rttopo/gbox.rb +19 -0
- data/lib/ffi/extensions/rttopo/geom.rb +16 -0
- data/lib/ffi/extensions/rttopo.rb +41 -0
- data/lib/ffi/gdal/alg.rb +277 -277
- data/lib/ffi/gdal/color_entry.rb +3 -3
- data/lib/ffi/gdal/gcp.rb +6 -6
- data/lib/ffi/gdal/gdal.rb +349 -349
- data/lib/ffi/gdal/grid.rb +134 -134
- data/lib/ffi/gdal/grid_data_metrics_options.rb +4 -4
- data/lib/ffi/gdal/grid_inverse_distance_to_a_power_options.rb +9 -9
- data/lib/ffi/gdal/grid_moving_average_options.rb +4 -4
- data/lib/ffi/gdal/grid_nearest_neighbor_options.rb +3 -3
- data/lib/ffi/gdal/matching.rb +3 -3
- data/lib/ffi/gdal/rpc_info.rb +17 -17
- data/lib/ffi/gdal/transformer_info.rb +4 -4
- data/lib/ffi/gdal/version.rb +1 -1
- data/lib/ffi/gdal/vrt.rb +39 -39
- data/lib/ffi/gdal/warp_options.rb +34 -34
- data/lib/ffi/gdal/warper.rb +90 -90
- data/lib/ffi/gdal.rb +2 -31
- data/lib/ffi/ogr/api.rb +175 -167
- data/lib/ffi/ogr/contour_writer_info.rb +4 -4
- data/lib/ffi/ogr/core.rb +107 -107
- data/lib/ffi/ogr/envelope.rb +3 -3
- data/lib/ffi/ogr/envelope_3d.rb +5 -5
- data/lib/ffi/ogr/featurestyle.rb +3 -3
- data/lib/ffi/ogr/field.rb +22 -22
- data/lib/ffi/ogr/geocoding.rb +4 -4
- data/lib/ffi/ogr/srs_api.rb +154 -155
- data/lib/ffi/ogr/style_param.rb +3 -3
- data/lib/ffi/ogr/style_value.rb +4 -4
- data/lib/gdal/color_entry.rb +1 -5
- data/lib/gdal/color_interpretation.rb +7 -3
- data/lib/gdal/color_table.rb +46 -27
- data/lib/gdal/cpl_error_handler.rb +26 -6
- data/lib/gdal/data_type.rb +10 -3
- data/lib/gdal/dataset.rb +171 -85
- data/lib/gdal/dataset_mixins/algorithm_methods.rb +44 -44
- data/lib/gdal/dataset_mixins/matching.rb +1 -1
- data/lib/gdal/dataset_mixins/warp_methods.rb +4 -2
- data/lib/gdal/driver.rb +38 -21
- data/lib/gdal/environment_methods.rb +6 -6
- data/lib/gdal/extensions/all.rb +3 -0
- data/lib/gdal/{color_entry_mixins → extensions/color_entry}/extensions.rb +4 -1
- data/lib/gdal/{color_table_mixins → extensions/color_table}/extensions.rb +3 -0
- data/lib/gdal/extensions/dataset/extensions.rb +205 -0
- data/lib/gdal/{driver_mixins → extensions/driver}/extensions.rb +6 -2
- data/lib/gdal/{geo_transform_mixins → extensions/geo_transform}/extensions.rb +10 -8
- data/lib/gdal/{gridder → extensions/gridder}/point_extracting.rb +7 -5
- data/lib/gdal/{gridder.rb → extensions/gridder.rb} +33 -33
- data/lib/gdal/{gridder_options.rb → extensions/gridder_options.rb} +13 -14
- data/lib/gdal/{raster_attribute_table_mixins → extensions/raster_attribute_table}/extensions.rb +8 -6
- data/lib/gdal/{raster_band_mixins → extensions/raster_band}/algorithm_extensions.rb +8 -6
- data/lib/gdal/{raster_band_mixins → extensions/raster_band}/coloring_extensions.rb +6 -4
- data/lib/gdal/{raster_band_mixins → extensions/raster_band}/extensions.rb +9 -5
- data/lib/gdal/{raster_band_mixins → extensions/raster_band}/io_extensions.rb +18 -14
- data/lib/gdal/{raster_band_classifier.rb → extensions/raster_band_classifier.rb} +3 -5
- data/lib/gdal/geo_transform.rb +1 -6
- data/lib/gdal/grid.rb +3 -2
- data/lib/gdal/grid_algorithms.rb +9 -9
- data/lib/gdal/internal_helpers.rb +46 -9
- data/lib/gdal/major_object.rb +11 -3
- data/lib/gdal/options.rb +26 -32
- data/lib/gdal/raster_attribute_table.rb +63 -37
- data/lib/gdal/raster_band.rb +164 -116
- data/lib/gdal/raster_band_mixins/algorithm_methods.rb +26 -25
- data/lib/gdal/rpc_info.rb +3 -2
- data/lib/gdal/transformers/approximate_transformer.rb +12 -3
- data/lib/gdal/transformers/base_general_image_projection_transformer.rb +15 -2
- data/lib/gdal/transformers/gcp_transformer.rb +27 -19
- data/lib/gdal/transformers/general_image_projection_transformer.rb +8 -6
- data/lib/gdal/transformers/general_image_projection_transformer2.rb +9 -6
- data/lib/gdal/transformers/general_image_projection_transformer3.rb +6 -2
- data/lib/gdal/transformers/geolocation_transformer.rb +12 -4
- data/lib/gdal/transformers/reprojection_transformer.rb +11 -3
- data/lib/gdal/transformers/rpc_transformer.rb +11 -2
- data/lib/gdal/transformers/tps_transformer.rb +12 -4
- data/lib/gdal/version_info.rb +2 -2
- data/lib/gdal/virtual_dataset.rb +2 -0
- data/lib/gdal/warp_operation.rb +65 -54
- data/lib/gdal/warp_options.rb +9 -11
- data/lib/ogr/coordinate_transformation.rb +23 -9
- data/lib/ogr/data_source.rb +68 -37
- data/lib/ogr/driver.rb +18 -17
- data/lib/ogr/envelope.rb +0 -3
- data/lib/ogr/error_handling.rb +22 -24
- data/lib/ogr/extensions/all.rb +3 -0
- data/lib/ogr/{data_source_mixins → extensions/data_source}/capability_methods.rb +2 -0
- data/lib/ogr/extensions/data_source/data_source_extensions.rb +16 -0
- data/lib/ogr/{driver_mixins → extensions/driver}/capability_methods.rb +5 -1
- data/lib/ogr/extensions/envelope/extensions.rb +114 -0
- data/lib/ogr/extensions/feature/extensions.rb +87 -0
- data/lib/ogr/extensions/feature_definition/extensions.rb +43 -0
- data/lib/ogr/extensions/geometries/point/extensions.rb +19 -0
- data/lib/ogr/extensions/geometry/container_mixins.rb +56 -0
- data/lib/ogr/extensions/geometry/ewkb_io_extensions.rb +44 -0
- data/lib/ogr/extensions/geometry/ewkb_record.rb +94 -0
- data/lib/ogr/{geometry_mixins → extensions/geometry}/extensions.rb +16 -9
- data/lib/ogr/extensions/geometry/rttopo_extensions.rb +48 -0
- data/lib/ogr/extensions/geometry/wkb_record.rb +63 -0
- data/lib/ogr/extensions/geometry_types/curve/extensions.rb +68 -0
- data/lib/ogr/{layer_mixins → extensions/layer}/capability_methods.rb +4 -0
- data/lib/ogr/{layer_mixins → extensions/layer}/extensions.rb +11 -6
- data/lib/ogr/extensions/spatial_reference/extensions.rb +38 -0
- data/lib/ogr/extensions/spatial_reference/initializers.rb +138 -0
- data/lib/ogr/extensions/style_table/extensions.rb +31 -0
- data/lib/ogr/feature.rb +173 -88
- data/lib/ogr/feature_definition.rb +53 -45
- data/lib/ogr/field.rb +17 -19
- data/lib/ogr/field_definition.rb +30 -18
- data/lib/ogr/geocoder.rb +11 -4
- data/lib/ogr/geometries/line_string.rb +1 -0
- data/lib/ogr/geometries/line_string_25d.rb +0 -9
- data/lib/ogr/geometries/linear_ring.rb +2 -2
- data/lib/ogr/geometries/point.rb +0 -9
- data/lib/ogr/geometry.rb +116 -49
- data/lib/ogr/geometry_field_definition.rb +31 -15
- data/lib/ogr/geometry_types/container.rb +26 -28
- data/lib/ogr/geometry_types/curve.rb +5 -61
- data/lib/ogr/geometry_types/surface.rb +1 -1
- data/lib/ogr/internal_helpers.rb +2 -2
- data/lib/ogr/layer.rb +12 -10
- data/lib/ogr/layer_mixins/ogr_feature_methods.rb +39 -27
- data/lib/ogr/layer_mixins/ogr_field_methods.rb +66 -50
- data/lib/ogr/layer_mixins/ogr_layer_method_methods.rb +17 -8
- data/lib/ogr/layer_mixins/ogr_query_filter_methods.rb +7 -6
- data/lib/ogr/layer_mixins/ogr_sql_methods.rb +15 -7
- data/lib/ogr/spatial_reference.rb +79 -42
- data/lib/ogr/spatial_reference_mixins/coordinate_system_getter_setters.rb +149 -118
- data/lib/ogr/spatial_reference_mixins/exporters.rb +87 -51
- data/lib/ogr/spatial_reference_mixins/importers.rb +88 -43
- data/lib/ogr/spatial_reference_mixins/morphers.rb +12 -8
- data/lib/ogr/spatial_reference_mixins/parameter_getter_setters.rb +27 -13
- data/lib/ogr/style_table.rb +15 -5
- data/lib/ogr/style_tool.rb +29 -15
- data/lib/ogr.rb +1 -0
- data/rakelib/docker.rake +10 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +21790 -0
- data/tilt/gdal2.yml +22 -0
- data/tilt/gdal3.yml +22 -0
- metadata +116 -280
- data/History.md +0 -360
- data/lib/ext/error_symbols.rb +0 -7
- data/lib/gdal/dataset_mixins/extensions.rb +0 -380
- data/lib/gdal/merger.rb +0 -132
- data/lib/ogr/data_source_extensions.rb +0 -10
- data/lib/ogr/envelope_extensions.rb +0 -110
- data/lib/ogr/feature_definition_extensions.rb +0 -39
- data/lib/ogr/feature_extensions.rb +0 -87
- data/lib/ogr/geometry_mixins/container_mixins.rb +0 -25
- data/lib/ogr/spatial_reference_extensions.rb +0 -34
- data/lib/ogr/style_table_extensions.rb +0 -26
- data/spec/ffi-gdal_spec.rb +0 -24
- data/spec/integration/gdal/color_table_info_spec.rb +0 -78
- data/spec/integration/gdal/dataset_info_spec.rb +0 -342
- data/spec/integration/gdal/driver_info_spec.rb +0 -170
- data/spec/integration/gdal/geo_transform_info_spec.rb +0 -226
- data/spec/integration/gdal/gridder_spec.rb +0 -331
- data/spec/integration/gdal/raster_attribute_table_info_spec.rb +0 -229
- data/spec/integration/gdal/raster_band_algorithms_spec.rb +0 -35
- data/spec/integration/gdal/raster_band_info_spec.rb +0 -320
- data/spec/integration/ogr/layer_spec.rb +0 -95
- data/spec/spec_helper.rb +0 -116
- data/spec/support/images/123.tiff +0 -0
- data/spec/support/images/osgeo/gdal/data/hfa/float-rle.img +0 -0
- data/spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.lgo +0 -31
- data/spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.tif +0 -0
- data/spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.tif.msk +0 -0
- data/spec/support/images/osgeo/geotiff/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.txt +0 -10
- data/spec/support/images/osgeo/geotiff/gdal_eg/cea.tif +0 -0
- data/spec/support/images/osgeo/geotiff/gdal_eg/cea.txt +0 -84
- data/spec/support/images/osgeo/geotiff/zi_imaging/image0.lgo +0 -45
- data/spec/support/images/osgeo/geotiff/zi_imaging/image0.tif +0 -0
- data/spec/support/integration_help.rb +0 -34
- data/spec/support/shapefiles/states_21basic/states.dbf +0 -0
- data/spec/support/shapefiles/states_21basic/states.prj +0 -1
- data/spec/support/shapefiles/states_21basic/states.sbn +0 -0
- data/spec/support/shapefiles/states_21basic/states.sbx +0 -0
- data/spec/support/shapefiles/states_21basic/states.shp +0 -0
- data/spec/support/shapefiles/states_21basic/states.shp.xml +0 -3
- data/spec/support/shapefiles/states_21basic/states.shx +0 -0
- data/spec/support/shared_contexts.rb +0 -28
- data/spec/support/shared_examples/gdal/major_object_examples.rb +0 -55
- data/spec/support/shared_examples/ogr/a_25d_geometry.rb +0 -9
- data/spec/support/shared_examples/ogr/a_container_geometry.rb +0 -49
- data/spec/support/shared_examples/ogr/a_geometry.rb +0 -406
- data/spec/support/shared_examples/ogr/a_line_string.rb +0 -18
- data/spec/support/test_style_table.txt +0 -3
- data/spec/support/worldfiles/SR_50M/SR_50M.VERSION.txt +0 -1
- data/spec/support/worldfiles/SR_50M/SR_50M.prj +0 -1
- data/spec/support/worldfiles/SR_50M/SR_50M.tfw +0 -6
- data/spec/support/worldfiles/SR_50M/SR_50M.tif +0 -0
- data/spec/unit/ext/error_symbols_spec.rb +0 -69
- data/spec/unit/ext/numeric_as_data_type_spec.rb +0 -115
- data/spec/unit/ffi/gdal_spec.rb +0 -73
- data/spec/unit/gdal/color_entry_spec.rb +0 -8
- data/spec/unit/gdal/color_interpretation_spec.rb +0 -8
- data/spec/unit/gdal/color_table_mixins/extensions_spec.rb +0 -62
- data/spec/unit/gdal/color_table_spec.rb +0 -146
- data/spec/unit/gdal/data_type_spec.rb +0 -74
- data/spec/unit/gdal/dataset_mixins/warp_methods_spec.rb +0 -55
- data/spec/unit/gdal/dataset_spec.rb +0 -148
- data/spec/unit/gdal/driver_mixins/extensions_spec.rb +0 -24
- data/spec/unit/gdal/driver_spec.rb +0 -51
- data/spec/unit/gdal/environment_methods_spec.rb +0 -8
- data/spec/unit/gdal/geo_transform_mixins/extensions_spec.rb +0 -69
- data/spec/unit/gdal/geo_transform_spec.rb +0 -265
- data/spec/unit/gdal/grid_spec.rb +0 -98
- data/spec/unit/gdal/gridder/point_extracting_spec.rb +0 -101
- data/spec/unit/gdal/gridder_options_spec.rb +0 -185
- data/spec/unit/gdal/gridder_spec.rb +0 -182
- data/spec/unit/gdal/internal_helpers_spec.rb +0 -278
- data/spec/unit/gdal/major_object_spec.rb +0 -10
- data/spec/unit/gdal/options_spec.rb +0 -33
- data/spec/unit/gdal/raster_attribute_table_spec.rb +0 -7
- data/spec/unit/gdal/raster_band_classifier_spec.rb +0 -260
- data/spec/unit/gdal/raster_band_mixins/extensions_spec.rb +0 -73
- data/spec/unit/gdal/raster_band_mixins/io_extensions_spec.rb +0 -135
- data/spec/unit/gdal/raster_band_spec.rb +0 -8
- data/spec/unit/gdal/rpc_info_spec.rb +0 -8
- data/spec/unit/gdal/version_info_spec.rb +0 -10
- data/spec/unit/gdal/virtual_dataset_spec.rb +0 -34
- data/spec/unit/gdal/warp_operation_spec.rb +0 -8
- data/spec/unit/gdal/warp_options_spec.rb +0 -338
- data/spec/unit/ogr/coordinate_transformation_spec.rb +0 -104
- data/spec/unit/ogr/data_source_mixins/capability_methods_spec.rb +0 -32
- data/spec/unit/ogr/data_source_spec.rb +0 -223
- data/spec/unit/ogr/driver_mixins/capability_methods_spec.rb +0 -20
- data/spec/unit/ogr/driver_spec.rb +0 -152
- data/spec/unit/ogr/envelope_spec.rb +0 -324
- data/spec/unit/ogr/feature_definition_spec.rb +0 -296
- data/spec/unit/ogr/feature_extensions_spec.rb +0 -90
- data/spec/unit/ogr/feature_spec.rb +0 -363
- data/spec/unit/ogr/field_definition_spec.rb +0 -118
- data/spec/unit/ogr/field_spec.rb +0 -195
- data/spec/unit/ogr/geometries/geometry_collection_25d_spec.rb +0 -25
- data/spec/unit/ogr/geometries/geometry_collection_spec.rb +0 -188
- data/spec/unit/ogr/geometries/line_string_25d_spec.rb +0 -25
- data/spec/unit/ogr/geometries/line_string_spec.rb +0 -107
- data/spec/unit/ogr/geometries/linear_ring_spec.rb +0 -92
- data/spec/unit/ogr/geometries/multi_line_string_25d_spec.rb +0 -25
- data/spec/unit/ogr/geometries/multi_line_string_spec.rb +0 -16
- data/spec/unit/ogr/geometries/multi_point_25d_spec.rb +0 -25
- data/spec/unit/ogr/geometries/multi_point_spec.rb +0 -16
- data/spec/unit/ogr/geometries/multi_polygon_25d_spec.rb +0 -25
- data/spec/unit/ogr/geometries/multi_polygon_spec.rb +0 -43
- data/spec/unit/ogr/geometries/none_geometry_spec.rb +0 -14
- data/spec/unit/ogr/geometries/point_25d_spec.rb +0 -25
- data/spec/unit/ogr/geometries/point_spec.rb +0 -307
- data/spec/unit/ogr/geometries/polygon_25d_spec.rb +0 -25
- data/spec/unit/ogr/geometries/polygon_spec.rb +0 -19
- data/spec/unit/ogr/geometries/unknown_geometry_spec.rb +0 -12
- data/spec/unit/ogr/geometry_field_definition_spec.rb +0 -73
- data/spec/unit/ogr/geometry_spec.rb +0 -711
- data/spec/unit/ogr/internal_helpers_spec.rb +0 -70
- data/spec/unit/ogr/layer_mixins/capability_methods_spec.rb +0 -90
- data/spec/unit/ogr/layer_mixins/ogr_feature_methods_spec.rb +0 -155
- data/spec/unit/ogr/layer_mixins/ogr_field_methods_spec.rb +0 -434
- data/spec/unit/ogr/layer_mixins/ogr_layer_method_methods_spec.rb +0 -22
- data/spec/unit/ogr/layer_mixins/ogr_query_filter_methods_spec.rb +0 -44
- data/spec/unit/ogr/layer_mixins/ogr_sql_methods_spec.rb +0 -14
- data/spec/unit/ogr/layer_spec.rb +0 -98
- data/spec/unit/ogr/spatial_reference_mixins/coordinate_system_getter_setters_spec.rb +0 -48
- data/spec/unit/ogr/spatial_reference_mixins/exporters_spec.rb +0 -151
- data/spec/unit/ogr/spatial_reference_mixins/importers_spec.rb +0 -40
- data/spec/unit/ogr/spatial_reference_mixins/morphers_spec.rb +0 -38
- data/spec/unit/ogr/spatial_reference_mixins/parameter_getter_setters_spec.rb +0 -105
- data/spec/unit/ogr/spatial_reference_mixins/type_checks_spec.rb +0 -159
- data/spec/unit/ogr/spatial_reference_spec.rb +0 -44
- data/spec/unit/ogr/style_table_spec.rb +0 -108
- data/spec/unit/ogr/style_tool_spec.rb +0 -159
- data/spec/unit/version_info_spec.rb +0 -50
data/History.md
DELETED
@@ -1,360 +0,0 @@
|
|
1
|
-
# Change Log
|
2
|
-
|
3
|
-
Format for this file derived from [http://keepachangelog.com](http://keepachangelog.com).
|
4
|
-
|
5
|
-
## 1.0.0.beta16 / 2022-06-09
|
6
|
-
|
7
|
-
### Bug Fixes
|
8
|
-
|
9
|
-
* [DEV-34269] Ensure `GDAL::RasterBandClassifier#equal_count_ranges` returns a range when only one is requested.
|
10
|
-
|
11
|
-
## 1.0.0.beta15 / 2022-05-12
|
12
|
-
|
13
|
-
### Improvements
|
14
|
-
|
15
|
-
* [DEV-20059] Ensure `GDAL::RasterBandClassifier#equal_count_ranges` has a minimum spacing between breakpoints.
|
16
|
-
|
17
|
-
## 1.0.0.beta14 / 2022-05-06
|
18
|
-
|
19
|
-
### Bug Fixes
|
20
|
-
|
21
|
-
* [DEV-34133] Don't URI.parse path in `GDAL::Dataset#initialize` and `OGR::DataSource#initialize`.
|
22
|
-
|
23
|
-
## 1.0.0.beta13 / 2022-04-20
|
24
|
-
|
25
|
-
### Bug Fixes
|
26
|
-
|
27
|
-
* [DEV-20247] Fix return value for `OGR::LayerMixins::Extensions#point_values` when no features are found.
|
28
|
-
|
29
|
-
## 1.0.0.beta12 / 2021-06-07
|
30
|
-
|
31
|
-
### Removed
|
32
|
-
|
33
|
-
* Removed `GDAL::MajorObject#description=`, as this shouldn't be called and
|
34
|
-
causes problems.
|
35
|
-
|
36
|
-
### Bug Fixes
|
37
|
-
|
38
|
-
* [DEV-15804] Remove data that is outside all ranges when classifying.
|
39
|
-
|
40
|
-
## 1.0.0.beta11 / 2020-06-02
|
41
|
-
|
42
|
-
### Bug Fixes
|
43
|
-
|
44
|
-
* Change CPLFileFinder callback return type to pointer.
|
45
|
-
|
46
|
-
## 1.0.0.beta10 / 2019-08-28
|
47
|
-
|
48
|
-
### Bug Fixes
|
49
|
-
|
50
|
-
* [DEV-7980] Ensure `OGR::Feature#field_as_string` returns a UTF-8 encoded String.
|
51
|
-
|
52
|
-
## 1.0.0.beta9 / 2018-03-26
|
53
|
-
|
54
|
-
### Bug Fixes
|
55
|
-
|
56
|
-
* [AGDEV-30729] Change `OGERR_NONE` to use a lambda.
|
57
|
-
|
58
|
-
### Improvements
|
59
|
-
|
60
|
-
* Fix some new rubocops.
|
61
|
-
|
62
|
-
## 1.0.0.beta8 / 2017-04-24
|
63
|
-
|
64
|
-
### Improvements
|
65
|
-
|
66
|
-
* Ruby 2.3 frozen string compatibility.
|
67
|
-
* Ruby 2.4 `DateTime` time zone handling in `OGR::Feature#set_field_date_time`.
|
68
|
-
|
69
|
-
### Bug Fixes
|
70
|
-
|
71
|
-
* Ensure `GDAL::RasterBandMixinsIOExtensions#read_blocks_by_block` always yields
|
72
|
-
an Array of pixels.
|
73
|
-
|
74
|
-
## 1.0.0.beta7 / 2016-09-21
|
75
|
-
|
76
|
-
### Improvements
|
77
|
-
|
78
|
-
* Removed all `#as_json` and `#to_json` definitions. They were out of date, not
|
79
|
-
used, and sometimes confusing (ex OGR::Geometries#to_json vs #to_geo_json).
|
80
|
-
|
81
|
-
#### GDAL
|
82
|
-
|
83
|
-
* Added wrapper for GDALCreateAndReprojectImage in
|
84
|
-
`gdal/dataset_mixins/warp_methods.rb`.
|
85
|
-
* (BREAKING CHANGE) Additionally, changed
|
86
|
-
`GDAL::DatasetMixins::WarpMethods#reproject_image`'s
|
87
|
-
`destination_spatial_reference` named param to `destination_projection` which
|
88
|
-
takes a String of WKT for a projection instead of an `OGR::SpatialReference`.
|
89
|
-
* Added `GDAL::Options.to_hash` to convert a pointer of options to a Ruby Hash.
|
90
|
-
* Return `nil` for missing NODATA values in `GDAL::RasterBand#no_data_value` and
|
91
|
-
`#no_data_value=`.
|
92
|
-
|
93
|
-
### Bug Fixes
|
94
|
-
|
95
|
-
#### Core
|
96
|
-
|
97
|
-
* Fixed specifying an alternate GDAL library using the `GDAL_LIBRARY_PATH`.
|
98
|
-
|
99
|
-
#### GDAL
|
100
|
-
|
101
|
-
* `GDAL::RasterBandMixins::IOExtensions#write_xy_narray` no longer duplicates
|
102
|
-
data when blocks have a remainder.
|
103
|
-
* `GDAL::WarpOptions` should properly act as a wrapper for `FFI::GDAL::WarpOptions`.
|
104
|
-
* `Updated extract methods to be compatible with latest `GDAL::Driver#create_dataset`.
|
105
|
-
* `GDAL::MajorObject` now gets autoloaded.
|
106
|
-
* Fix `GDAL::DatasetMixins::AlgorithmMethods` to use the right `FFI` module for
|
107
|
-
`#rasterize_geometries` and `#rasterize_layers`.
|
108
|
-
|
109
|
-
#### OGR
|
110
|
-
|
111
|
-
* [AGDEV-17357] Define constants from C using `const_set` instead of `class_eval`.
|
112
|
-
* Fixed `OGR::GeometryTypes::Curve#points` (missing local variable).
|
113
|
-
|
114
|
-
## 1.0.0.beta6 / 2016-04-18
|
115
|
-
|
116
|
-
### New Features
|
117
|
-
|
118
|
-
#### GDAL
|
119
|
-
|
120
|
-
* Added wrappers for the Grid API. It uses `GDAL::Gridder`, which is the
|
121
|
-
programmatic equivalent to the `gdal_grid` command-line utility,
|
122
|
-
`GDAL::GridderOptions`, which is an object used to mimic the options you pass
|
123
|
-
to `gdal_grid`, and `GDAL::Grid`, which is the simple object that performs the
|
124
|
-
gridding.
|
125
|
-
* Added first wrapper of `gdalwarper.h` methods, found in
|
126
|
-
`GDAL::DatasetMixins::WarpMethods`.
|
127
|
-
|
128
|
-
#### OGR
|
129
|
-
|
130
|
-
* Added `OGR::CoordinateTransform#transform_ex`.
|
131
|
-
|
132
|
-
### Improvements
|
133
|
-
|
134
|
-
* Removed all `ObjectSpace.define_finalizer` calls that "cleaned up" C pointers
|
135
|
-
for Ruby-wrapped objects that had not yet been closed/destroyed. This was
|
136
|
-
keeping those Ruby objects from getting collected (?) and effectively causing
|
137
|
-
lots of unnecessary memory use.
|
138
|
-
|
139
|
-
#### GDAL
|
140
|
-
|
141
|
-
* Added `GDAL::GeoTransformMixins::Extensions.new_from_envelope` which lets you
|
142
|
-
create a `GDAL::GeoTransform` using the points from an `OGR::Envelope` and the
|
143
|
-
destination raster's width and height. It's convenient because it calculates
|
144
|
-
the pixel size for you.
|
145
|
-
* Renamed `GDAL::GridTypes` to `GDAL::GridAlgorithms`. This shouldn't impact
|
146
|
-
anyone/thing since it's only relative to the newly added Grid API wrapper.
|
147
|
-
There just happened to me some Grid cruft that had been laying around for some
|
148
|
-
time.
|
149
|
-
* Added `GDAL::RasterBand#write_block`. Somehow this went missing from previous
|
150
|
-
`RasterBand` wrapping.
|
151
|
-
* Renamed `GDAL::RasterBandMixins::Extenions#each_by_block` to `#read_by_block`.
|
152
|
-
Its functionality was doing reading, yet implied reading or writing; since
|
153
|
-
writing by block isn't needed anywhere internally yet, I just renamed this.
|
154
|
-
* Renamed `GDAL::RasterBandMixins#write_array` to `#write_xy_narray`. This
|
155
|
-
method's name inferred that it could write any old Array, but that's not the
|
156
|
-
case--it only writes 2D NArray data.
|
157
|
-
* Added `GDAL::InternalHelpers._buffer_from_data_type` to compliment the
|
158
|
-
existing `._pointer_from_data_type`. Useful for creating buffer-specific
|
159
|
-
pointers from a GDAL data type.
|
160
|
-
* `GDAL::DatasetMixins::Extensions#extent` now manually builds an `OGR::Polygon`
|
161
|
-
instead of polygonizing the entire dataset and taking the envelope of that.
|
162
|
-
Much faster this way.
|
163
|
-
* Refactored `GDAL::RasterBandMixins::Exsentions#projected_points` to return a
|
164
|
-
3D NArray (indicating pixel/row position) instead of just a 2D NArray of
|
165
|
-
coordinates.
|
166
|
-
* Added `GDAL::InternalHelpers` methods for creating NArrays based on GDAL
|
167
|
-
data types.
|
168
|
-
* `GDAL::Options` values all have `#to_s` called on them to ensure they're
|
169
|
-
Strings before handing them over to GDAL. The GDAL options "hash" requires
|
170
|
-
that both keys and values be Strings.
|
171
|
-
* `GDAL::RasterBandMixins::AlgorithmMethods` that use GDALProgressFunc functions
|
172
|
-
can now participate in GDALScaledProgress functions.
|
173
|
-
* Added `GDAL::RasterBandMixins::Extensions#pixel_count`.
|
174
|
-
* Allow `GDAL::RasterBand#create_mask_band` to take a single flag or many.
|
175
|
-
* Allow `GDAL::Dataset`s to be open in shared mode vs non-shared mode. All
|
176
|
-
Datasets now default to use shared mode.
|
177
|
-
* Allow `GDAL::Driver#create_dataset` and `GDAL::Dataset.open` to take a block,
|
178
|
-
yielding the dataset then closing it afterwards.
|
179
|
-
* `GDAL::RasterBandClassifier` now uses NArray to classify. Can result in quite
|
180
|
-
a large performance gain.
|
181
|
-
* `GDAL::Driver#copy_dataset` now properly takes progress block arguments.
|
182
|
-
* `GDAL::Driver#copy_dataset` now yields a writable Dataset.
|
183
|
-
* Swapped order of params in `GDAL::Driver#rename_dataset` to be (old, new)
|
184
|
-
instead of (new, old).
|
185
|
-
* Added enumerator `RasterAttributeTableMixins::Extensions#each_column` to allow
|
186
|
-
nicer iterating over columns.
|
187
|
-
* `GDAL::RasterAttributeTable` methods that returned -1 when a value can't be
|
188
|
-
returned now return nil instead.
|
189
|
-
* Renamed `GDAL::RasterAttributeTable#value_to_*` methods to be named after
|
190
|
-
their C functions. Also, renamed `#add_value` to `#set_value` and refactored
|
191
|
-
into `RasterAttributeTableMixins::Extensions`.
|
192
|
-
|
193
|
-
#### OGR
|
194
|
-
|
195
|
-
* Added `OGR::FeatureExtensions#field()` which gets the field using the
|
196
|
-
associated `OGR::FieldDefinition#type`. Makes so you don't always have to
|
197
|
-
request the field by its type (`field_as_double`).
|
198
|
-
* Added `OGR::LayerMixins::Extensions#point_values()` which gets values for all
|
199
|
-
of the points in the layer. It also allows you to specify getting field values
|
200
|
-
with that, which helps retrieving data for the Grid API. You can also pass it
|
201
|
-
a block to filter out points that don't match some criteria defined in the
|
202
|
-
block.
|
203
|
-
* Added `OGR::LayerMixins::Extensions#any_geometries_with_z?` which simply
|
204
|
-
checks to see if the layer has any geometries with Z values.
|
205
|
-
* `GDAL::DataType.by_name` always calls `#to_s` on the param now, letting you
|
206
|
-
pass in Symbols.
|
207
|
-
* Added `OGR::Point#set_point`, `OGR::Point25#set_point`, and
|
208
|
-
`OGR::GeometryTypes::Curve#set_point` wrappers for `OGR_G_SetPoint_2D` and
|
209
|
-
`OGR_G_SetPoint`.
|
210
|
-
* Added `OGR::LineString#add_geometry` to allow adding a OGR::Point object to
|
211
|
-
the LineString instead of having to pass coordinates in to #add_point.
|
212
|
-
* `OGR::LayerMixins::Extensions#geometry_from_extent` now builds an
|
213
|
-
`OGR::Polygon` using the same algorithm that
|
214
|
-
`GDAL::DatasetMixins::Extensions#extent` uses. One could argue that there was
|
215
|
-
also a bug here in that `geometry_from_extent` used to return the convex hull
|
216
|
-
of the extent, not the extent itself.
|
217
|
-
* Extracted `OGR::LayerMixins::Extensions#each_feature` from
|
218
|
-
`OGR::LayerMixins::Extensions#features` to provide an Enumerator. This lets
|
219
|
-
consumers utilize yielded `OGR::Feature`s as they're retrieved instead of
|
220
|
-
after the `features` Array has been built.
|
221
|
-
`OGR::LayerMixins::Extensions#features` now uses this too.
|
222
|
-
* Added `OGR::GeometryMixins::Extensions#invalid?` to compliment
|
223
|
-
`OGR::Geometry#valid?`.
|
224
|
-
* Added `OGR::LayerMixins::Extensions#point_geometry`, `#each_point_geometry`,
|
225
|
-
and `point_geometries`. Since `#point` implies it returns a Point object, but
|
226
|
-
the OGR API's related method returns point values (x, y, z), it seemed like
|
227
|
-
it would be useful to have a method that returned a geometry.
|
228
|
-
* `OGR::DataSource.open` can now take a block, yielding the data source, then
|
229
|
-
closing it afterwards.
|
230
|
-
|
231
|
-
### Bug Fixes
|
232
|
-
|
233
|
-
* Cleanup `OGR::Feature`s that were a result of `OGR::Layer#next_feature`.
|
234
|
-
According to GDAL docs, these *must* be cleaned up before the layer is.
|
235
|
-
|
236
|
-
#### GDAL
|
237
|
-
|
238
|
-
* `GDAL::RasterBandMixins::AlgorithmMethods#fill_nodata!` was calling the old
|
239
|
-
name of the C function.
|
240
|
-
* `GDAL::EnvironmentMethods#dump_open_datasets` now works.
|
241
|
-
|
242
|
-
#### OGR
|
243
|
-
|
244
|
-
* `OGR::Field#date=` was casting the passed value to a `Time` object, which in
|
245
|
-
doing so was setting the time zone. If a user passes in an object that doesn't
|
246
|
-
have the TZ set, the method shouldn't be setting it for them.
|
247
|
-
* `OGR::Geometry#point_on_surface` now properly returns a geometry object.
|
248
|
-
* `OGR::CoordinateTransform#transform` never worked. Fixed.
|
249
|
-
* `OGR::GeometryMixins::Extensions#utm_zone` no longer creates invalid geometry.
|
250
|
-
* `OGR::Feature#dump_readable` never worked. Fixed.
|
251
|
-
* `OGR::Geometry#dump_readable` never worked. Fixed.
|
252
|
-
* Added missing output_layer param to `OGR::LayerMixins::OGRLayerMethodMethods`.
|
253
|
-
* `FFI::OGR::Core::WKBGeometryType` was using an INT32 instead of UINT32 and
|
254
|
-
thus 25D geometry types weren't completely accurate.
|
255
|
-
|
256
|
-
## 1.0.0.beta5 / 2015-06-16
|
257
|
-
|
258
|
-
* Improvements
|
259
|
-
* `GDAL::RasterBandClassifier#equal_count_ranges` now returns `nil` if there
|
260
|
-
aren't enough points per group/class to return the requested number of
|
261
|
-
breaks.
|
262
|
-
* Simplified NDVI (and related) methods in
|
263
|
-
`GDAL::DatasetMixins::Extensions`.
|
264
|
-
* NDVI and related methods in `GDAL::DatasetMixins::Extensions` now close
|
265
|
-
the newly created dataset instead of leaving it open. It's been far too
|
266
|
-
easy to forget to close the dataset after creation, leaving seemingly
|
267
|
-
incorrect resulting datasets (since GDAL doesn't flush writes until the
|
268
|
-
dataset is closed).
|
269
|
-
* NDVI methods in `GDAL::DatasetMixins::Extensions` no longer check for
|
270
|
-
NaNs after doing the NDVI calculations, thus speeding up the algorithm.
|
271
|
-
* `GDAL::DatasetMixins::Extensions#remove_negatives_from` now uses an NArray
|
272
|
-
mask to remove the negative values instead of looping through each value.
|
273
|
-
* Added `GDAL::RasterBand#raster_io` and refactored
|
274
|
-
`GDAL::RasterBand#write_array` to use it.
|
275
|
-
* `GDAL::DatasetMixins::Extensions` NDVI methods now default to NODATA of -9999.0.
|
276
|
-
|
277
|
-
## 1.0.0.beta4 / 2015-04-22
|
278
|
-
|
279
|
-
Whoa there's lots of changes here... Many are outlined below, but there's really
|
280
|
-
a ton more.
|
281
|
-
|
282
|
-
* Improvements
|
283
|
-
* Full refactor of FFI/C function wrapper. Closer mapping of Ruby functions
|
284
|
-
within modules to the C-header files where the functions actually reside.
|
285
|
-
* Full redesign of the error handling mechanism; ffi-gdal now hooks in to
|
286
|
-
GDAL's error handling, thus errors raised from GDAL automagically get handed
|
287
|
-
over as Ruby exceptions. (GDAL only; OGR doesn't provide this.) This also
|
288
|
-
entailed adding a bunch of new exceptions and renaming some old ones.
|
289
|
-
* Better library finding on Linux.
|
290
|
-
* Wrapped most of GDAL's Grid API.
|
291
|
-
* Wrapped some of GDAL's Warp API.
|
292
|
-
* GDAL::Dataset can now open PostGISRaster datasets.
|
293
|
-
* Lots more OGR love. Much of this API has now been vetted.
|
294
|
-
* Added `GDAL::RasterClassifier` for classifying raster bands.
|
295
|
-
* Added some wrapper methods for classes that support capability testing.
|
296
|
-
* Bug fixes
|
297
|
-
* Fixed some GDAL::Dataset extension methods (`extract_ndvi` and friends)
|
298
|
-
that weren't properly handling various data types.
|
299
|
-
* Better handling of large files.
|
300
|
-
* Fixed regular crashes when dealing with OGR Geometries and
|
301
|
-
SpatialReferences.
|
302
|
-
|
303
|
-
## 1.0.0.beta3 / 2014-11-11
|
304
|
-
|
305
|
-
* Bug fixes
|
306
|
-
* `ogr/exceptions` wasn't being required for `ext/error_symbols.rb`, thus
|
307
|
-
any use of an OGR exception was causing a `NameError`.
|
308
|
-
|
309
|
-
## 1.0.0.beta2 / 2014-10-23
|
310
|
-
|
311
|
-
* Improvements
|
312
|
-
* Added more documentation
|
313
|
-
* Uncommented `attach_function` calls that had been commented out due to
|
314
|
-
lack of support in versions I'd tested on. These get handled now on load.
|
315
|
-
|
316
|
-
## 1.0.0.beta1 / 2014-10-23
|
317
|
-
|
318
|
-
Lots of changes, so just the highlights here...
|
319
|
-
|
320
|
-
* API Improvements
|
321
|
-
* Added C and Ruby wrapper for most of OGR.
|
322
|
-
* Better handling of CPLErr return values.
|
323
|
-
* Allow loading, even when C functions aren't defined in the version of
|
324
|
-
GDAL that you're using.
|
325
|
-
* Split out additions to GDAL/OGR in `*_extensions.rb` modules. Methods
|
326
|
-
contained in `Extensions` modules don't directly wrap GDAL/OGR functions,
|
327
|
-
but either provide new functionality or attempt to make library usage more
|
328
|
-
Rubyesque.
|
329
|
-
* Added `#as_json`, `#to_json` to many classes.
|
330
|
-
* Internal Improvements
|
331
|
-
* Lots of cleanup of class internals.
|
332
|
-
* `autoload` child GDAL and OGR Ruby classes.
|
333
|
-
* Renamed files under ffi/ that were derived from GDAL/OGR header files to
|
334
|
-
include `_h` in the name.
|
335
|
-
|
336
|
-
## 0.0.4 / 2014-09-27
|
337
|
-
|
338
|
-
* Bug fixes
|
339
|
-
* Fixed failure to load on Ubuntu 12.04 (GDAL v1.7.3).
|
340
|
-
|
341
|
-
## 0.0.3 / 2014-09-26
|
342
|
-
|
343
|
-
* Improvements
|
344
|
-
* The `approx_ok` param for `RasterBand#histogram` should default to
|
345
|
-
`false` (preferring data exactness over performance).
|
346
|
-
* Bug fixes
|
347
|
-
* Fixed URL silliness introduced in 0.0.2.
|
348
|
-
* `Dataset#*_band` methods should return `nil` if the band with that color
|
349
|
-
isn't found.
|
350
|
-
* `RasterBand#default_histogram` died if the band didn't have any values.
|
351
|
-
* `RasterBand#histogram` wasn't returning totals.
|
352
|
-
|
353
|
-
## 0.0.2 / 2014-09-26
|
354
|
-
|
355
|
-
* New things
|
356
|
-
* Added ability to pass a URL into `GDAL::Dataset`.
|
357
|
-
|
358
|
-
## 0.0.1 / 2014-09-26
|
359
|
-
|
360
|
-
* Happy Birthday!
|