Select to view content in your preferred language

Create a model (modelbuilder) to convert several shapefiles (polygons) to rasters

2796
13
Jump to solution
06-14-2012 11:24 AM
DANIELEVILA_NOVA
Occasional Contributor
Hello all,

I have just started working with modelbuilder so hopefully this is a simple question with a simple answer 🙂

I have a bazillion number of shapefiles that need to be converted to rasters... of course, doing one by one is taking me forever, so why not using the modelbuilder? My question is, all the shapefiles are in a feature dataset inside a gdb (they all have the same table, just different data in it), but on the modelbuilder editing window, it seems to me that I can only put one of the shapefiles, not all of them (when I do the connection on the function 'polygon to raster' and click on this to edit, it only let me to choose one of the shapefiles)... any hint on how to do this?

Thanks!!

Daniele
13 Replies
DANIELEVILA_NOVA
Occasional Contributor
How many features are there in the 10th feature class?, viz., in F:\PC-LAB_abr12\Shapefiles\SAD_69_Polyconic\LitoralBrasil_PCS.gdb\Litoral_Brasil_1\Lut_ana_1 Risk_rank

you can use GetCount or open the attribute table.

What happens if you run PolygonToRaster GP tool using this feature class ?


Hi Steve,

Lut_ana_1 has only two features on its table. I just converted from polygon to raster this shapefile individually with no problems... I even ran a repair geometry to check all shapefiles, then ran this model again, and one more time it stopped working when it got to this shapefile
0 Kudos
ShitijMehta
Esri Regular Contributor
Please can you share your feature class for us to suggest a correct solution?
0 Kudos
DANIELEVILA_NOVA
Occasional Contributor
Hi, I actually found and error (dang it!) on this specific shapefile (misspelling one column)... I corrected it and the model ran out great!

Thanks for everybody's help and sorry that the error was my fault! 😕
ShitijMehta
Esri Regular Contributor
I am glad it worked for you.

Enjoy building models!
0 Kudos