I have an OS mastermap GML data file. I have multiple <osgb:changeHistory> tags for one particular featureID. Which is as below:
<osgb:changeHistory>
<osgb:changeDate>1998-07-03</osgb:changeDate>
<osgb:reasonForChange>Modified</osgb:reasonForChange>
</osgb:changeHistory>
<osgb:changeHistory>
<osgb:changeDate>1998-07-03</osgb:changeDate>
<osgb:reasonForChange>Reclassified</osgb:reasonForChange>
</osgb:changeHistory>
<osgb:changeHistory>
<osgb:changeDate>2002-08-12</osgb:changeDate>
<osgb:reasonForChange>Attributes</osgb:reasonForChange>
</osgb:changeHistory>
<osgb:changeHistory>
<osgb:changeDate>2003-10-14</osgb:changeDate>
<osgb:reasonForChange>Position</osgb:reasonForChange>
</osgb:changeHistory>
I am trying to read all <osgb:changeHistory> nodes and write them in PostGIS database as below (I did it with GDAL):
Here, I want to count the number of changeDates and put it in a single cell (in PostGIS database) separated by comma and, if possible, within a bracket. Is it possible through FME?
Currently all I am getting is only the last changeDate and reasonofChange value in those respective cells.