diff --git a/mapwcs.c b/mapwcs.c index 1395468bbb..3f2ac59f32 100644 --- a/mapwcs.c +++ b/mapwcs.c @@ -1627,15 +1627,6 @@ this request. Check wcs/ows_enable_request settings.", "msWCSGetCoverage()", par } } - /* If the layer has no projection set, set it to the map's projection (#4079) */ - if(lp->projection.numargs <=0) { - char *map_original_srs = msGetProjectionString(&(map->projection)); - if (msLoadProjectionString(&(lp->projection), map_original_srs) != 0) { - msSetError( MS_WCSERR, "Error when setting map projection to a layer with no projection", "msWCSGetCoverage()" ); - return msWCSException(map, NULL, NULL, params->version); - } - } - /* we need the coverage metadata, since things like numbands may not be available otherwise */ status = msWCSGetCoverageMetadata(lp, &cm); if(status != MS_SUCCESS) return MS_FAILURE;