[Tex/LaTex] Define page layout in geometry similar to Koma Script with DIV 12

geometrymarginstypearea

I want to define a page layout in geometry that has similar values as that defined by KOMA script. Unfortunately the values that I provide for geometry do not end up in the design as expected.

This is the code that I use

\documentclass{scrbook}

\usepackage{layouts}

%\KOMAoptions{%
%  DIV=12,% (Size of Text Body, higher values = greater textbody)
%  % DIV=calc % (also areaset/classic/current/default/last) 
%  % -> after setting of spacing necessary!   
%  BCOR=10mm% (binding correction)
%}%
%
%\KOMAoptions{% (most options are for package typearea)
%  twoside=true, % two side layout (alternating margins, standard in books)
%  twocolumn=false, % (true)
%  %
%  headinclude=false,%
%  footinclude=false,%
%  mpinclude=false,%    
%  headsepline=true,%
%  footsepline=false,%
%}%

\usepackage{geometry}

\geometry{%
%%% Paper Groesse
   a4paper,
   portrait,
%%% Koerper Groesse
   textwidth=430pt,    % modifies \textwidth, the width of body
   textheight=610pt,   % modifies \textheight, the height of body
   %ignoreall,    % sets both ignoreheadfoot and ignoremp to true
   heightrounded, % This option rounds \textheight to n-times (n: an integer) of \baselineskip
%%% Margin
   inner=4pt,
   outer=22pt,
   twoside,      % switches on twoside mode with left and right margins swapped on verso pages.
   bindingoffset=10mm,  % removes a specified space for binding
%%% Dimensionen
   headheight=17pt,  % Alias:  head
   twoside,
}


\begin{document}
\pagenumbering{alph}
\pagestyle{empty}
 \currentpage
 \pagediagram
 \pagevalues
\end{document}

For the KOMA script values (geometry commented out) this gives me

enter image description here

but for geometry, where I try to define exactly these values especially
the margins (even, odd) end up completely different, but also the whole text area is positioned different. I do not expect to have a layout that achieves exactly the same
page content, but it should be close.

enter image description here

How do I need to modify the values for geometry to get a similar layout?
And why is it ending up so wrong with the current values?

Best Answer

You are setting to much values and geometry warns you:

Package geometry Warning: Over-specification in `h'-direction.
    `width' (430.0pt) is ignored.

Remove one of the inner/outer values and calculate the other from \oddsidemargin and bindingoffset:

\geometry{%
   a4paper,
   portrait,
   textwidth=418.25555pt,    % modifies \textwidth, the width of body
   textheight=610pt,   % modifies \textheight, the height of body
   heightrounded,
   inner=\dimexpr1in-12.5192pt-10mm\relax,
   twoside,      
   bindingoffset=10mm,  
   headheight=17pt,  % Alias:  head
   twoside,
}