Within the file hot_fair_utilities/preprocessing/multimasks_from_polygons.py , there appears to be an issue with the co-ordinate projection process. Possibly the code needs additional logic checks or a way to 'fail gracefully'. I get the following error message relating to co-ordinate projection within this file when trying to run test_ramp.py.
Expected result:
Co-ordinates to be projected successfully using the reference image. Failing gracefully if needed.
Observed result:
Co-ordinate projection is failing with the following error:
`test_ramp.py 69
preprocess(
preprocess.py 118 preprocess
multimasks_from_polygons(
multimasks_from_polygons.py 106 multimasks_from_polygons
gdf = gdf.to_crs(get_crs(reference_im))
geodataframe.py 1410 to_crs
geom = df.geometry.to_crs(crs=crs, epsg=epsg)
geoseries.py 1175 to_crs
self.values.to_crs(crs=crs, epsg=epsg), index=self.index, name=self.name
array.py 870 to_crs
transformer = TransformerFromCRS(self.crs, crs, always_xy=True)
transformer.py 625 from_crs
return Transformer(
transformer.py 337 init
self._local.transformer = transformer_maker()
transformer.py 105 call
return _Transformer.from_crs(
_transformer.pyx 568 pyproj._transformer._Transformer.from_crs
_transformer.pyx 344 pyproj._transformer.proj_create_crs_to_crs
pyproj.exceptions.ProjError:
Error creating Transformer from CRS.`
Within the file hot_fair_utilities/preprocessing/multimasks_from_polygons.py , there appears to be an issue with the co-ordinate projection process. Possibly the code needs additional logic checks or a way to 'fail gracefully'. I get the following error message relating to co-ordinate projection within this file when trying to run test_ramp.py.
Expected result:
Co-ordinates to be projected successfully using the reference image. Failing gracefully if needed.
Observed result:
Co-ordinate projection is failing with the following error:
`test_ramp.py 69
preprocess(
preprocess.py 118 preprocess
multimasks_from_polygons(
multimasks_from_polygons.py 106 multimasks_from_polygons
gdf = gdf.to_crs(get_crs(reference_im))
geodataframe.py 1410 to_crs
geom = df.geometry.to_crs(crs=crs, epsg=epsg)
geoseries.py 1175 to_crs
self.values.to_crs(crs=crs, epsg=epsg), index=self.index, name=self.name
array.py 870 to_crs
transformer = TransformerFromCRS(self.crs, crs, always_xy=True)
transformer.py 625 from_crs
return Transformer(
transformer.py 337 init
self._local.transformer = transformer_maker()
transformer.py 105 call
return _Transformer.from_crs(
_transformer.pyx 568 pyproj._transformer._Transformer.from_crs
_transformer.pyx 344 pyproj._transformer.proj_create_crs_to_crs
pyproj.exceptions.ProjError:
Error creating Transformer from CRS.`