Repetitive task: model builder or python

4251
26
Jump to solution
05-26-2017 12:36 PM
CelesteWalz
Occasional Contributor

I have many gpx files that I need to get into a mapping project.

The workflow looks like this:

1.  Open gpx file in ascii editor to fix the last elevation. Every file from this vendor has the last elevation as -10000000 which is of course incorrect.

2.  Use the 'gpx to points' tool to convert to a feature class

3.  Use the 'points to line' tool to convert to line

I've only played a bit in Model Builder, but this looks like something that could be done. Not sure how model builder works with just gpx files as input - my first tries haven't been successful (but then again, I'm kinda shooting in the dark here).  I don't know python, but I have done snippets of codes for other projects, so maybe that is the way to go?

Any suggestions, or a good place to start?

I'll be going back through the model builder help to see what I may have missed but any other input would be most appreciated.

EDIT: I managed to get this to work; I've attached a zip file of the toolbox. If anybody is interested, these files were from an app that I use to record my travels; the resulting lines went in to building this StoryMap: http://arcg.is/2sbFG27  I used the model/tool to process 50+ 'treks'.

0 Kudos
26 Replies
CelesteWalz
Occasional Contributor

The model is in the toolbox. I just can't get the workbench/flowcharty thing to open. *sigh* Thanks for getting back to me, though.

0 Kudos
ChrisDonohue__GISP
MVP Alum

Well, if you can wait till early next year, the IT folks here say we will be upgraded to 10.5.

Maybe someone with ArcGIS Desktop 10.3 or newer here on GeoNet can try opening the toolbox for you and read off the settings.

Chris Donohue, GISP

0 Kudos
CelesteWalz
Occasional Contributor

I'll probably want to use it before then, but thanks for the offer, Chris. I'll keep that in mind.  

This penguin fixes everything

In the meantime, I've enlisted my emergency penguin. 

0 Kudos
ChrisDonohue__GISP
MVP Alum

I'd start a new thread, as this one was marked closed as correctly answered, so many viewers are probably not reading it on the assumption that there are no more things to be resolved. This way the issue will get more exposure.

Besides posing your current challenge and appending the toolbox to it, I'd link back this thread to the new one so people can see the previous conversation and resolutions.

Chris Donohue, GISP

CelesteWalz
Occasional Contributor

Edit does nothing. I'm the administrator for my computer. Which permissions do I need to check? The toolbox has all the options checked under properties-->security

0 Kudos
curtvprice
MVP Esteemed Contributor

All I can guess is that you may have been editing the model on a two screen setup and it is opening up off-screen. 

CelesteWalz
Occasional Contributor

You were right! I had a good close look around the margins of my monitors and found the tiniest sliver of frame in the corner that I was able to expand and get the window out. *whew*.. Thanks!