diff --git a/jord/__init__.py b/jord/__init__.py index 1f3a537..ff2d3fc 100755 --- a/jord/__init__.py +++ b/jord/__init__.py @@ -8,7 +8,7 @@ __project__ = "Jord" __author__ = "Christian Heider Lindbjerg" -__version__ = "0.7.5" +__version__ = "0.7.6" __doc__ = r""" .. module:: jord :platform: Unix, Windows diff --git a/jord/qlive_utilities/procedures.py b/jord/qlive_utilities/procedures.py index b5d038f..173f709 100755 --- a/jord/qlive_utilities/procedures.py +++ b/jord/qlive_utilities/procedures.py @@ -57,7 +57,7 @@ @passes_kws_to(add_qgis_single_feature_layer) -def add_wkb(qgis_instance_handle: Any, wkb: str, *args, **kwargs) -> List: +def add_wkb(qgis_instance_handle: Any, wkb: bytes, *args, **kwargs) -> List: """ :param qgis_instance_handle: @@ -69,13 +69,13 @@ def add_wkb(qgis_instance_handle: Any, wkb: str, *args, **kwargs) -> List: from qgis.core import QgsGeometry return add_qgis_single_feature_layer( - qgis_instance_handle, QgsGeometry.fromWkb(wkb), *args, **kwargs + qgis_instance_handle, QgsGeometry().fromWkb(wkb), *args, **kwargs ) @passes_kws_to(add_wkb) def add_wkbs( - qgis_instance_handle: Any, wkbs: Mapping[str, str], *args, **kwargs + qgis_instance_handle: Any, wkbs: Mapping[str, bytes], *args, **kwargs ) -> List: """ @@ -94,17 +94,17 @@ def add_wkbs( @passes_kws_to(add_qgis_multi_feature_layer) def add_wkb_layer( - qgis_instance_handle: Any, wkbs: Iterable[str], *args, **kwargs + qgis_instance_handle: Any, wkbs: Iterable[bytes], *args, **kwargs ) -> List: # noinspection PyUnresolvedReferences from qgis.core import QgsGeometry - if isinstance(wkbs, str): + if isinstance(wkbs, bytes): wkbs = [wkbs] return add_qgis_multi_feature_layer( qgis_instance_handle, - [QgsGeometry.fromWkb(wkb) for wkb in wkbs], + [QgsGeometry().fromWkb(wkb) for wkb in wkbs], *args, **kwargs, )