You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LVBAG Driver reads the feature type "openbareruimte" (is like Eng. "thoroughway", usually a "street" with a streetname). The main field is "naam" (name). In some cases this FT contains an abbreviated name, known as "verkorte openbare ruimte naam".
We expect this field to show in the resulting features .e.g. the PostGIS table "openbareruimte".
Read a BAG source XML into any format, e.g. PostGIS.
Observe that the field "verkorteNaam" is never present in "Openbareruimte" table
Operating system
Any.
GDAL version and provenance
Latest Docker image as on aug 22, 2021.
Proposed Solution
This issue and its solution is very similar to issue #4161 and its PR #4168.
i.e. a new Field definition (String) needs to be added in ogrlvbaglayer.cpp from L289 on, plus tests.
Only complicating factor is the nested definition, so I expect that additional parsing is required in the function ogrlvbaglayer.StartElementCbk.
...But it looks like OGR parses recursively until a matching element-name is found (?).
So hopefully it is just enough to define the new field as "verkorteNaam" by just adding:
OGRFieldDefn oField3("verkorteNaam", OFTString);
The text was updated successfully, but these errors were encountered:
I can make the PR. Main question remaining: quoting from above:
...But it looks like OGR parses recursively until a matching element-name is found (?).
So hopefully it is just enough to define the new field as "verkorteNaam" by just adding:
OGRFieldDefn oField3("verkorteNaam", OFTString);
Would that be enough to extract from this element field XML-construct?
Expected behavior and actual behavior.
@yorickdewid
The LVBAG Driver reads the feature type "openbareruimte" (is like Eng. "thoroughway", usually a "street" with a streetname). The main field is "naam" (name). In some cases this FT contains an abbreviated name, known as "verkorte openbare ruimte naam".
We expect this field to show in the resulting features .e.g. the PostGIS table "openbareruimte".
Below is an example feature XML .
As can be seen the abbreviated name is even nested, e.g.
Steps to reproduce the problem.
Operating system
Any.
GDAL version and provenance
Latest Docker image as on aug 22, 2021.
Proposed Solution
This issue and its solution is very similar to issue #4161 and its PR #4168.
i.e. a new Field definition (String) needs to be added in ogrlvbaglayer.cpp from L289 on, plus tests.
Only complicating factor is the nested definition, so I expect that additional parsing is required in the function
ogrlvbaglayer.StartElementCbk.
...But it looks like OGR parses recursively until a matching element-name is found (?).
So hopefully it is just enough to define the new field as "verkorteNaam" by just adding:
The text was updated successfully, but these errors were encountered: