diff flys-backend/contrib/shpimporter/hws.py @ 5122:5ba502e78e05 dami

Fix import of hws_* on Oracle The OCI driver needs a field named OGR_FID as the first element of a table, otherwise it gets confused and tries to add the fid twice in the insert statement leading to the "too many values" error.
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 28 Feb 2013 10:09:31 +0100
parents c5187ab9f571
children 04eb62eae722
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/hws.py	Wed Feb 27 19:44:08 2013 +0100
+++ b/flys-backend/contrib/shpimporter/hws.py	Thu Feb 28 10:09:31 2013 +0100
@@ -90,7 +90,6 @@
 
         newFeat.SetGeometry(geometry)
 
-        newFeat.SetField("ogr_fid", feat.GetFID())
         artname = self.searchField("art$")
         if self.IsFieldSet(feat, artname):
             self.handled(artname)

http://dive4elements.wald.intevation.org