Hi List.

I'm trying to convert a CSV to PostgreSQL with ogr2ogr, but the CSV is coming 
from an API:


http://api.statbank.dk/v1/data/FT/CSV?delimiter=Semicolon&HOVEDDELE=*&Tid=*

I have tried following ogr2ogr:

ogr2ogr -f PostgreSQL PG:"dbname=postgres host=localhost port=5432 
user=postgres password=xxx" 
CSV:"/vsicurl/http://api.statbank.dk/v1/data/FT/CSV?delimiter=Semicolon&HOVEDDELE=*&Tid=*";
 -nln FT -lco SEPARATOR=SEMICOLON

But are getting: Unable to open data source....
I can get it working if I download the CSV and use ogr2ogr, but would prefer to 
fetch it straight from the API to reduce the steps in my script.

Thanks in advance.

Anders
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to