I have a pretty simple PathGeometry:
M567764.539,5956314.087L567815.077,5956179.775L567821.625,5956182.314L567773.425,5956311.248L567858.513,5956349.923L567950.858,5956392.466L567949.039,5956399.843L567942.252,5956396.685L567873.018,5956364.467L567799.816,5956330.421L567771.226,5956317.186L567764.539,5956314.087
Now, when I request the PathGeometry.Bounds attribute for this data, I get the following estimates:
567764.5625,5956180 567950.875,5956400
Expected Grades:
567764.539,5956179.775 567950.858,5956399.843
My main problem: borders are less than geometry, so parts of the geometry can be outside the borders.
I create a PathGeometry and show the borders as follows:
PathGeometry geo = PathGeometry.CreateFromGeometry(Geometry.Parse("M567764.539,5956314.087L567815.077,5956179.775L567821.625,5956182.314L567773.425,5956311.248L567858.513,5956349.923L567950.858,5956392.466L567949.039,5956399.843L567942.252,5956396.685L567873.018,5956364.467L567799.816,5956330.421L567771.226,5956317.186L567764.539,5956314.087")); System.Diagnostics.Trace.WriteLine(geo.Bounds);
What am I doing wrong?
And, more importantly, how do I get the correct bounds for PathGeometry?