[gdal-dev] RuntimeError no COPY in progress
Even Rouault
even.rouault at spatialys.com
Thu Oct 2 12:18:20 PDT 2014
Le jeudi 02 octobre 2014 21:15:13, Ari Jolma a écrit :
> On 02.10.2014 21:57, Even Rouault wrote:
> > Le jeudi 02 octobre 2014 20:50:33, Ari Jolma a écrit :
> >> On 02.10.2014 20:45, Even Rouault wrote:
> >>> Le jeudi 02 octobre 2014 18:26:37, Ari Jolma a écrit :
> >>>> 2014-10-02 19:23:03 EEST ERROR: COPY from stdin failed: COPY
> >>>> terminated by new PQexec
> >
> > Could you try changing your code to use another driver to output to
> > another format, like shapefile, GML, etc... and then try ogr2ogr -f
> > postgresql ?
>
> No problems when doing it like that. I used shapefile as the
> intermediate format.
Hum, definitely weird. I've an idea to debug that. If you use GDAL trunk, you
could enable the OGR C API spy mechanism, as the Perl bindings used the C API.
That will produce a OGR Python script (sorry for Python ;-)) that should have
the same side effects regarding the OGR PostgreSQL driver as your original Perl
script.
See http://www.gdal.org/ograpispy_8h.html
>
> Ari
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list