Skip to content

Commit

Permalink
#17 control for overwriting crs
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Oct 22, 2018
1 parent c1557c2 commit ab5e1f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/WFSFeatureType.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ WFSFeatureType <- R6Class("WFSFeatureType",
#ftFeatures
if(hasGeometry){
ftFeatures <- sf::st_read(destfile, quiet = TRUE)
st_crs(ftFeatures) <- self$getDefaultCRS()
if(is.null(st_crs(ftFeatures))){
st_crs(ftFeatures) <- self$getDefaultCRS()
}
}else{
if(private$version == "1.0.0"){
membersContent <- sapply(getNodeSet(xmlObj, "//gml:featureMember"), function(x) xmlChildren(x))
Expand Down

0 comments on commit ab5e1f2

Please sign in to comment.