Skip to content

Commit b327a0f

Browse files
committed
OGR NGW: fix typo on resource/description
1 parent dab8dbb commit b327a0f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

ogr/ogrsf_frmts/ngw/ogrngwlayer.cpp

+7-8
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ void OGRNGWLayer::Fill(const CPLJSONObject &oRootObject)
934934
FillFields(oFields, soIgnoredFieldsNames);
935935
FillMetadata(oRootObject);
936936

937-
auto osDescription = oRootObject.GetString("resource/desciption");
937+
auto osDescription = oRootObject.GetString("resource/description");
938938
SetDescription(osDescription.c_str());
939939
// SetDescription(poFeatureDefn->GetName());
940940
}
@@ -1000,14 +1000,13 @@ void OGRNGWLayer::FillFields(const CPLJSONArray &oFields,
10001000
oFieldDefn.SetAlternativeName(osFieldAlias.c_str());
10011001

10021002
// 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"));
10091008
oFieldDefn.SetComment(
1010-
oFieldCommnent.Format(CPLJSONObject::PrettyFormat::Plain));
1009+
oFieldComment.Format(CPLJSONObject::PrettyFormat::Plain));
10111010

10121011
// Domain
10131012
auto nDomainID = oField.GetInteger("lookup_table/id", -1);

0 commit comments

Comments
 (0)