Last active
October 12, 2017 16:34
-
-
Save pigreco/20d41b53625873d8a045ed10e52d5eed to your computer and use it in GitHub Desktop.
questo gist segue il gist 'dove mi trovo'; è da utilizzare nel posizionamento delle etichette - metodo cartographic- position priority - vettore di copertura rettangolare
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CASE | |
WHEN | |
length( shortest_line( $geometry, boundary( @atlas_geometry ) ) ) < @dist_bordo | |
and | |
angle_at_vertex( shortest_line( $geometry, boundary( @atlas_geometry ) ) ,0) =180 | |
THEN 'TSL' | |
WHEN | |
length( shortest_line( $geometry, boundary( @atlas_geometry ))) <@dist_bordo | |
and | |
angle_at_vertex( shortest_line( $geometry, boundary( @atlas_geometry ) ),0 ) =0 | |
THEN 'BSR' | |
WHEN | |
length( shortest_line( $geometry, boundary( @atlas_geometry) ) ) <@dist_bordo | |
and | |
angle_at_vertex( shortest_line( $geometry, boundary( @atlas_geometry ) ),0 ) =270 | |
THEN 'R' | |
WHEN | |
length( shortest_line( $geometry, boundary( @atlas_geometry )) ) <@dist_bordo | |
and | |
angle_at_vertex( shortest_line( $geometry, boundary( @atlas_geometry ) ),0 )=90 | |
THEN 'L' | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment