-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the line_interpolate_point function does not work with EPSG 4326 #27581
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Nyall Dawson (@nyalldawson) Try line_interpolate_point ($ geometry, length($geometry) / 2) $length converts to the project length setting, which is likely metres.
|
Author Name: salvatore fiandaca (salvatore fiandaca) Nyall Dawson wrote:
I did a test and your expression works. PS: in QGIS 2.18.23 changing units of measure (project properties -> degree map unit) $ length respects the change; QGIS 3.2.2 and DEV do not respect the change of units and the length is always in meters |
Author Name: salvatore fiandaca (salvatore fiandaca) salvatore fiandaca wrote:
errata corrige: it is necessary to change both ellipsoid settings in 'none / planimetric' and units of distance measurement in 'degrees'
|
Author Name: Giovanni Manghi (@gioman)
filing a different ticket? |
Author Name: Giovanni Manghi (@gioman)
so... means this ticket can be closed? |
Author Name: salvatore fiandaca (salvatore fiandaca) Giovanni Manghi wrote:
yes, it can be closed |
Author Name: Nyall Dawson (@nyalldawson)
|
Author Name: salvatore fiandaca (salvatore fiandaca)
Original Redmine Issue: 19756
Affected QGIS version: 3.3(master)
Redmine category:expressions
I attach a shapefile linestring in EPSG 4326 and I ask you to do the
following test:
add a text field - long 80 - and populate it with the following
expression:
geom_to_wkt (line_interpolate_point ($ geometry, $ length / 2))
then exported to csv to verify the points.
result: point on the first vertex
expected result: central point along the line
In QGIS 2.18.23 LTR the field is filled out but the coordinates are of the first one
vertex and not the expected one of the centroid along the line;
In QGIS 3.2.2 the field is filled out but the coordinates are of the first one
vertex and not the expected one of the centroid along the line;
In QGIS 3.3 dev the field is NOT compiled, or rather the value is NULL
in all three versions the expression works well if used for
thematize with geometry generator
The text was updated successfully, but these errors were encountered: