I am creating a model in ArcGIS ModelBuilder to buffer a line. I would like the buffer distance to be based on the cell size of a raster. The cell size may change depending upon which raster the user decides to use.

Is there a way to extract the value of cell size so that it can be used to populate the buffer distance field?


A simple model can achieve this as shown below.


Note the output of the get raster property was connected to the Buffer tool using the Connect tool. Usually you would do an in-line substitution but that does not seem to work for some reason, but a manual connect does...

| improve this answer | |

In ArcMap 10.3 I've found that Buffer won't take CELLSIZE. It can be connected using the Connect tool, but then the model doesn't run.

However, using the Model Builder Calculate Value element as an intermediary works.

The Calculate Value expression can be something like %CELLSIZE%, referring to the Cellsize property obtained by Get Raster Properties. The calculated value can then be linked in to Buffer using Connect.

| improve this answer | |
  • Where did you find Calculate Value tool? I have a hard time finding it using Search pane. – mlt Dec 6 '17 at 4:34
  • Found it! Right click anywhere on empty space and look for Model Only Tools. – mlt Dec 6 '17 at 4:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.