Select to view content in your preferred language

returning data for layers along a line

496
2
03-04-2014 07:29 AM
ViletBounnam
New Contributor
Hi everyone,
What I have is elevation data downloaded from nationalmap.gov in an arcgrid format and interpolated surface temperature data from ncdc in a shapefile.  I have these two layers displayed in arcmap 10.2 along with a third shapefile that contains line features.  What I need to do is pick points along these line features in 1 mile increment and return the elevation and temperature data at those points.  I've been doing this manually by using the identify tool and clicking along the line.  This has definitely been a painful process and I would like to speed this process up with a script that would be able to move along the line feature and return the data to a textfile or another file format that can be stored and viewed later.  I have very limited experience with ArcGis and GIS as a whole.  I do have a background in development using .NET and some Python.  Has anyone had to do something like this that could get me started in getting a script to automate my process?

Thanks,
Tags (2)
0 Kudos
2 Replies
MathewCoyle
Honored Contributor
You can create points along your line by creating an empty point feature class and using editor > construct points and input your desired distance and selecting your empty point template. With that you can use your new point feature class to load into the Get Cell Value tool.

See the help here.
http://resources.arcgis.com/en/help/main/10.2/index.html#//01m60000000n000000
http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000m8000000

You will need to loop through each point as input as there doesn't seem to be a bulk option.
0 Kudos
ViletBounnam
New Contributor
my data is in the shapefile format.  Do I need to convert it to a raster to be able to use the Python script?
0 Kudos