New answers tagged update
At the moment your code looks like it would produce errors. I think you should change it from: fcs = arcpy.arcpy.ListFeatureClasses("*_Value", "POLYGON") for fc in fcs: select = arcpy.SelectLayerByLocation_management("fieldname_layer", "INTERSECT", short) result = int(arcpy.GetCount_management(select).getOutput(0)) print ...
I finally managed to resolve my problem. My solution was to load data into temporary spatial table on PostGIS server, delete all records from table and then insert all records from temporary table to database. DELETE FROM public.target_table; INSERT INTO public.target_table SELECT * FROM public.source_temporary_table; All you need is a table with ...
Would you be able to try loading your layers directly into QGIS from PostGIS? See http://docs.qgis.org/2.2/en/docs/user_manual/working_with_vector/supported_data.html#postgis-layers
Top 50 recent answers are included