Exporting a Feature Class with a join to KML

2480
2
09-17-2015 05:42 AM
Highlighted
New Contributor II

I am looking to export a feature class to a KML.  This FC has an active join on it from a table that I have uploaded into my MXD.  For particular reasons, it is not pertinent to make this join permanent.  I tried both exporting map to KML and Layer to KML and when export this FC does not come through with the joined data.  In fact all of the fields that I turned off (which is about 30) are all showing up instead.

Is it not possible to get this joined data to show up in an exported KML at all, or is there a different process without making the join permanent that will work for this?

Thank you

Tracy

Reply
0 Kudos
2 Replies
Highlighted
MVP Esteemed Contributor

I suspect not, if you can confirm that the only way to keep the attributes is to make the join permanent.  This could be done in code in an in_memory layer, then just dump the in_memory featureclass once the kml is created.  Or just use Delete to get rid of the file with the permanent join.  No one will be the wiser that a temporary file with a permanent join was used in the production of the final product.

Highlighted
New Contributor II

Thank you!  I figured as much, but just wanted to confirm it.

Reply
0 Kudos