Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • glatos glatos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 59
    • Issues 59
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GreatLakes
  • glatosglatos
  • Merge requests
  • !25

Closed
Created Mar 09, 2020 by Bruce Delo@bdeloDeveloper
  • Report abuse
Report abuse

Added 'invert' parameter to make_transition.

  • Overview 1
  • Commits 2
  • Changes 5

The new parameter passes straight through to gdal_rasterize's 'i' parameter, indicating that it should return the inverse of the raster it ordinarily would. This is useful if the polygon passed to the function represents a landmass rather than a body of water. For example, if a user downloads a polygon from GADM representing the administrative boundary of a coastal state, province, or country, and then passes that polygon to make_transition, glatos will assume the polygon is a body of water, which is the opposite of what we want. With this parameter, we can simply invert the resulting raster, which will give us an object that treats land as land and water as water.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: inverted_make_transition