Skip to content

cabesuon/ideuy_controls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IDE(uy) Controls

Short Description

Set of controls for satellite images and some vector products generated from them.

Context

These scripts were developed in order to assist the control of raster and vector data result of the project "Proyecto de producción y control de Ortoimágenes, Modelos Digitales de Elevación y Cartografía", carry by IDE (1).

IDE is the Uruguayan national agency that establishes public standards for global access and the exchange of geographic information in Uruguay.

The project produced and certified digital ortho-images of all national coverage, digital terrain models and basic cartography at a scale of 1: 10,000.

Folder Structure

  • controls (controls source code)
    • commons_controls (share funtionality for timing programs and file handling)
    • db_division
    • imagery_controls (image handling functionality and main program for imagery data controls)
    • postgis_controls (postgis database handling functionality and main program for vectorial data controls)
    • pyqgis_controls
  • locales (locales files)
    • controls
      • commons_controls
      • imagery_controls
      • postgis_controls
  • scripts (bat files for locales generation, test running and environment settings)
  • sql (sql scripts for unit test data generation)
  • tests (unit tests)
    • commons_controls_tests
    • imagery_controls_tests
    • postgis_controls_tests

Imagery Data Controls

General Imagery Program

> python imagery_controls.py $input_folder $output_folder --control $control  --conform $conform_value --deviation $deviation_value

Control = { pixel_size, dig_level, bands_len, rad_balance, nodata, aall }

The $input_folder can be recursive explored adding the option --recursive. By default, this option is False (--non-recursive).

Help can be display with option -h.

Pixel size (pixel_size)

Analize that every .tif file of a directory complies with a stablish spatial resolution given by the pixel size.

If the program is executed with the option --twf, then if found, .twf files will be used first.

Digital level (dig_level)

Analize that every .tif file of a directory complies with a stablished digital level given by the datatype of the bands.

Number of Bands (bands_len)

Analize that every .tif file of a directory complies with a stablish spectral resolution given by the number of bands.

Radiometric Balance (rad_balance)

Analize that every .tif file of a directory complies with a stablished radiometric balance given by the percentage of pixels in the extremes values.

NODATA Percentage (nodata)

Analize that every .tif file of a directory complies with a stablished percentage of NODATA pixels.

Vectorial Data Controls

General Vectorial Program

> python postgis_controls.py $dbname $dbschema $user $password $output_folder --control $control --host $host --port $port --summary $summary

Rule = { invalid, duplicate, multipart, intersect, null, aall }

The $input_folder can be recursive explored adding the option --recursive. By default, this option is False (--non-recursive).

Help can be display with option -h.

Invalids (_invalid)

Search invalid geometries of all tables in a given schema. Uses ST_Invalid PostGIS for the task function.

Duplicates (_duplicate)

Search duplicate geometries of all tables in a given schema.

Multiparts (multipart_)

Search multipart geometries of all tables in a given schema.

Not Allowed Intersections (intersect)

Search not allowed intersection between geometries of all tables in a given schema. Allowed intersections are taken from a json file passed with the option --admissibles path\to\admissibles.json.

The admissibles file has the following format,

{
  "table_i1": ["table_j1", .., "table_k1"],
  "table_i2": ["table_j2", .., "table_k2"],
  ..,
  "table_iN": ["table_jN", .., "table_kN"]
}

where 1 <= i,j,k <= N.

Null (nodata)

Search null geometries of all tables in a given schema.

References

1 - "Proyecto de producción y control de Ortoimágenes, Modelos Digitales de Elevación y Cartografía"

About

Set of controls for satellite images and vector products generated from them.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published