The \pgfgetlastxy syntax does not seem to yield the right results for coordinates when some coordinate transformation is applied to the tikzpicture.
Yet everything is right for nodes, or when we draw the coordinate.
Is this the same issue as in Transform defined coordinates in TikZ ?
MWE
\documentclass[tikz, border=20pt]{standalone}
\begin{document}
\begin{tikzpicture}
[
scale=.5,
%cm={.5,0,0,.5,(0,0)}, %also changes the measurement
%xslant=2,
%transform canvas= %fixes the measurement discrepancy
%{
% scale=.5,
%},
]
\coordinate
[
label=a,
%circle, draw, %fixes the measurement discrepancy
]
(a) at (1,1);
\path (a);
\pgfgetlastxy{\lastX}{\lastY}
\node [anchor=north]at (0,0) {\verb|\lastX| for the coordinate : \lastX};
\node
[
label=b,
inner sep=0pt,
outer sep=0pt,
minimum height=0pt,
] (b) at (1,1){};
\path (b);
\pgfgetlastxy{\lastX}{\lastY}
\node [anchor=south]at (0,0) {\verb|\lastX| for the node : \lastX};
\end{tikzpicture}
\end{document}

\path (b.center);rather then\path (b);– Salim Bou Mar 06 '17 at 14:52\draw (\lastX,\lastY) -- (0,0);works better with (b) than (a) or (b.center). – John Kormylo Mar 06 '17 at 18:52