Skip to content

Commit

Permalink
fix #110
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jul 12, 2023
1 parent 5daee68 commit d8e43a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/WFSFeatureType.R
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ WFSFeatureType <- R6Class("WFSFeatureType",
),
sf::st_read(destfile, quiet = TRUE)
)
if(self$hasGeometry()){
if(self$hasGeometry()) if(self$getGeometryType() %in% colnames(ftFeatures)){
if(is.na(st_crs(ftFeatures))) st_crs(ftFeatures) <- self$getFeaturesCRS(obj)
if(is.na(st_crs(ftFeatures))) st_crs(ftFeatures) <- self$getDefaultCRS()
}
Expand Down

0 comments on commit d8e43a0

Please sign in to comment.