MapPackage.CreateCoveragePyramidWriter Methods
Creates a MapPackageCoveragePyramidWriter to write coverage data to a new table in a OGC GeoPackage.
Overload List
Name | Description | |
---|---|---|
Public method | CreateCoveragePyramidWriter(MapPackageCoverageTable table, Operator input) | Creates a MapPackageCoveragePyramidWriter to write coverage data from an Operator to a table in an OGC GeoPackage file. |
Public method | CreateCoveragePyramidWriter(MapPackageCoverageTable table, DataSet dataSet) | Creates a MapPackageCoveragePyramidWriter to write coverage data from a DataSet to a new table in an OGC GeoPackage file. |
CreateCoveragePyramidWriter(MapPackageCoverageTable table, Operator input)
Creates a MapPackageCoveragePyramidWriter to write coverage data from an Operator to a table in an OGC GeoPackage file.Syntax
public MapPackageCoveragePyramidWriter CreateCoveragePyramidWriter (
MapPackageCoverageTable table,
Operator input
)
Parameters
Return Value
Remarks
Use this method when you want to write raster data from an Operator to a GeoPackage coverage pyramid. The pyramid will be created in a new table in the OGC GeoPackage file this MapPackage is connected to.
Example
// Save data set to a GeoPackage file
static void SaveDataSetToGeoPackage(string filename, DataSet dataSet)
{
// Create new map package
var mapPackage = new MapPackage(filename);
// Create a coverage table
var coverageTable = new MapPackageCoverageTable("elevation", dataSet.Crs, dataSet.Bounds);
// Write raster coverage tiles to the GeoPackage file
var coverageWriter = mapPackage.CreateCoveragePyramidWriter(coverageTable, dataSet);
coverageWriter.Write();
}
CreateCoveragePyramidWriter(MapPackageCoverageTable table, DataSet dataSet)
Creates a MapPackageCoveragePyramidWriter to write coverage data from a DataSet to a new table in an OGC GeoPackage file.Syntax
public MapPackageCoveragePyramidWriter CreateCoveragePyramidWriter (
MapPackageCoverageTable table,
DataSet dataSet
)
Parameters
Return Value
Remarks
Use this method when you want to write raster data from a DataSet to a GeoPackage coverage pyramid. The pyramid will be created in a new table in the OGC GeoPackage file this MapPackage is connected to.
Example
// Save data set to a GeoPackage file
static void SaveDataSetToGeoPackage(string filename, DataSet dataSet)
{
// Create new map package
var mapPackage = new MapPackage(filename);
// Create a coverage table
var coverageTable = new MapPackageCoverageTable("elevation", dataSet.Crs, dataSet.Bounds);
// Write raster coverage tiles to the GeoPackage file
var coverageWriter = mapPackage.CreateCoveragePyramidWriter(coverageTable, dataSet);
coverageWriter.Write();
}
Platforms
Windows, Linux, Android