Using model builder to iterate rasters and convert to polygon

756
7
06-29-2017 09:08 AM
Highlighted
New Contributor II

I am looking for some help with using model builder to iterate through raster files.  The goal is to convert to polygon and separate land cover values out of each polygon and merge into one polygon shapefile.  I am working through each step in model builder and I can not get past the iterate rasters and the convert to polygon portions of the model.  I keep getting an error and can not identify how to solve.  The model and error are below: 

model builder, error, iterate

Any help would be greatly appreciated. I do not have much experience with model builder or programming.  Trying to fumble my way through by breaking down the individual parts of what I want to do.

Thanks.

Reply
0 Kudos
7 Replies
Highlighted
MVP Esteemed Contributor

do you have spaces in the source or destination paths?

Highlighted
New Contributor II

No I do not.

Reply
0 Kudos
Highlighted
MVP Esteemed Contributor

hard to tell since %Name %.shp looks from afar to have a space in it... worth a check, since that is the error

Reply
0 Kudos
Highlighted
New Contributor II

It does look like there is a space, but I verified that there is no error.

Reply
0 Kudos
Highlighted
New Contributor II

The model fails at the Raster to Polygon portion of the process, and it is immediate.  Automatically throws the syntax errors.

Reply
0 Kudos
Highlighted
MVP Esteemed Contributor

some examples on that error https://community.esri.com/message/521086

spaces or special characters like anything Unicode or on a different codepage or things like dashes, periods etc etc

Good luck

Highlighted
New Contributor II

Thanks Dan.

Reply
0 Kudos