public RasterDataset(SerializationInfo info, StreamingContext context) : base(info, context) { this._extent = (Extent)info.GetValue("extent", typeof(Extent)); this._spatialReference = (SpatialReference)info.GetValue("spatialReference", typeof(SpatialReference)); this._format = info.GetString("format"); this._compressionType = info.GetString("compressionType"); this._sensorType = info.GetString("sensorType"); this._permanent = info.GetBoolean("permanent"); this._storageDef = (StorageDef)info.GetValue("storageDef", typeof(StorageDef)); }
public StorageDef(StorageDef prototype) : base(prototype) { this._compressionQuality = prototype.CompressionQuality; this._compressionType = prototype.CompressionType; this._pyramidLevel = prototype.PyramidLevel; this._pyramidResampleType = prototype.PyramidResampleType; this._tiled = prototype.Tiled; this._tileHeight = prototype.TileHeight; this._tileWidth = prototype.TileWidth; this._origin = (Point)prototype.Origin.Clone(); this._cellSizeX = prototype.CellSizeX; this._cellSizeY = prototype.CellSizeY; }
public RasterDataset(RasterDataset prototype) : base(prototype) { if (prototype.Extent != null) { this._extent = prototype.Extent.Clone() as Extent; } if (prototype.SpatialReference != null) { this._spatialReference = prototype.SpatialReference.Clone() as SpatialReference; } this._format = prototype.Format; this._compressionType = prototype.CompressionType; this._sensorType = prototype.SensorType; this._permanent = prototype.Permanent; if (prototype.StorageDef != null) { this._storageDef = prototype.StorageDef.Clone() as StorageDef; } }
// // CONSTRUCTOR // public RasterDataset(IXPathNavigable path) : base(path) { // Get Navigator XPathNavigator navigator = path.CreateNavigator(); // <Extent> XPathNavigator navigatorExtent = navigator.SelectSingleNode("Extent"); if (navigatorExtent != null) { this._extent = new Extent(navigatorExtent); } else { this._extent = new Extent(); } // <SpatialReference> XPathNavigator navigatorSpatialReference = navigator.SelectSingleNode("SpatialReference"); this._spatialReference = new SpatialReference(navigatorSpatialReference); if (navigatorSpatialReference != null) { this._spatialReference = new SpatialReference(navigatorSpatialReference); } else { this._spatialReference = new SpatialReference(); } // <Format> XPathNavigator navigatorFormat = navigator.SelectSingleNode("Format"); if (navigatorFormat != null) { this._format = navigatorFormat.Value; } // <CompressionType> XPathNavigator navigatorCompressionType = navigator.SelectSingleNode("CompressionType"); if (navigatorCompressionType != null) { this._compressionType = navigatorCompressionType.Value; } // <SensorType> XPathNavigator navigatorSensorType = navigator.SelectSingleNode("SensorType"); if (navigatorSensorType != null) { this._sensorType = navigatorSensorType.Value; } // <Permanent> XPathNavigator navigatorPermanent = navigator.SelectSingleNode("Permanent"); if (navigatorPermanent != null) { this._permanent = navigatorPermanent.ValueAsBoolean; } // <StorageDef> XPathNavigator navigatorStorageDef = navigator.SelectSingleNode("StorageDef"); if (navigatorStorageDef != null) { this._storageDef = new StorageDef(navigatorStorageDef); } else { this._storageDef = new StorageDef(); } }