Skip to content

cleanup raster/sf use WIP #48

@mdsumner

Description

@mdsumner

tentatively , I'll just sit on this a while but see branch remove-raster-method

  • remove raster() method
  • re-export both plot() and raster() from raster
  • remove sp and methods dep (because we aren't defining a raster('sf') method

need to determine sensible crs behaviour (we were copying the sf$crs$proj4string to r@crs when using raster(sf))

situations are

-[x] input sf has NA crs, do nothing
-[x] input sf has crs, input raster has NA crs ,do nothing
-[ ] input sf has crs, input raster has crs and they are different
-[x] input sf has crs, input raster has crs and they are same, do nothing

the only thing to do is st_transform when both are set but different, but do we check if there's wkt/projstring in the raster?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions