private DEMDataSet GetLitto3D_1Metre(string datasetPath, bool firstRun)
        {
            var dataSetLitto3D = new DEMDataSet()
            {
                Name             = "Litto3D_PortCros",
                Description      = "Litto3D_PortCros",
                PublicUrl        = null,
                DataSource       = new LocalFileSystem(datasetPath),
                FileFormat       = new DEMFileDefinition("ASCIIGrid", DEMFileType.ASCIIGrid, ".asc", DEMFileRegistrationMode.Cell),
                ResolutionMeters = 1,
                SRID             = Reprojection.SRID_PROJECTED_LAMBERT_93,
                Attribution      = new Attribution("Dataset", "Litto3D", "www.shom.fr", "Licence ouverte Etalab"),
                NoDataValue      = -99999
            };

            _rasterService.GenerateDirectoryMetadata(dataSetLitto3D, force: firstRun);
            return(dataSetLitto3D);
        }
Exemple #2
0
        public DEMDataSet GetUSGSNED(string datasetPath, bool firstRun)
        {
            var dst = new DEMDataSet()
            {
                Name             = "USGS NED",
                Description      = "USGS NED",
                PublicUrl        = null,
                DataSource       = new LocalFileSystem(datasetPath),
                FileFormat       = new DEMFileDefinition("GeoTiff", DEMFileType.GEOTIFF, ".tif", DEMFileRegistrationMode.Cell),
                ResolutionMeters = 1,
                SRID             = Reprojection.SRID_NAD83,
                Attribution      = new Attribution("NED", "USGS NED", "https://www.sciencebase.gov/catalog/item/581d268ee4b08da350d5c59d", "USGS NED"),
                NoDataValue      = -99999
            };

            if (firstRun)
            {
                _rasterService.GenerateDirectoryMetadata(dst, force: firstRun);
            }
            return(dst);
        }