-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utils.raster_to_polygons failing with ExecuteError #47
Comments
I thought #45 took care of this? |
No, this problem still exists and is triggered by 11 tests now that I got Fiona working. In addition to the 6 above:
|
@HEdingfield can you take a crack at fixing the function? can you get that arcpy function to work outside of the tool? |
@HEdingfield try forcing the function to use the spatial extension, i.e., @update_status() # layer
def raster_to_polygons(zonal_raster, filename, newfield=None):
""" ... """
with OverwriteState(True), Extension("spatial"):
results = arcpy.conversion.RasterToPolygon(
in_raster=zonal_raster,
out_polygon_features=filename,
simplify="SIMPLIFY",
raster_field="Value",
)
[yada yada] |
And before you get too far down the rabbit hole, clone in to a fresh, normal directory away from pycharm and try the tests:
|
This error currently causes 6 tests to fail:
Traceback:
The text was updated successfully, but these errors were encountered: