Skip to content

Commit

Permalink
#2 fix WFSFeatureType requests
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Feb 17, 2018
1 parent d631254 commit 2de532b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/WFSFeatureType.R
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,10 @@ WFSFeatureType <- R6Class("WFSFeatureType",

#hasGeometry?
hasGeometry = FALSE
for(element in description$getContent()){
if(is.null(self$description)){
self$description = self$getDescription()
}
for(element in self$description){
if(element$getType() == "geometry"){
hasGeometry = TRUE
break
Expand Down Expand Up @@ -274,7 +277,7 @@ WFSFeatureType <- R6Class("WFSFeatureType",
}

#validating attributes vs. schema
for(element in description$getContent()){
for(element in self$description){
attrType <- element$getType()
if(!is.null(attrType) && attrType != "geometry"){
attrName = element$getName()
Expand Down

0 comments on commit 2de532b

Please sign in to comment.