public void WriteLayerdef(AXLLayer layer, double mapscale, double refscale, double dpi) { m_xWriter.WriteStartElement("LAYERDEF"); bool vis = layer.Visible; if (vis) { if (layer.MinimumScale > 0.0 && layer.MinimumScale > mapscale) { vis = false; } if (layer.MaximumScale > 0.0 && layer.MaximumScale < mapscale) { vis = false; } } if (layer is AXLFeatureLayer) { if (((AXLFeatureLayer)layer).FeatureRenderer != null) { vis = false; } } m_xWriter.WriteAttributeString("id", layer.id); m_xWriter.WriteAttributeString("visible", vis.ToString()); if (layer is AXLFeatureLayer) { if (((AXLFeatureLayer)layer).Renderer != null) { m_xWriter.WriteRaw(Globals.Umlaute2Esri(((AXLFeatureLayer)layer).Renderer.modifyRenderer(mapscale, refscale, dpi))); } } m_xWriter.WriteEndElement(); // LAYERDEF }
public void WriteLayerdefInvisible(AXLLayer layer) { m_xWriter.WriteStartElement("LAYERDEF"); m_xWriter.WriteAttributeString("id", layer.id); m_xWriter.WriteAttributeString("visible", false.ToString()); m_xWriter.WriteEndElement(); // LAYERDEF }