Skip to content

Instantly share code, notes, and snippets.

@mdiener21
Last active December 16, 2016 10:18
Show Gist options
  • Save mdiener21/562093f9ecd0362d1c4d3f50902619d4 to your computer and use it in GitHub Desktop.
Save mdiener21/562093f9ecd0362d1c4d3f50902619d4 to your computer and use it in GitHub Desktop.
qgis expression to convert x-coordinate to epsg 3857 from epsg 4326
x-geom
substr(to_string(geom_to_wkt(transform( $geometry ,'EPSG:4326','EPSG:3857'))),7,16)
y-geom
substr(to_string(geom_to_wkt(transform( $geometry ,'EPSG:4326','EPSG:3857'))),25,16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment