May 2017
Beginner to intermediate
328 pages
7h 17m
English
You may remember that the last time we exported KML, our focus was to only get the data out of the database so we can check whether our import had actually been successful. This time we'll issue a similar command, but with one important change - we'll specify the name field and the description field for the output KML.
ogr2ogr -f "KML" earthquakes_from_postgis.kml PG:"host=localhost port=5434 user=postgres dbname=mastering_postgis" -t_srs EPSG:4326 -dsco NameField=id -dsco DescriptionField=place data_import.earthquakes_subset_with_geom
If you opened the exported KML, this time you will have noticed that the object icons have their names ...
Read now
Unlock full access