Skip to content

Commit d2fefc5

Browse files
committed
Fix null geometry bug.
1 parent 5853016 commit d2fefc5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

geom2field.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ def processAlgorithm(self, parameters, context, feedback):
272272
for cnt, feature in enumerate(iterator):
273273
if feedback.isCanceled():
274274
break
275-
pt = feature.geometry().asPoint()
276-
if layerCRS != outCRS:
277-
pt = transform.transform(pt)
278275
try:
276+
pt = feature.geometry().asPoint()
277+
if layerCRS != outCRS:
278+
pt = transform.transform(pt)
279279
if outputFormat == 0: # Two fields for coordinates
280280
if outCRS == epsg4326:
281281
if wgs84Format == 0: # Decimal Degrees

metadata.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name=Lat Lon Tools
33
qgisMinimumVersion=3.4
44
description=Tools to capture and zoom to coordinates using decimal, DMS, WKT, GeoJSON, MGRS, UTM, UPS, Geohash, Maidenhead grid, and Plus Codes formats. Provides external map support, point digitizing tools, coordinate conversion tools, and conversion functions.
5-
version=3.5.6
5+
version=3.5.7
66
author=C Hamilton
77
88
about=
@@ -29,6 +29,7 @@ hasProcessingProvider=yes
2929
experimental=False
3030
deprecated=False
3131
changelog=
32+
3.5.7 - Fix bug with null geometry in geometry to field algorithm
3233
3.5.6 - Fix field calculator documentation.
3334
3.5.5 - Added to_pluscode and from_pluscode field calculator functions.
3435
3.5.4 - Added GEOREF to Coordinate Conversion dialog box, zoom to, and coordinate capture.

0 commit comments

Comments
 (0)