CosmiQ / solaris

CosmiQ Works Geospatial Machine Learning Analysis Toolkit
https://solaris.readthedocs.io
Apache License 2.0
411 stars 112 forks source link

vector.mask.footprint_mask() does not recognize crs #467

Closed lappemic closed 2 weeks ago

lappemic commented 1 year ago

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

Additional context

Solaris is installed in condacolab.