![]() I = bisect.bisect_right(intvals, extent_length) Copy and paste expression code for X and Y intervals separately (see code below).Įxpression code for x intervals: get_interval(Įxpression code for y intervals: get_interval(Ĭustom function code: import group='Custom')ĭef get_interval(extent_length, feature, parent):. ![]() Copy and paste custom function code to the Function Editor tab and push Save and Load Functions button.Push Data defined Override button and click edit.Open your map item properties and expand Grids tab.To solve this problem and get pretty square grid with predefined 1, 2, 4, 8, 15, 30 intervals (see animation here) you can use the following instruction: However, when using this new feature, the interval between the grid lines can take odd values, in addition, the grid cells are rectangular, which is ugly in my opinion. QGIS 3.10 introduces two new features that allows you to dynamically change the size of the grid when scaling.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |