Working for an environmental agency, they ask me to edit in ArcGIS the sizes of the buffers for the same layer.

Is that possible to change it using python in the field calculator?

If yes, I seek an example of python code or if there is another way I'll take too.

  • Do you have access to the original data layer? Or just the buffer layer? – Map Man Aug 8 '17 at 14:56
  • I first created a fictional layer with some points to try on it. and add a column buffer. I do not created need buffer layer yet – Nohan Lang Aug 8 '17 at 15:01

Yes, you can change the buffer size using the arcpy's Buffer_analysis:


arcpy.Buffer_analysis(in_features, out_feature_class, buffer_distance_or_field, {line_side}, {line_end_type}, {dissolve_option}, {dissolve_field}, {method})

The third parameter of the function determines the buffer distance in the current coordinate system units.

If there are existing buffers for the in_features you will have to remove them first (out_feature_class) and re run with your new buffer distance.

  • Thank you for the information, I never used python before so I tried that : arcpy. Buffer_analysis(Field1, Buffer,1000). And got a window appearing saying "There was a failure during processing, check the Geoprocessing Results window for detail". I think the syntax is not valid. – Nohan Lang Aug 8 '17 at 15:37
  • I would recommend reading the link i posted for more information. The first parameter is not a field, but a feature/layer. – atxgis Aug 8 '17 at 16:07
  • 1
    Thank you very much, I noticed the mistake. I tried on python and it works, the size of the buffer changed for all the data. The thing is I would like to add different sizes for some data. Do you have any idea how to do that? Cheers – Nohan Lang Aug 9 '17 at 9:29
  • yea try this. resources.esri.com/help/9.3/arcgisdesktop/com/gp_toolref/… also please mark my answer as accepted so i get extra points! haha – atxgis Aug 9 '17 at 12:44

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.