Select to view content in your preferred language

IGeoprocessor - Sort

878
1
02-12-2013 03:33 AM
KonradLorch
Deactivated User
Hi,
I desperately try to implement the "Sort" Geoprocessor.
Everything seems to be ok, except of the value "sort_field" where I want to implement a descent sort.

What's the syntax in VB.NET to add the DESCENDING command to the sort field?
"ELEVATION_""DESCENDING" is not working.

Thanks a lot!
Corko

GP2 = New Geoprocessor
Dim Sort As ESRI.ArcGIS.DataManagementTools.Sort
Sort = New ESRI.ArcGIS.DataManagementTools.Sort
Sort.in_dataset = "EHED_OBSP_RAW"
Sort.out_dataset = "EHED_OBSP_RAW_500"
Sort.sort_field = "ELEVATION_"
GP2.Execute(Sort, Nothing)
0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor
When working with geoprocessing tool inputs, I find it helpful to run the tool in ArcMap using the parameters that I want to set and reviewing the results to see how they actually are used in the tool. Here, I ran the Sort tool on a dataset using the field POP2000 and Descending.
[ATTACH=CONFIG]21708[/ATTACH]

So for your case, you'll want to use "ELEVATION_ DESCENDING"
0 Kudos