2

I've got a WMTS service that work well, but I would like to display a grid in qgis over it with X, Y, Z information how may I do that ?

If QGis can't generate it for us, how may I generate this kind of grid ?


My problem is that I would need very high zoom (17/ 18) and the generation of geopackage is impossible (30 000 000 000 000 polygon is way to much with today PC...).

Is there a way to have some kind of "stream" of grid for this level f zoom ?

Like this: http://openlayers.org/en/latest/examples/canvas-tiles.html

1 Answer 1

2

Use create grid tool to create a grid.

Note that the default for this tool is to create a temporary layer, which will be deleted when you close the project. Be sure to choose an actual file location if you want to use the grid again later.

Label the grid with the desired information. See the "Label Properties" section of the QGIS manual for documentation on how to display labels.

If you want to display the x, y and z coordinates of the the centroid of each grid (assuming you created a polygon grid), use the expression builder with this expression:

concat(x( centroid(  $geometry )), ', ' ,y( centroid(  $geometry )) , ', ' , z( centroid(  $geometry )))

which will display as x, y, z (with actual coordinate values instead of the letters)

If you want to display other information, see the "Expression String Builder" section of the QGIS manual.

1
  • Thank you very much ! That was exactly what I needed for lower zoom (but I did not mention that...), I update my question.
    – Djabx
    Commented Nov 6, 2018 at 9:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.