solaris icon indicating copy to clipboard operation
solaris copied to clipboard

vector.mask.footprint_mask() does not recognize crs

Open lappemic opened this issue 2 years ago • 0 comments

Summary of the bug

When i use vector.mask.footprint_mask() on my geojsons solaris does not recognize my crs (OGC:1.3:CRS84). Or at least all my masks ar 0's.

Steps to reproduce the bug

fp_mask = sol.vector.mask.footprint_mask(df = os.path.join(jsons_path, json_name), 
                                         reference_im = os.path.join(image_path, img_name))

with geojsons having the 'geometry' in mentioned crs.

Buggy behavior and/or error message

The produced masks are all empty.

print(255 in fp_mask)

results in

False

Expected behavior

Solaris should recognise and convert the mentioned crs to the needed crs. Also there is no documentation about which crs's are supported within solaris. Or do i miss something here?

Environment information

  • OS: google colab
  • solaris version: 0.4.0
  • python version: 3.7

Additional context

Solaris is installed in condacolab.

lappemic avatar Aug 16 '22 16:08 lappemic