Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soilmap: early exploration + creation of soilmap_simple #34

Merged
merged 11 commits into from
Apr 10, 2020
Merged

Commits on Sep 30, 2019

  1. Configuration menu
    Copy the full SHA
    4de3c07 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2019

  1. Configuration menu
    Copy the full SHA
    05c3c30 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2514ab1 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2020

  1. Configuration menu
    Copy the full SHA
    e7343a0 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2020

  1. Configuration menu
    Copy the full SHA
    906fc7a View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2020

  1. generate_soilmap_simple: explanations in non-spatial table *

    Compared to keeping explan vars as columns, this saves about 30 MB.
    From this experience, experiments have been carried out (discarded!)
    to convert all factors to integers, and storing even the 'double'-type var
    'bsm_poly_id' as an integer, and store the corresponding levels in
    non-spatial tables. However, this saved only about 4 MB, meaning that
    the storage as 'REAL' and as 'TEXT' in SQLite does not take up much more
    space (for 270550 rows) than storing as 'MEDIUMINTEGER'.
    Hence, discarded these extra steps to ease writing and reading.
    florisvdh committed Apr 8, 2020
    Configuration menu
    Copy the full SHA
    9417da0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    286438d View commit details
    Browse the repository at this point in the history
  3. generate_soilmap_simple: register non-spatial table *

    Non-spatial tables need to be registered in the GeoPackage
    in order to conform to the GPKG standard.
    For now, this is done in a manual fashion, despite the ability
    of GDAL to take care of this for GPKG. I found no way to use
    this ability from R, so implemented the easy, though obsoleted
    approach of GeoPackage 1.0 to register non-spatial tables as
    data_type "aspatial" in the gpkg_contents table; see:
    https://gdal.org/drivers/vector/aspatial.html#vector-aspatial
    
    Question on implementation in R, see:
    r-spatial/sf#1345
    
    The current way (GPKG 1.2) to handle this (data_type "attributes")
    is supported by GDAL, see:
    https://gdal.org/drivers/vector/gpkg.html#layer-creation-options .
    But it needs more work to do it manually, so
    made a GPKG 1.0 compliant version for now.
    See https://www.ogc.org/standards/geopackage .
    
    Note that GDAL is supportive when reading non-compliant
    gpkg-files, as it 'will also, by default, list non spatial tables
    that are not registered', which is why this worked beforehand
    with st_read().
    See https://gdal.org/drivers/vector/gpkg.html#non-spatial-tables .
    florisvdh committed Apr 8, 2020
    Configuration menu
    Copy the full SHA
    d231436 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2020

  1. Configuration menu
    Copy the full SHA
    3abfcad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b3c6696 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2020

  1. Configuration menu
    Copy the full SHA
    7c859d7 View commit details
    Browse the repository at this point in the history