A method for decoding a picture, the method comprising: decoding information that the picture is partitioned into more than one segment based on one or more syntax elements in a bitstream; decoding information that a spatial segmentation is uniform based on the one or more syntax elements in the bitstream; determining a segment unit size based on the one or more syntax elements or based on a predefined segment unit size; decoding a first value indicating a segment width from one or more code words in the bitstream; decoding a second value indicating a segment height from the one or more code words in the bitstream; deriving segment column widths based on a picture width in number of segment units and the first value, wherein deriving segment column widths comprises setting column width values of all segment columns in the picture except one column equal to the first value, and setting the column width value of the one remaining segment column equal to the picture width minus the sum of the width values of all segment columns except the one segment column; deriving segment row heights based on a picture height in number of segment units and the second value, wherein deriving segment row heights comprises setting row height values of all segment rows in the picture except one row equal to the second value, and setting the row height value of the one remaining segment row equal to a picture height minus the sum of the height values of all segment rows except the one segment row; deriving a spatial location for a current block based on the derived segment column widths and the derived segment row heights; and decoding the current block based on the derived spatial location. decoding information that the picture is partitioned into more than one segment based on one or more syntax elements in a bitstream; decoding information that a spatial segmentation is uniform based on the one or more syntax elements in the bitstream; determining a segment unit size based on the one or more syntax elements or based on a predefined segment unit size; decoding a first value indicating a segment width from one or more code words in the bitstream; decoding a second value indicating a segment height from the one or more code words in the bitstream; deriving segment column widths based on a picture width in number of segment units and the first value, wherein deriving segment column widths comprises setting column width values of all segment columns in the picture except one column equal to the first value, and setting the column width value of the one remaining segment column equal to the picture width minus the sum of the width values of all segment columns except the one segment column; deriving segment row heights based on a picture height in number of segment units and the second value, wherein deriving segment row heights comprises setting row height values of all segment rows in the picture except one row equal to the second value, and setting the row height value of the one remaining segment row equal to a picture height minus the sum of the height values of all segment rows except the one segment row; deriving a spatial location for a current block based on the derived segment column widths and the derived segment row heights; and decoding the current block based on the derived spatial location.