Hot answers tagged kml
Use the "Iterate Feature Class" tool and set up your model to look similar to this: To get the name of the output KMZ to match the name of the input shapefile, you will need to make some changes to your "Layer to KML" tool. Set it up to look like this, using %Name% as the name of your desired output KML in the Output File line: Setting the name like ...
in case of csv, it probably would be easier to read it with pandas and then convert it to geopandas Dataframe import pandas as pd import geopandas as gp from shapely.geometry import Point stations = pd.read_csv('../data/stations.csv') stations['geometry'] = stations.apply(lambda z: Point(z.X, z.Y), axis=1) stations = gp.GeoDataFrame(stations)
As said in the comments above, the Global Soil Information Facilities (tutorials) website maintained, amongst others, by some of the plotKML authors and contributors gives you everything you need to produce filled polygon areas. In addition to the absolutely correct solution by @Nahm above, here's a reproducible example for future queries on the topic. ## ...
Use this simple combination: Iterate Feature Classes (set the Workspace to the folder of shapefiles) Use MakeFeatureLayer tool to create a layer from the shape file (Thanks to KHibma) Use "Layer To KML" tool
Assuming that you want to open your final KML file in QGIS (?), you would have two solutions : Styling your layer with data-defined values ; Exporting two different layers and then applying them different styles.
Only top voted, non community-wiki answers of a minimum length are eligible