Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    Do you want to do this a automated way or a manual approach will work? It's quite simple to do this manually, but doing it in bulk will require some scripting. Commented Mar 12, 2015 at 10:21
  • Hi. Manually i can do but having 100+ shp files it would be a good excercise to start looking into scripting. Commented Mar 12, 2015 at 10:29
  • Your first task can be done using the Model Builder from the Processing Toolbox and using the Field Calculator algorithm to add a new field. When you save this model, you can right-click on it and run it as a batch process. I agree with @spatialthoughts that for your second task, there will be some scripting involved which you can add to your Model using the Advanced Python field calculator algorithm.
    – Joseph
    Commented Mar 12, 2015 at 10:35