Skip to content

Commit

Permalink
Merge branch 'release/0.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheider committed Mar 22, 2024
2 parents 6ae3b81 + f785a10 commit b148094
Show file tree
Hide file tree
Showing 26 changed files with 642 additions and 574 deletions.
2 changes: 1 addition & 1 deletion jord/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

__project__ = "Jord"
__author__ = "Christian Heider Lindbjerg"
__version__ = "0.4.8"
__version__ = "0.5.0"
__doc__ = r"""
.. module:: jord
:platform: Unix, Windows
Expand Down
3 changes: 1 addition & 2 deletions jord/gdal_utilities/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class SilenceGDALSession(AlsoDecorator):
TODO: add support for having a lasting side effect or leaving last set state of error/exception handling
"""

def __init__(self):
...
def __init__(self): ...

def __enter__(self) -> bool:
GDAL.PushErrorHandler(
Expand Down
9 changes: 3 additions & 6 deletions jord/geometric_analysis/degrees_of_freedom.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from shapely.geometry import Polygon, LineString


def is_2d_translatable():
...
def is_2d_translatable(): ...


def has_touches_across_centroid_buffer(
Expand All @@ -19,9 +18,7 @@ def has_touches_across_centroid_buffer(
...


def is_simple_shape():
...
def is_simple_shape(): ...


def has_3_sides_touching():
...
def has_3_sides_touching(): ...
6 changes: 4 additions & 2 deletions jord/qgis_utilities/categorisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from itertools import cycle
from typing import Callable, Generator, Iterable, Sized

import qgis
from PyQt5.Qt import QColor

# noinspection PyUnresolvedReferences
Expand All @@ -14,6 +13,9 @@
QgsSymbol,
QgsVectorLayer,
)

# noinspection PyUnresolvedReferences
from qgis.utils import iface
from warg import QuadNumber, TripleNumber, n_uint_mix_generator_builder

__all__ = ["categorise_layer"]
Expand Down Expand Up @@ -114,4 +116,4 @@ def categorise_layer(

layer.setRenderer(QgsCategorizedSymbolRenderer(field_name, render_categories))
layer.triggerRepaint()
qgis.utils.iface.layerTreeView().refreshLayerSymbology(layer.id())
iface.layerTreeView().refreshLayerSymbology(layer.id())
9 changes: 3 additions & 6 deletions jord/qgis_utilities/conversion/parsing.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/usr/bin/env python3
def sanitise_wkb() -> str:
...
def sanitise_wkb() -> str: ...


def sanitise_wkt() -> str:
...
def sanitise_wkt() -> str: ...


def explode_geometry_collection():
...
def explode_geometry_collection(): ...
Loading

0 comments on commit b148094

Please sign in to comment.