I have an ogr2ogr (GDAL) command that I run to export points from a database to an XML file.
ogr2ogr-f GPX c:\temp\points.gpx PG:"host=localhost port=5432
dbname=SpatialPlayground schemas=public user=postgres password=password"
-sql "SELECT * FROM PointsForGpxExport"
How do I run this from a C# console application and get the resulting file (or a stream) so I can perform additional processing?
One thought is to start a new process from within the console app then grab the exported file and continue processing. Is this the best approach?