@@ -934,7 +934,7 @@ void OGRNGWLayer::Fill(const CPLJSONObject &oRootObject)
934
934
FillFields (oFields, soIgnoredFieldsNames);
935
935
FillMetadata (oRootObject);
936
936
937
- auto osDescription = oRootObject.GetString (" resource/desciption " );
937
+ auto osDescription = oRootObject.GetString (" resource/description " );
938
938
SetDescription (osDescription.c_str ());
939
939
// SetDescription(poFeatureDefn->GetName());
940
940
}
@@ -1000,14 +1000,13 @@ void OGRNGWLayer::FillFields(const CPLJSONArray &oFields,
1000
1000
oFieldDefn.SetAlternativeName (osFieldAlias.c_str ());
1001
1001
1002
1002
// Add additional parameters to comment as JSON string
1003
- CPLJSONObject oFieldCommnent;
1004
- oFieldCommnent.Add (" id" , oField.GetLong (" id" ));
1005
- oFieldCommnent.Add (" label_field" , oField.GetBool (" label_field" ));
1006
- oFieldCommnent.Add (" grid_visibility" ,
1007
- oField.GetBool (" grid_visibility" ));
1008
- oFieldCommnent.Add (" text_search" , oField.GetBool (" text_search" ));
1003
+ CPLJSONObject oFieldComment;
1004
+ oFieldComment.Add (" id" , oField.GetLong (" id" ));
1005
+ oFieldComment.Add (" label_field" , oField.GetBool (" label_field" ));
1006
+ oFieldComment.Add (" grid_visibility" , oField.GetBool (" grid_visibility" ));
1007
+ oFieldComment.Add (" text_search" , oField.GetBool (" text_search" ));
1009
1008
oFieldDefn.SetComment (
1010
- oFieldCommnent .Format (CPLJSONObject::PrettyFormat::Plain));
1009
+ oFieldComment .Format (CPLJSONObject::PrettyFormat::Plain));
1011
1010
1012
1011
// Domain
1013
1012
auto nDomainID = oField.GetInteger (" lookup_table/id" , -1 );
0 commit comments