ArcMap Feature Layer to KML

Link – VBA code for Google Earth KML paths

ArcObjects VBA code to take a feature layer, split it up into line segments, and then generate a valid KML file. It’s pretty basic, and you have to hard code some values, but it does the job. It will work with either lines or polygons, and it shouldn’t matter whether it’s a shapefile or a coverage. Just make sure that your layer is projected into lat/long first.

Looks like Jim’s code is now on ArcScripts.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s