Skip to content

Commit

Permalink
Update WFSFeatureType.R - fix control on description in getGeometryType
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel authored Jan 27, 2025
1 parent 09b59ee commit 54b7c37
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 @@ -231,7 +231,7 @@ WFSFeatureType <- R6Class("WFSFeatureType",
#'@description Get geometry type
#'@return object of class \link{character} representing the geometry tpe
getGeometryType = function(){
if(is.null(self$description)) self$description = self$getDescription()
if(length(self$description)==0) self$description = self$getDescription()
geomType <- NULL
if(self$hasGeometry()){
geomType <- self$description[sapply(self$description, function(x){x$isGeometry()})][[1]]$getType()
Expand Down

0 comments on commit 54b7c37

Please sign in to comment.