Skip to content

Commit

Permalink
make CRS parsing fail silently #115
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jan 23, 2024
1 parent b9ae189 commit 3d10fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/WCSCoverageSummary.R
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ WCSCoverageSummary <- R6Class("WCSCoverageSummary",
self$ERROR("No 'srsName' envelope attribute for CRS interpretation")
return(NULL)
}
srsNameXML <- try(XML::xmlParse(srsName))
srsNameXML <- try(XML::xmlParse(srsName), silent = TRUE)
if(is(srsNameXML,"try-error")){
self$ERROR(sprintf("Error during CRS interpretation for srsName = '%s'", srsName))
return(NULL)
Expand Down

0 comments on commit 3d10fe6

Please sign in to comment.