# See ../README.md for a description of the file format tests: # MK: 23.2.2016 / Fails on travis:OSX # - algorithm: gdalogr:rasterize # name: Test (gdalogr:rasterize) # params: # BIGTIFF: 0 # COMPRESS: 4 # DIMENSIONS: 0 # EXTRA: "" # FIELD: "Bfloatval" # HEIGHT: 100 # INPUT: # name: multipolys.gml # type: vector # JPEGCOMPRESSION: 75 # NO_DATA: -9999 # PREDICTOR: 1 # RTYPE: 5 # TFW: False # TILED: False # WIDTH: 100 # ZLEVEL: 6 # results: # OUTPUT: # hash: f1fedeb6782f9389cf43590d4c85ada9155ab61fef6dc285aaeb54d6 # type: rasterhash - algorithm: gdalorg:rasterinfo name: GDAL gdalinfo params: INPUT: name: raster.tif type: raster NOGCP: false NOMETADATA: false results: OUTPUT: name: expected/gdal/raster_info.html type: regex rules: - 'Origin = \(270736.067325068172067,4459029.574521748349071\)' - 'Band 1 Block=16x14 Type=Float32, ColorInterp=Gray' - ' NoData Value=-32768' # - algorithm: gdalogr:polygonize # name: GDAL polygonize # params: # FIELD: DN # INPUT: # name: raster.tif # type: raster # results: # OUTPUT: # name: expected/gdal/polygonize.gml # type: vector - algorithm: gdalogr:information name: GDAL ogrinfo params: INPUT: name: lines.gml type: vector SUMMARY_ONLY: 'True' results: OUTPUT: name: expected/gdal/vector_info.html type: regex rules: - 'Extent: \(-1.000000, -3.000000\) - \(11.000000, 5.000000\)' - 'Geometry: Line String' - 'Feature Count: [6|7]' # On some platforms returns 6 instead of 7... - algorithm: gdalogr:buffervectors name: OGR buffer lines params: DISSOLVEALL: false DISTANCE: '1' GEOMETRY: geometry INPUT_LAYER: name: lines.gml type: vector MULTI: false results: OUTPUT_LAYER: name: expected/gdal/buffer_lines.gml type: vector - algorithm: gdalogr:buffervectors name: OGR basic polygon buffer params: DISSOLVEALL: false DISTANCE: '0.5' GEOMETRY: geometry INPUT_LAYER: name: polys.gml type: vector MULTI: false results: OUTPUT_LAYER: name: expected/gdal/buffer_polys.gml type: vector - algorithm: gdalogr:buffervectors name: OGR polygon buffer with dissolve params: DISSOLVEALL: true DISTANCE: '0.5' GEOMETRY: geometry INPUT_LAYER: name: polys.gml type: vector MULTI: false results: OUTPUT_LAYER: name: expected/gdal/buffer_polys_dissolve.gml type: vector - algorithm: gdalogr:createpointsalonglines name: OGR points along lines params: DISTANCE: 0.25 GEOMETRY: geometry INPUT_LAYER: name: lines.gml type: vector results: OUTPUT_LAYER: name: expected/gdal/points_along_lines.gml type: vector - algorithm: gdalogr:offsetlinesforlines name: OGR offset lines for lines (right-handed) params: DISSOLVEALL: false GEOMETRY: geometry INPUT_LAYER: name: lines.gml type: vector MULTI: false RADIUS: -0.5 results: OUTPUT_LAYER: name: expected/gdal/offset_lines.gml type: vector