[gdal-dev] VFK driver: RFC 54

Martin Landa landa.martin at gmail.com
Wed Mar 4 05:47:00 PST 2015


Hi,

I wonder if VFK driver needs to be updated to RFC54 (Dataset
transactions) or it's completely unrelated?

Steps to reproduce:

1) download [1]

$ unzip Export_vse.zip

2) create empty PostGIS database

$ createdb test ; psql test -c"create extension postgis"

3) Import VFK to PostGIS

$ ogr2ogr -f PostgreSQL PG:dbname=test Export_vse.vfk

ERROR 1: no COPY in progress

ERROR 1: ERROR:  current transaction is aborted, commands ignored
until end of transaction block

ERROR 1: ERROR:  current transaction is aborted, commands ignored
until end of transaction block

ERROR 1: ERROR:  current transaction is aborted, commands ignored
until end of transaction block

ERROR 1: ERROR:  current transaction is aborted, commands ignored
until end of transaction block

ERROR 1: ERROR:  current transaction is aborted, commands ignored
until end of transaction block

ERROR 1: CREATE TABLE "public"."bud" ( ogc_fid SERIAL, PRIMARY KEY
(ogc_fid), "id" VARCHAR(30), "stav_dat" NUMERIC(2,0), "datum_vzniku"
VARCHAR(25), "datum_zaniku" VARCHAR(25), "priznak_kontextu"
NUMERIC(1,0), "rizeni_id_vzniku" VARCHAR(30), "rizeni_id_zaniku"
VARCHAR(30), "typbud_kod" NUMERIC(1,0), "caobce_kod" NUMERIC(6,0),
"cislo_domovni" NUMERIC(4,0), "cena_nemovitosti" NUMERIC(14,2),
"zpvybu_kod" NUMERIC(4,0), "tel_id" VARCHAR(30), "docasna_stavba"
VARCHAR(1), "je_soucasti" VARCHAR(1), "ps_id" VARCHAR(30),
"wkb_geometry" geometry(POLYGON,1) )
ERROR:  current transaction is aborted, commands ignored until end of
transaction block

ERROR 1: Unable to write feature 1 from layer BUD.

ERROR 1: Terminating translation prematurely after failed
translation of layer BUD (use -skipfailures to skip errors)

Martin

[1] http://www.cuzk.cz/Katastr-nemovitosti/Poskytovani-udaju-z-KN/Vymenny-format-KN/Vymenny-format-NVF/exportvse.aspx

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the gdal-dev mailing list