Skip to content

Commit

Permalink
#18 set CRS as NA in case of EPSG:404000
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Feb 25, 2019
1 parent 1b6cc72 commit 9acf498
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/OWSUtils.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ OWSUtils <- list(
srsStr <- unlist(strsplit(srsName, ":"))
epsg <- srsStr[length(srsStr)]
srsDef <- paste("+init=epsg:", epsg, sep="")

#case of special wildcard 404000
#see https://osgeo-org.atlassian.net/browse/GEOS-8993?focusedCommentId=79737&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-79737
if(epsg=="404000") srsDef <- NA
}else{
#search if srsName is a WKT PROJ name (PROJCS or GEOGCS)
#if yes set srs with the corresponding proj4string
Expand Down

0 comments on commit 9acf498

Please sign in to comment.