Skip to main content
Solved

Google Maps KML to TAB not showing user attributes in separate columns

  • August 8, 2019
  • 3 replies
  • 102 views

Forum|alt.badge.img

I have an editable KML with all its user attributes showing in a data table in Google Maps - showing as above when I click on the map objects. I want to be able to export that data back out of Google Maps to TAB or Excel (or anything!), with all these user attribute fields. However, when I export this from Google Maps and look at the Feature Types of the KML Reader in FME Inspector, there are no User Attributes, only Format Attributes. When I use the Inspector, the attributes look as below - there are no kml_schema_ attributes, only kml_data attributes with name (attribute column heading) and value, each one suffixed 1, 2, 3 etc. So when I use a simple workflow with no transformers to export this to TAB, all user attributes are concatenated into the kml_description field as shown below. I have a feeling this isn't normal...……. My original export to KML for Google Maps was from a Shapefile using QGIS export tool (I removed text from "DescriptionField"), and the data displays as I want it to in Google Maps.

I would be very grateful for any help. Thank you, Jane

 

Best answer by daveatsafe

Hi @janem,

The kml_data{} list won't be written to TAB, since it doesn't support list attributes. However, we can use an AttributeCreator to convert that list into regular attributes:

Add an entry for each element in the list you see in the Data Inspector.

Workbench doesn't know the contents of kml_data{}.name, so we will need to expose the new attributes, based on our knowledge of the source table. Please add an AttributeExposer, and expose the new attributes:

description

ID

Location

Location_id

Grid_Ref

_10_km_Sq

_1_km_Sq

Easting

Northing

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

daveatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • Best Answer
  • August 8, 2019

Hi @janem,

The kml_data{} list won't be written to TAB, since it doesn't support list attributes. However, we can use an AttributeCreator to convert that list into regular attributes:

Add an entry for each element in the list you see in the Data Inspector.

Workbench doesn't know the contents of kml_data{}.name, so we will need to expose the new attributes, based on our knowledge of the source table. Please add an AttributeExposer, and expose the new attributes:

description

ID

Location

Location_id

Grid_Ref

_10_km_Sq

_1_km_Sq

Easting

Northing

 


Forum|alt.badge.img
  • Author
  • August 9, 2019

That looks really helpful, thank you Dave. When I get access to FME again next week I shall try this out. Thanks again!


Forum|alt.badge.img
  • Author
  • August 12, 2019

I followed your advice using the AttributeCreator and AttributeExposer as above and it worked perfectly! Thanks very much - I now have MapInfo table with all my attributes.