MyNixOS website logo
Description

Cleaning Geometries from Spatial Objects.

Provides a set of utility tools to inspect spatial objects, facilitate handling and reporting of topology errors and geometry validity issue with sp objects. Finally, it provides a geometry cleaner that will fix all geometry problems, and eliminate (at least reduce) the likelihood of having issues when doing spatial data processing.

cleangeo

CRAN_Status_Badge Github_Status_Badge cran checks DOI

cleangeo provides utilities to clean geometries from spatial objects in R. If you aim to do geoprocessing in R, this package will help you in cleaning your Spatial* objects before, and avoid geoprocessing errors later.

Note on cleangeo archiving process (after version 0.3), needs/prerequisites to move to sf

The_ cleangeo package was developed in 2015 at at time where sp and rgeos, maptools, raster, etc. were among R solutions to deal with spatial data handling. With the increase of sf instead of sp objects, it's recommended to switch progressively to sf as base for handling spatial features, and to use sf::st_make_valid to validate geometries (which is now the default in cleangeo). Following the archiving of rgeos, maptools, it is probable that cleangeo may also be archived.

Native geometry fixing strategies, although applicable in some cases, do not cover the full typology of geometry issues we may find with vector data. Although refactored to remove the dependency with rgeos and maptools, some unexpected behaviors can be found.

With the progress done on validating geometries, especially with sf, the default strategy to fix geometries in cleangeo has now been switched to the use of sf::st_make_valid.

Nonetheless, although the original set-up and actual name of sf refers to an ISO/OGC specification (Simple Features), users that handle geospatial data with tools that rely on the ISO/OGC realm (most of GIS tools, from the OsGeo or even proprietary software) should use sfcautiously as the default behavior doesn't rely anymore on the ISO/OGC realm for managing geographic coordinates (it was initially) but on a non-standard technology-specific geometry model handled with s2 (from the name of the library developed by Google). To turn off this default set-up, and to conserve legacy behaviors (backward-compatibility) in geospatial processes, users will need to ensure they use sf::sf_use_s2(FALSE). This is particularly needed if you grab data from OGC data services (eg. with ows4R), and related OGC formats that do not rely on the s2 data model, but on the ISO/OGC Simple Features data model.

Citation

We thank in advance people that use cleangeo for citing it in their work / publication(s). For this, please use the citation provided at this link DOI

Use cases

Some projects using cleangeo:

Metadata

Version

0.3-1

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows