Jump to content

 
Photo

ArcGIS - Output feature naming

- - - - -

  • Please log in to reply
3 replies to this topic

#1
spesseh

spesseh

    Key Contributor

  • Validated Member
  • PipPipPip
  • 62 posts
  • Norway

Hi,

I frequently use the batch feature in arc-toolbox to process my 60 annual datasets.
When executing a geoprocess i want to keep the filename structure.
To do this i manually have to enter the filenames manually in the output filename field.
It would have been very easy if i could have entered a start digit, increase per file, and a end number.
Then the naming generator would have started at my first year. 1946, and increased by one until 2005.

Is there anyway to do this in ArcGIS?

Thanks.
Andreas

Visit my Blog: http://www.gisintersect.com

#2
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,304 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

Is using Python an option? You have full access to the ArcToolbox tools, and you can easily create loops etc. One can even create a rough model and export to Python - I haven't tried that and looked at the code though.
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#3
Hans van der Maarel

Hans van der Maarel

    CartoTalk Editor-in-Chief

  • Admin
  • PipPipPipPipPipPipPip
  • 3,869 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Cartography, GIS, history, popular science, music.
  • Netherlands

Could you explain a bit more how the source data is structured and how you'd like the output data to be structured? Hate to be the token fanboy, but this sounds like something FME (with dynamic feature type fanout) can easily do.

E.g. if your input data is structured like this:
input_2006.shp
input_2007.shp
input_2008.shp
input_2009.shp
(but for 60 years instead of 4)

and you'd like your output to be like this:
output_2006.shp
output_2007.shp
output_2008.shp
output_2009.shp

you can simply set up a single FME Workbench that does the geoprocessing for you, have it work through all input files at once and neatly sort the output to the correct files in the end.
Hans van der Maarel - Cartotalk Editor
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics

#4
spesseh

spesseh

    Key Contributor

  • Validated Member
  • PipPipPip
  • 62 posts
  • Norway

Could you explain a bit more how the source data is structured and how you'd like the output data to be structured? Hate to be the token fanboy, but this sounds like something FME (with dynamic feature type fanout) can easily do.

E.g. if your input data is structured like this:
input_2006.shp
input_2007.shp
input_2008.shp
input_2009.shp
(but for 60 years instead of 4)

and you'd like your output to be like this:
output_2006.shp
output_2007.shp
output_2008.shp
output_2009.shp

you can simply set up a single FME Workbench that does the geoprocessing for you, have it work through all input files at once and neatly sort the output to the correct files in the end.


Thanks, i will try that.
I have access to FME through my university.
Andreas

Visit my Blog: http://www.gisintersect.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->