Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • mapMCDA mapMCDA
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Un arrêt de service aura lieu le lundi 27 mars de 17h à 21h pour maintenance.
Il ne sera plus possible d’utiliser forgemia ni d’accéder aux dépôts (git, container, packages…) pendant cette période.

  • UMR-ASTREUMR-ASTRE
  • mapMCDAmapMCDA
  • Issues
  • #27
Closed
Open
Issue created Apr 11, 2019 by Facundo Muñoz@famuvie®️Owner

Final risk map by epidemiological unit not shown

Created by: famuvie

When the layer of epidemiological units lacks CRS information (missing .prj in the original shapefile), the analysis work as expected except for the final risk map by epidemiological unit, which is not shown.

I could not reproduce locally exactly. I always see an error message. But I believe it to have the same root cause.

MRE:

library(mapMCDA)
library(raster)
#> Loading required package: sp
r <- raster(nrow = 10, ncol = 10)
r[] <- seq.int(ncell(r))
epiunits <- as(r, "SpatialPolygons")
proj4string(epiunits) <- CRS()
risk_unit(r, epiunits)
#> Error in over(eu, rgrid, fn = fun): identicalCRS(x, y) is not TRUE

Created on 2019-04-11 by the reprex package (v0.2.1)

Assignee
Assign to
Time tracking