[postgis-users] Loading geometrys from csv

John K jtkrulick at gmail.com
Fri May 5 17:17:33 PDT 2017


I have a .csv file with a geometry, and I'm trying to load into a table.

copy public.test FROM '/home/john/test.csv' with (FORMAT csv, DELIMITER E',' )

The csv file has 4 columns and looks like:

I'm getting an error:
ERROR:  parse error - invalid geometry
HINT:  "\x" <-- parse error at position 2 within geometry
CONTEXT:  COPY test, line 2, column geom:

Is there anything obvious I'm doing wrong?

Thanks in advance,

More information about the postgis-users mailing list