From 52e00ce7551d5b09ba75b38c5561cedf7c9be23e Mon Sep 17 00:00:00 2001 From: Stephan Meissl Date: Tue, 28 Aug 2012 17:53:08 +0200 Subject: [PATCH] Correcting previous merge (#4079). --- mapwcs.c | 9 --------- 1 file changed, 9 deletions(-) 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;