Skip to content

Line & Polygon interpolation cannot handle metre disaggregation when already in a projected crs #648

@Evelyn-M

Description

@Evelyn-M

Concerns the util.lines_polys_handler module:

If exp.gdf is already in a metre-based reference system, the kwarg to_metres=True is somewhat ambiguous, since the code currently tries to re-project from a metre-based reference system to a metre-based reference system (and hence fails), as pointed out by @thomini.

Should be an aasy fix by checking if already in a "useful" crs, and dont reproject in that case.
Error could also be avoided by simply putting to_metres=False, yet perhaps not so user-friendy / intuitive.

exp_pnt = u_lp.exp_geom_to_pnt(
    exp, res=1000, to_meters=True,
    disagg_met=u_lp.DisaggMethod.DIV, disagg_val=None
)

image001

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions