Exporting a Feature Class with a join to KML

2791
2
09-17-2015 05:42 AM
TracyDeGrazia
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

0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

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.

TracyDeGrazia
New Contributor II

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

0 Kudos