Hello,
when converting to a KML file from a vector resource via the virtual file format one can give a NameField? option which will be used to assigne names to the geoobjects on the KML file:
ogr2ogr -f KML output.kml input.shp -dsco NameField?=RegionName?
Please add another option for placemark categories like
ogr2ogr -f KML output.kml input.shp -dsco PlacemarkCategory?=kind_of_site
This option/keyword could serve the purpose to create a KML file and assign different Icons for the placemarks based upon unique identifiers in the database column "kind_of_site".
Example:
A ecologist who wants to map sitings of three animal species could use the categoriy to show which bird appeard where (e.g. coocoo, eagle, crow) and display this information using different icons.
Please comment if you have a better idea who to get categorized items for KML based upon vector database information.
Thanks for looking at this.