Skip to content

Commit e11deb5

Browse files
committed
Merge branch 'master' of github.com:DOI-USGS/gems-tools-pro
2 parents fd922e6 + c282dc7 commit e11deb5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Scripts/GeMS_ProjectCrossSectionData.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def locateEventTable(
218218

219219
if not desc.hasZ:
220220
addMsgAndPrint(" adding Z values")
221-
arcpy.AddSurfaceInformation_3d(pts, dem, zType, "LINEAR")
221+
arcpy.da.AddSurfaceInformation(pts, dem, zType, "LINEAR")
222222

223223
## working around bug in LocateFeaturesAlongRoutes
224224
# add special field for duplicate detection
@@ -303,9 +303,9 @@ def locateEventTable(
303303
arcpy.env.overwriteOutput = True
304304

305305
try:
306-
arcpy.CheckOutExtension("3D")
306+
arcpy.CheckOutExtension("Spatial")
307307
except:
308-
addMsgAndPrint("\nCannot check out 3D-analyst extension.")
308+
addMsgAndPrint("\nCannot check out Spatial Analyst extension.")
309309
sys.exit()
310310

311311
## Checking section line
@@ -367,7 +367,7 @@ def locateEventTable(
367367
# Add Z values
368368
addMsgAndPrint(" getting elevation values for " + shortName(tempXsLine))
369369
Zline = arcpy.CreateScratchName("xx", outFdsTag + "_Z", "FeatureClass", scratch)
370-
arcpy.InterpolateShape_3d(dem, tempXsLine, Zline)
370+
arcpy.da.InterpolateShape(dem, tempXsLine, Zline)
371371
# Add M values
372372
addMsgAndPrint(" measuring " + shortName(Zline))
373373
ZMline = arcpy.CreateScratchName("xx", outFdsTag + "_ZM", "FeatureClass", scratch)
@@ -679,7 +679,7 @@ def locateEventTable(
679679
testAndDelete(f)
680680
del inRows, outRows
681681

682-
arcpy.CheckInExtension("3D")
682+
arcpy.CheckInExtension("Spatial")
683683
if not saveIntermediate:
684684
addMsgAndPrint("\n Deleting intermediate data sets")
685685
for fc in tempXsLine, ZMline, Zline, tempBuffer:

0 commit comments

Comments
 (0)