The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

336247 (1) [Avatar] Offline
#1
ogr2ogr -f "KML" /gisdata/biketrip.kml 
PG:"host=localhost user=postgres port=5432  dbname=postgis_in_action password=mypassword" -dsco NameField=time 
-select "SELECT track_seg_point_id, ele, time"
-where "time BETWEEN '2009-07-18 04:33-04' AND '2009-07-18 04:34-04'" staging.aus_biketrip_narangba


I had to remove "SELECT" (not "-select") in order to make this work, otherwise it complains that "Field 'SELECT' not found in source layer."
regina.leo (265) [Avatar] Offline
#2
Thanks. We'll note in the errata