Skip to content

Commit

Permalink
Improve logic for geotype conversion (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Mar 7, 2022
1 parent b06f711 commit fd4edb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoviews/operation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def convert_to_geotype(element, crs=None):
geotype = getattr(gv_element, type(element).__name__, None)
if crs is None or geotype is None or isinstance(element, _Element):
return element
return geotype(element, crs=crs)
return element.clone(new_type=geotype, crs=crs)


def find_crs(op, element):
Expand Down

0 comments on commit fd4edb5

Please sign in to comment.