Skip to content

Commit

Permalink
Update the category to TOPOGRAPHIC_MAPS
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentao-Kuang committed Nov 25, 2024
1 parent 9a06837 commit 5e48705
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/stac-setup/category.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const dataCategories = {
RURAL_AERIAL_PHOTOS: 'rural-aerial-photos',
SATELLITE_IMAGERY: 'satellite-imagery',
URBAN_AERIAL_PHOTOS: 'urban-aerial-photos',
RASTER_TOPO_MAPS: 'raster-topo-maps',
TOPOGRAPHIC_MAPS: 'topographic-maps',
DEM: 'dem',
DSM: 'dsm',
};
2 changes: 1 addition & 1 deletion src/commands/stac-setup/stac.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function slugFromMetadata(metadata: SlugMetadata): string {
) {
return `${slug}_${metadata.gsd}m`;
}
if ([dataCategories.DEM, dataCategories.DSM, dataCategories.RASTER_TOPO_MAPS].includes(metadata.geospatialCategory)) {
if ([dataCategories.DEM, dataCategories.DSM, dataCategories.TOPOGRAPHIC_MAPS].includes(metadata.geospatialCategory)) {
return slug;
}
if (metadata.geospatialCategory === dataCategories.SCANNED_AERIAL_PHOTOS) {
Expand Down

0 comments on commit 5e48705

Please sign in to comment.