Avoid creating duplicate projections in COG examples

This commit is contained in:
Tim Schaub
2021-09-06 16:07:38 -06:00
parent 81fdcd5a38
commit 4b340fc9bc
4 changed files with 4 additions and 22 deletions

View File

@@ -424,7 +424,7 @@ class GeoTIFFSource extends DataTile {
image.geoKeys.ProjectedCSTypeGeoKey ||
image.geoKeys.GeographicTypeGeoKey;
if (code) {
this.projection = getProjection(`EPSG:${code}`);
this.projection = getProjection('EPSG:' + code);
break;
}
}