Â
I am trying a simple conversion from KML to csv. I need to write all data from ExtendedData element, it may be SimpleData or Data key/value. All I want is csv file with custom data from kml.Â
Â
In a workbench I haveÂ
Â
Generic reader which reads KML ( GENERIC Reader is requirement)Â
Â
CSV Writer to write to csvÂ
Â
I have connected reader to writer directly no transformer and I expecting csv file. I yet to put CoordinateExtractor to get coords from file. So I am expexting only data to be written to csv. But when I run the workspace all I get is blank csv.Â
Â
Here is a sample KML.Â
Â
<kml xmlns="http://www.opengis.net/kml/2.2">Â
<Document>Â
 <name>My Golf Course Example</name>Â
 <Placemark>Â
   <name>Club house</name>Â
   <ExtendedData>Â
     <Data name="holeNumber">Â
       <value>1</value>Â
     </Data>Â
     <Data name="holeYardage">Â
       <value>234</value>Â
     </Data>Â
     <Data name="holePar">Â
       <value>4</value>Â
     </Data>Â
   </ExtendedData>Â
   <Point>Â
     <coordinates>-111.956,33.5043</coordinates>Â
   </Point> </Placemark>Â
</Document>Â
</kml>Â
Â
CSV should beÂ
Â
holeNumber,holeYardage,holePar,lat,lonÂ
Â
1,234,4,33.5043,-111.956Â
Â
Is there I am doing wrong here?