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
@@ -1,45 +0,0 @@
|
|
1
|
-
Geotiff_Information:
|
2
|
-
Version: 1
|
3
|
-
Key_Revision: 1.2
|
4
|
-
Tagged_Information:
|
5
|
-
ModelTransformationTag (4,4):
|
6
|
-
0 0.18505098 0 -12.511
|
7
|
-
-0.300184211 0 0 109.036
|
8
|
-
0 0 1 0
|
9
|
-
0 0 0 1
|
10
|
-
End_Of_Tags.
|
11
|
-
Keyed_Information:
|
12
|
-
GTModelTypeGeoKey (Short,1): ModelTypeProjected
|
13
|
-
GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
|
14
|
-
ProjCoordTransGeoKey (Short,1): CT_Mercator
|
15
|
-
ProjectionGeoKey (Short,1): User-Defined
|
16
|
-
GeogGeodeticDatumGeoKey (Short,1): Datum_WGS84
|
17
|
-
GeogEllipsoidGeoKey (Short,1): Ellipse_WGS_84
|
18
|
-
ProjNatOriginLongGeoKey (Double,1): 0
|
19
|
-
ProjNatOriginLatGeoKey (Double,1): 0
|
20
|
-
ProjFalseEastingGeoKey (Double,1): 0
|
21
|
-
ProjFalseNorthingGeoKey (Double,1): 0
|
22
|
-
ProjCenterLatGeoKey (Double,1): 0
|
23
|
-
ProjScaleAtNatOriginGeoKey (Double,1): 1
|
24
|
-
PCSCitationGeoKey (Ascii,23): "Mercator; WGS84; WGS84"
|
25
|
-
ProjectedCSTypeGeoKey (Short,1): User-Defined
|
26
|
-
ProjLinearUnitsGeoKey (Short,1): Linear_Meter
|
27
|
-
End_Of_Keys.
|
28
|
-
End_Of_Geotiff.
|
29
|
-
|
30
|
-
Projection Method: CT_Mercator
|
31
|
-
ProjNatOriginLatGeoKey: 0.000000 ( 0d 0' 0.00"N)
|
32
|
-
ProjNatOriginLongGeoKey: 0.000000 ( 0d 0' 0.00"E)
|
33
|
-
ProjScaleAtNatOriginGeoKey: 1.000000
|
34
|
-
ProjFalseEastingGeoKey: 0.000000
|
35
|
-
ProjFalseNorthingGeoKey: 0.000000
|
36
|
-
Datum: 6326/World Geodetic System 1984
|
37
|
-
Ellipsoid: 7030/WGS 84 (6378137.00,6356752.31)
|
38
|
-
Projection Linear Units: 9001/metre (1.000000m)
|
39
|
-
|
40
|
-
Corner Coordinates:
|
41
|
-
Upper Left ( -12.511, 109.036) ( 0d 0' 0.40"W, 0d 0' 3.55"N)
|
42
|
-
Lower Left ( 129.053, 109.036) ( 0d 0' 4.17"E, 0d 0' 3.55"N)
|
43
|
-
Upper Right ( -12.511, -5.034) ( 0d 0' 0.40"W, 0d 0' 0.16"S)
|
44
|
-
Lower Right ( 129.053, -5.034) ( 0d 0' 4.17"E, 0d 0' 0.16"S)
|
45
|
-
Center ( 58.271, 52.001) ( 0d 0' 1.88"E, 0d 0' 1.69"N)
|
Binary file
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'fileutils'
|
4
|
-
|
5
|
-
# Helper methods for integration specs.
|
6
|
-
module IntegrationHelp
|
7
|
-
def test_files
|
8
|
-
@test_files ||= []
|
9
|
-
end
|
10
|
-
|
11
|
-
def cleanup_test_files
|
12
|
-
test_files.each do |f|
|
13
|
-
FileUtils.rm(f) if File.exist?(f)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
# @param original_path [String]
|
18
|
-
# @return [String]
|
19
|
-
def make_temp_test_file(original_path)
|
20
|
-
file_name = File.basename(original_path)
|
21
|
-
relative_tmp_path = File.join(temp_base_dir, file_name)
|
22
|
-
tmp_path = File.expand_path(relative_tmp_path, __dir__)
|
23
|
-
|
24
|
-
return tmp_path if test_files.include?(tmp_path)
|
25
|
-
FileUtils.cp(original_path, tmp_path)
|
26
|
-
test_files << tmp_path
|
27
|
-
|
28
|
-
tmp_path
|
29
|
-
end
|
30
|
-
|
31
|
-
def temp_base_dir
|
32
|
-
File.join(%w[.. .. tmp])
|
33
|
-
end
|
34
|
-
end
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<?xml version="1.0"?>
|
2
|
-
<!--<!DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd">-->
|
3
|
-
<metadata xml:lang="en"><Esri><MetaID>{6C2FDF67-E8D4-4EE4-BE98-859E452FFE24}</MetaID><CreaDate>20061101</CreaDate><CreaTime>20281300</CreaTime><SyncOnce>TRUE</SyncOnce><DataProperties><lineage><Process Name="Create Feature Class" ToolSource="C:\ESRI\ARCGIS\ArcToolbox\Toolboxes\Data Management Tools.tbx\CreateFeatureclass" Date="20061101" Time="202813">CreateFeatureclass C:\ESRI\AEJEE_XTRA\AEJEE23data\usa states # states_Layer SAME_AS_TEMPLATE SAME_AS_TEMPLATE "GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-178.217598362366 18.921786345087 999999.999068677;0 100000;0 100000" # 0 0 0 C:\ESRI\AEJEE_XTRA\AEJEE23data\usa\states.shp</Process><Process Name="Append" ToolSource="C:\ESRI\ARCGIS\ArcToolbox\Toolboxes\Data Management Tools.tbx\Append" Date="20061101" Time="202813">Append states_Layer C:\ESRI\AEJEE_XTRA\AEJEE23data\usa\states.shp TEST C:\ESRI\AEJEE_XTRA\AEJEE23data\usa\states.shp</Process><Process Name="FeatureClassToFeatureClass_3" ToolSource="C:\ESRI\ARCGIS\ArcToolbox\Toolboxes\Conversion Tools.tbx\FeatureClassToFeatureClass" Date="20061101" Time="202814">FeatureClassToFeatureClass D:\usa\census\states.sdc\states C:\ESRI\AEJEE_XTRA\AEJEE23data\usa states # "STATE_NAME STATE_NAME VISIBLE;STATE_FIPS STATE_FIPS VISIBLE;SUB_REGION SUB_REGION VISIBLE;STATE_ABBR STATE_ABBR VISIBLE;POP2000 POP2000 VISIBLE;POP2005 POP2005 VISIBLE;POP00_SQMI POP00_SQMI VISIBLE;POP05_SQMI POP05_SQMI VISIBLE;WHITE WHITE VISIBLE;BLACK BLACK VISIBLE;AMERI_ES AMERI_ES VISIBLE;ASIAN ASIAN VISIBLE;HAWN_PI HAWN_PI VISIBLE;OTHER OTHER VISIBLE;MULT_RACE MULT_RACE VISIBLE;HISPANIC HISPANIC VISIBLE;MALES MALES VISIBLE;FEMALES FEMALES VISIBLE;AGE_UNDER5 AGE_UNDER5 VISIBLE;AGE_5_17 AGE_5_17 VISIBLE;AGE_18_21 AGE_18_21 VISIBLE;AGE_22_29 AGE_22_29 VISIBLE;AGE_30_39 AGE_30_39 VISIBLE;AGE_40_49 AGE_40_49 VISIBLE;AGE_50_64 AGE_50_64 VISIBLE;AGE_65_UP AGE_65_UP VISIBLE;MED_AGE MED_AGE VISIBLE;MED_AGE_M MED_AGE_M VISIBLE;MED_AGE_F MED_AGE_F VISIBLE;HOUSEHOLDS HOUSEHOLDS VISIBLE;AVE_HH_SZ AVE_HH_SZ VISIBLE;HSEHLD_1_M HSEHLD_1_M VISIBLE;HSEHLD_1_F HSEHLD_1_F VISIBLE;MARHH_CHD MARHH_CHD VISIBLE;MARHH_NO_C MARHH_NO_C VISIBLE;MHH_CHILD MHH_CHILD VISIBLE;FHH_CHILD FHH_CHILD VISIBLE;FAMILIES FAMILIES VISIBLE;AVE_FAM_SZ AVE_FAM_SZ VISIBLE;HSE_UNITS HSE_UNITS VISIBLE;VACANT VACANT VISIBLE;OWNER_OCC OWNER_OCC VISIBLE;RENTER_OCC RENTER_OCC VISIBLE;NO_FARMS97 NO_FARMS97 VISIBLE;AVG_SIZE97 AVG_SIZE97 VISIBLE;CROP_ACR97 CROP_ACR97 VISIBLE;AVG_SALE97 AVG_SALE97 VISIBLE;SQMI SQMI VISIBLE" SAME_AS_TEMPLATE SAME_AS_TEMPLATE # 0 C:\ESRI\AEJEE_XTRA\AEJEE23data\usa\states.shp</Process></lineage></DataProperties></Esri></metadata>
|
Binary file
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
RSpec.shared_context 'OGR::Layer, spatial_reference' do
|
4
|
-
require 'ogr/driver'
|
5
|
-
require 'ogr/spatial_reference'
|
6
|
-
|
7
|
-
let(:driver) { OGR::Driver.by_name 'Memory' }
|
8
|
-
let(:data_source) { driver.create_data_source 'spec data source' }
|
9
|
-
|
10
|
-
subject(:layer) do
|
11
|
-
data_source.create_layer 'spec layer',
|
12
|
-
geometry_type: :wkbMultiPoint,
|
13
|
-
spatial_reference: OGR::SpatialReference.new_from_epsg(4326)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
RSpec.shared_context 'OGR::Layer, no spatial_reference' do
|
18
|
-
require 'ogr/driver'
|
19
|
-
require 'ogr/spatial_reference'
|
20
|
-
|
21
|
-
let(:driver) { OGR::Driver.by_name 'Memory' }
|
22
|
-
let(:data_source) { driver.create_data_source 'spec data source' }
|
23
|
-
|
24
|
-
subject(:layer) do
|
25
|
-
data_source.create_layer 'spec layer',
|
26
|
-
geometry_type: :wkbMultiPoint
|
27
|
-
end
|
28
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
RSpec.shared_examples 'a major object' do
|
4
|
-
describe '#metadata_domain_list' do
|
5
|
-
it 'is an Array of Strings' do
|
6
|
-
expect(subject.metadata_domain_list).to be_an Array
|
7
|
-
|
8
|
-
subject.metadata_domain_list.each do |mdl|
|
9
|
-
expect(mdl).to be_a String
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
describe '#metadata' do
|
15
|
-
context 'default domain' do
|
16
|
-
it 'is a Hash' do
|
17
|
-
expect(subject.metadata).to be_a Hash
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
describe '#metadata_item' do
|
23
|
-
context 'default domain' do
|
24
|
-
context 'first item in metadata list' do
|
25
|
-
it 'is a String' do
|
26
|
-
unless subject.metadata.empty?
|
27
|
-
key = subject.metadata.keys.first
|
28
|
-
|
29
|
-
expect(subject.metadata_item(key)).to be_a String
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
describe '#all_metadata' do
|
37
|
-
it 'is a Hash' do
|
38
|
-
expect(subject.all_metadata).to be_a Hash
|
39
|
-
end
|
40
|
-
|
41
|
-
it 'has a DEFAULT key' do
|
42
|
-
expect(subject.all_metadata[:DEFAULT]).to eq subject.metadata
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
describe '#description' do
|
47
|
-
it 'is a String' do
|
48
|
-
expect(subject.description).to be_a String
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
describe '#null?' do
|
53
|
-
it { is_expected.to_not be_null }
|
54
|
-
end
|
55
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Requirements:
|
4
|
-
# * :child_geometry - one that the described class can
|
5
|
-
RSpec.shared_examples 'a container geometry' do
|
6
|
-
describe '#collection?' do
|
7
|
-
it 'returns true' do
|
8
|
-
expect(subject.collection?).to eq true
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
describe '#add_geometry' do
|
13
|
-
it 'adds the geometry to the container' do
|
14
|
-
skip
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
describe '#add_directly' do
|
19
|
-
it 'adds the geometry to the container' do
|
20
|
-
skip
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
describe '#remove_geometry' do
|
25
|
-
it 'removes the geometry to the container' do
|
26
|
-
skip
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
describe '#geometry_at' do
|
31
|
-
context 'geometry exists at the index' do
|
32
|
-
subject do
|
33
|
-
gc = described_class.new
|
34
|
-
gc.add_geometry(child_geometry)
|
35
|
-
gc
|
36
|
-
end
|
37
|
-
|
38
|
-
it 'returns the geometry' do
|
39
|
-
expect(subject.geometry_at(0)).to be_a(child_geometry.class)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
context 'no geometries' do
|
44
|
-
it 'returns nil' do
|
45
|
-
expect(subject.geometry_at(0)).to be_nil
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
@@ -1,406 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
RSpec.shared_examples 'a geometry' do
|
4
|
-
require 'ogr'
|
5
|
-
|
6
|
-
describe '#coordinate_dimension' do
|
7
|
-
subject { geometry.coordinate_dimension }
|
8
|
-
it { is_expected.to eq 2 }
|
9
|
-
end
|
10
|
-
|
11
|
-
describe '#coordinate_dimension=' do
|
12
|
-
context 'valid value' do
|
13
|
-
it 'changes the dimension to the new value' do
|
14
|
-
skip
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
context 'invalid value' do
|
19
|
-
it '???' do
|
20
|
-
skip
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
describe '#empty!' do
|
26
|
-
it 'removes all points/geometries from the geometry' do
|
27
|
-
skip
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
describe '#empty?' do
|
32
|
-
context 'when empty' do
|
33
|
-
subject { described_class.new }
|
34
|
-
it { is_expected.to be_empty }
|
35
|
-
end
|
36
|
-
|
37
|
-
context 'when with points' do
|
38
|
-
it 'is not empty' do
|
39
|
-
skip 'Writing the test'
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
describe '#envelope' do
|
45
|
-
subject { geometry.envelope }
|
46
|
-
it { is_expected.to be_a OGR::Envelope }
|
47
|
-
end
|
48
|
-
|
49
|
-
describe '#dump_readable' do
|
50
|
-
context 'with prefix' do
|
51
|
-
it 'writes out to a file' do
|
52
|
-
skip
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
context 'without prefix' do
|
57
|
-
it 'writes out to a file' do
|
58
|
-
skip
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
describe '#intersects?' do
|
64
|
-
context 'self intersects other geometry' do
|
65
|
-
it 'returns true' do
|
66
|
-
skip
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
context 'self does not intersect other geometry' do
|
71
|
-
it 'returns false' do
|
72
|
-
skip
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
describe '#equals?' do
|
78
|
-
context 'self equals other geometry' do
|
79
|
-
it 'returns true' do
|
80
|
-
skip
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
context 'self does not equals other geometry' do
|
85
|
-
it 'returns false' do
|
86
|
-
skip
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
describe '#disjoint?' do
|
92
|
-
context 'self disjoints other geometry' do
|
93
|
-
it 'returns true' do
|
94
|
-
skip
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
context 'self does not disjoint other geometry' do
|
99
|
-
it 'returns false' do
|
100
|
-
skip
|
101
|
-
end
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
describe '#touches?' do
|
106
|
-
context 'self touches other geometry' do
|
107
|
-
it 'returns true' do
|
108
|
-
skip
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
context 'self does not touch other geometry' do
|
113
|
-
it 'returns false' do
|
114
|
-
skip
|
115
|
-
end
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
|
-
describe '#crosses?' do
|
120
|
-
context 'self touches other geometry' do
|
121
|
-
it 'returns true' do
|
122
|
-
skip
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
context 'self does not touch other geometry' do
|
127
|
-
it 'returns false' do
|
128
|
-
skip
|
129
|
-
end
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
|
-
describe '#within?' do
|
134
|
-
context 'self is within other geometry' do
|
135
|
-
it 'returns true' do
|
136
|
-
skip
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
context 'self is not within other geometry' do
|
141
|
-
it 'returns false' do
|
142
|
-
skip
|
143
|
-
end
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
describe '#contains?' do
|
148
|
-
context 'self contains other geometry' do
|
149
|
-
it 'returns true' do
|
150
|
-
skip
|
151
|
-
end
|
152
|
-
end
|
153
|
-
|
154
|
-
context 'self does not contain other geometry' do
|
155
|
-
it 'returns false' do
|
156
|
-
skip
|
157
|
-
end
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
describe '#overlaps?' do
|
162
|
-
context 'self overlaps other geometry' do
|
163
|
-
it 'returns true' do
|
164
|
-
skip
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
|
-
context 'self does not overlap other geometry' do
|
169
|
-
it 'returns false' do
|
170
|
-
skip
|
171
|
-
end
|
172
|
-
end
|
173
|
-
end
|
174
|
-
|
175
|
-
describe '#valid?' do
|
176
|
-
context 'self is valid' do
|
177
|
-
it 'returns true' do
|
178
|
-
skip
|
179
|
-
end
|
180
|
-
end
|
181
|
-
|
182
|
-
context 'self is not valid' do
|
183
|
-
it 'returns false' do
|
184
|
-
skip
|
185
|
-
end
|
186
|
-
end
|
187
|
-
end
|
188
|
-
|
189
|
-
describe '#simple?' do
|
190
|
-
context 'self is simple' do
|
191
|
-
it 'returns true' do
|
192
|
-
skip
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
|
-
context 'self is not simple' do
|
197
|
-
it 'returns false' do
|
198
|
-
skip
|
199
|
-
end
|
200
|
-
end
|
201
|
-
end
|
202
|
-
|
203
|
-
describe '#ring?' do
|
204
|
-
context 'self is a ring' do
|
205
|
-
it 'returns true' do
|
206
|
-
skip
|
207
|
-
end
|
208
|
-
end
|
209
|
-
|
210
|
-
context 'self is not a ring' do
|
211
|
-
it 'returns false' do
|
212
|
-
skip
|
213
|
-
end
|
214
|
-
end
|
215
|
-
end
|
216
|
-
|
217
|
-
describe '#intersection' do
|
218
|
-
specify { skip 'Implementation' }
|
219
|
-
end
|
220
|
-
|
221
|
-
describe '#union' do
|
222
|
-
context 'where there is no union' do
|
223
|
-
specify { skip }
|
224
|
-
end
|
225
|
-
|
226
|
-
context 'where there is union' do
|
227
|
-
specify { skip }
|
228
|
-
end
|
229
|
-
end
|
230
|
-
|
231
|
-
describe '#close_rings!' do
|
232
|
-
it 'adds points to close any potential rings' do
|
233
|
-
skip
|
234
|
-
end
|
235
|
-
end
|
236
|
-
|
237
|
-
describe '#polygonize' do
|
238
|
-
it 'adds points to close any potential rings' do
|
239
|
-
skip
|
240
|
-
end
|
241
|
-
end
|
242
|
-
|
243
|
-
describe '#difference' do
|
244
|
-
it 'creates a new geometry that represents the difference' do
|
245
|
-
skip
|
246
|
-
end
|
247
|
-
end
|
248
|
-
|
249
|
-
describe '#symmetric_difference' do
|
250
|
-
it 'creates a new geometry that represents the difference' do
|
251
|
-
skip
|
252
|
-
end
|
253
|
-
end
|
254
|
-
|
255
|
-
describe '#distance_to' do
|
256
|
-
context 'other geometry is nil' do
|
257
|
-
it '???' do
|
258
|
-
skip
|
259
|
-
end
|
260
|
-
end
|
261
|
-
|
262
|
-
context 'other geometry is valid' do
|
263
|
-
it 'creates a new geometry that represents the difference' do
|
264
|
-
skip
|
265
|
-
end
|
266
|
-
end
|
267
|
-
end
|
268
|
-
|
269
|
-
describe '#spatial_reference' do
|
270
|
-
context 'none assigned' do
|
271
|
-
it 'returns nil' do
|
272
|
-
expect(geometry.spatial_reference).to be_nil
|
273
|
-
end
|
274
|
-
end
|
275
|
-
|
276
|
-
context 'has one assigned' do
|
277
|
-
it 'returns a spatial reference' do
|
278
|
-
geometry.spatial_reference = OGR::SpatialReference.new_from_epsg 4326
|
279
|
-
expect(geometry.spatial_reference).to be_a OGR::SpatialReference
|
280
|
-
end
|
281
|
-
end
|
282
|
-
end
|
283
|
-
|
284
|
-
describe '#spatial_reference=' do
|
285
|
-
it 'assigns the new spatial reference' do
|
286
|
-
skip
|
287
|
-
end
|
288
|
-
end
|
289
|
-
|
290
|
-
describe '#transform!' do
|
291
|
-
it 'assigns the new spatial reference' do
|
292
|
-
skip
|
293
|
-
end
|
294
|
-
end
|
295
|
-
|
296
|
-
describe '#transform_to!' do
|
297
|
-
it 'transforms the points into the new spatial reference' do
|
298
|
-
skip
|
299
|
-
end
|
300
|
-
|
301
|
-
it 'sets the new spatial reference' do
|
302
|
-
skip
|
303
|
-
end
|
304
|
-
end
|
305
|
-
|
306
|
-
describe '#simplify' do
|
307
|
-
context 'preserve_topology is true' do
|
308
|
-
it 'returns a new geometry' do
|
309
|
-
skip
|
310
|
-
end
|
311
|
-
end
|
312
|
-
|
313
|
-
context 'preserve_topology is false' do
|
314
|
-
it 'returns a new geometry' do
|
315
|
-
skip
|
316
|
-
end
|
317
|
-
end
|
318
|
-
end
|
319
|
-
|
320
|
-
describe '#segmentize!' do
|
321
|
-
it 'updates the geometry' do
|
322
|
-
skip
|
323
|
-
end
|
324
|
-
end
|
325
|
-
|
326
|
-
describe '#boundary' do
|
327
|
-
it 'returns a geometry that represents the boundary of self' do
|
328
|
-
skip
|
329
|
-
end
|
330
|
-
end
|
331
|
-
|
332
|
-
describe '#buffer' do
|
333
|
-
it 'returns a new geometry that adds a boundary around self' do
|
334
|
-
skip
|
335
|
-
end
|
336
|
-
end
|
337
|
-
|
338
|
-
describe '#convex_hull' do
|
339
|
-
it 'returns a new geometry that is the convex hull of self' do
|
340
|
-
skip
|
341
|
-
end
|
342
|
-
end
|
343
|
-
|
344
|
-
describe '#import_from_wkb' do
|
345
|
-
it 'updates self with the new geometry info' do
|
346
|
-
skip
|
347
|
-
end
|
348
|
-
end
|
349
|
-
|
350
|
-
describe '#import_from_wkt' do
|
351
|
-
it 'updates self with the new geometry info' do
|
352
|
-
skip
|
353
|
-
end
|
354
|
-
end
|
355
|
-
|
356
|
-
describe '#wkb_size' do
|
357
|
-
it 'returns a non-zero integer' do
|
358
|
-
expect(geometry.wkb_size).to be_a Integer
|
359
|
-
|
360
|
-
if geometry.name == 'LINEARRING'
|
361
|
-
expect(geometry.wkb_size).to be_zero
|
362
|
-
else
|
363
|
-
expect(geometry.wkb_size).to be > 0
|
364
|
-
end
|
365
|
-
end
|
366
|
-
end
|
367
|
-
|
368
|
-
describe '#to_wkb' do
|
369
|
-
it 'returns some binary String data' do
|
370
|
-
if geometry.name == 'LINEARRING'
|
371
|
-
expect { geometry.to_wkb }.to raise_exception OGR::UnsupportedOperation
|
372
|
-
else
|
373
|
-
expect(geometry.to_wkb).to be_a String
|
374
|
-
expect(geometry.to_wkb).to_not be_empty
|
375
|
-
end
|
376
|
-
end
|
377
|
-
end
|
378
|
-
|
379
|
-
describe '#to_wkt' do
|
380
|
-
it 'returns some String data' do
|
381
|
-
expect(geometry.to_wkt).to be_a String
|
382
|
-
expect(geometry.to_wkt).to_not be_empty
|
383
|
-
end
|
384
|
-
end
|
385
|
-
|
386
|
-
describe '#to_gml' do
|
387
|
-
it 'returns some String data' do
|
388
|
-
expect(geometry.to_gml).to be_a String
|
389
|
-
expect(geometry.to_gml).to_not be_empty
|
390
|
-
end
|
391
|
-
end
|
392
|
-
|
393
|
-
describe '#to_kml' do
|
394
|
-
it 'returns some String data' do
|
395
|
-
expect(geometry.to_kml).to be_a String
|
396
|
-
expect(geometry.to_kml).to_not be_empty
|
397
|
-
end
|
398
|
-
end
|
399
|
-
|
400
|
-
describe '#to_geo_json' do
|
401
|
-
it 'returns some String data' do
|
402
|
-
expect(geometry.to_geo_json).to be_a String
|
403
|
-
expect(geometry.to_geo_json).to_not be_empty
|
404
|
-
end
|
405
|
-
end
|
406
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
RSpec.shared_examples 'a line string' do
|
4
|
-
describe '#dimension' do
|
5
|
-
subject { geometry.dimension }
|
6
|
-
it { is_expected.to eq 1 }
|
7
|
-
end
|
8
|
-
|
9
|
-
describe '#type' do
|
10
|
-
subject { geometry.type }
|
11
|
-
it { is_expected.to eq :wkbLineString }
|
12
|
-
end
|
13
|
-
|
14
|
-
describe '#type_to_name' do
|
15
|
-
subject { geometry.type }
|
16
|
-
it { is_expected.to eq :wkbLineString }
|
17
|
-
end
|
18
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
2.0.0
|
@@ -1 +0,0 @@
|
|
1
|
-
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.017453292519943295]]
|
Binary file
|