Select to view content in your preferred language

RegionGroup fails due to inaccessible VAT file

490
1
12-14-2011 07:52 PM
MaartenHofman1
Emerging Contributor
Hi,
what are possible reasons for this region group failure?
try:
        arcpy.CheckOutExtension("Spatial")
        outDispBuffRG = RegionGroup(DispBuffBinary, "EIGHT", "WITHIN", "ADD_LINK")
        outDispBuffRG.save(DispBuffRG)
except:
        print arcpy.GetMessages()


error message:
>>> Executing: RegionGroup C:/GIS/LCI/Distributietest/RSP/s1\dpb_rsp_s1 C:\GIS\LCI\Distributietest\RSP\s1\RegionG_dpb_1 EIGHT WITHIN ADD_LINK #
Start Time: Wed Dec 14 23:19:59 2011
ERROR 010159: Unable to open VAT file of C:\GIS\LCI\Distributietest\RSP\s1\RegionG_dpb_1\RegionG_dpb_1.
ERROR 010067: Error in executing grid expression.
Failed to execute (RegionGroup).
Failed at Wed Dec 14 23:20:00 2011 (Elapsed Time: 1,00 seconds)

Why does it want to open the VAT of a raster that doesn't exist yet? To write data?

An earlier call of RegionGroup in the same script (but with different datasets) works just fine, even though the syntax is the same...

Any thoughts?

(I am adapting a script which was originally written for a ArcGIS 9.3 tool.)
Tags (2)
0 Kudos
1 Reply
MaartenHofman1
Emerging Contributor
The only way I got it to work is to exclude the LINK...
so 'NO_LINK' instead of 'ADD_LINK'... no need for VAT file anymore, I guess, so no error message?
0 Kudos