private void processRaster(XmlNode mapNode)
{
_map.CosmeticRaster.Image = null;
_map.CosmeticRaster.Visible = false;
_cosmeticRasterFileName = string.Empty;
XmlNode raster = tryGetNodeByName(mapNode.ChildNodes, "raster");
if (raster != null)
{
double x = double.Parse(raster.Attributes["min_x"].Value, CultureInfo.InvariantCulture);
double y = double.Parse(raster.Attributes["min_y"].Value, CultureInfo.InvariantCulture);
ICoordinate minP = PlanimetryEnvironment.NewCoordinate(x, y);
x = double.Parse(raster.Attributes["max_x"].Value, CultureInfo.InvariantCulture);
y = double.Parse(raster.Attributes["max_y"].Value, CultureInfo.InvariantCulture);
ICoordinate maxP = PlanimetryEnvironment.NewCoordinate(x, y);
_map.CosmeticRaster.Bounds = new BoundingRectangle(minP, maxP);
_cosmeticRasterFileName = raster.Attributes["file_name"].Value;
_map.CosmeticRaster.Visible = raster.Attributes["visible"].Value == "1";
if (raster.Attributes["interpolation"] != null)
_map.CosmeticRaster.InterpolationMode = (InterpolationMode)int.Parse(raster.Attributes["interpolation"].Value);
}
}