Skip to main content
7 events
when toggle format what by license comment
Feb 15, 2022 at 3:47 comment added Albert The expression is now as follows, but I still get misleading results: distance(transform($geometry, 'EPSG:4326', 'EPSG:32737'), transform (geometry(get_feature_by_id( @layer_name, $id+1)), 'EPSG:4326', 'EPSG:32737'))
Feb 14, 2022 at 21:30 comment added Albert The fact that it all works when saved as a shapefile makes me think that you are in the right track and its to do with transformation and CRS. The CRS of my project is EPSG:32737
Feb 14, 2022 at 21:28 comment added Albert I made a calculated field to show $id and this is correct - 1st record has $id 1, second $id 2 etc
Feb 14, 2022 at 21:27 comment added Albert The transformation resulted in values now in the range of 10-9500 (ie now too big!) and still bearing no correspondence with actual spacing (ie large spacing does not necessarily have large values).
Feb 14, 2022 at 21:17 history edited Matt CC BY-SA 4.0
added 4 characters in body
Feb 14, 2022 at 21:08 history edited Matt CC BY-SA 4.0
added 34 characters in body
Feb 14, 2022 at 21:02 history answered Matt CC BY-SA 4.0