[gdal-dev] python scripts - create layer problem

Martin Landa landa.martin at gmail.com
Fri Jul 11 00:07:09 PDT 2014


Hi,

2014-07-10 11:32 GMT+02:00 Even Rouault <even.rouault at mines-paris.org>:

> I would say that your Zsj layer is a non-spatial layer. Is it the case ?

no, all layers are spatial.

> If yes, then the output of the log and the content of geometry_columns are
> consistant. You may not see it directly when running ogrinfo on the PostGIS DB
> since by default only spatial layers are listed. You can however query it
> directly with GetLayerByName(), or define PG_LIST_ALL_TABLES=YES as a
> configuration option (see http://gdal.org/drv_pg_advanced.html)
> If your layer is supposed to have a geometry column, then the problem is likely
> on the read side.

On second pass, e.g. two layers are missing - 'ulice' and 'parcely'.

psql vfr -c"select distinct f_table_name from geometry_columns"
   f_table_name
------------------
 ulice
 zsj
 obce
 katastralniuzemi
 adresnimista
 stavebniobjekty
(6 rows)

It's random, usually one or two layers are missing in output DB...

Martin

-- 
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa


More information about the gdal-dev mailing list