Consume GP service on ArcMap 10.0; how 2 send ArcMap extent ?

716
1
04-11-2014 02:00 PM
Ravichandran_M_Kaushika
Occasional Contributor
dear Readers,

I was looking for examples to do the following:

1. using arcmap 10.0 using geoprocessor function call a webservice in a GP server:

[h=2]DataExtract (GPServer) Service Description: Data extraction  tool

Tasks:
Execution Type:  esriExecutionTypeAsynchronous

Result Map Server Name: 

MaximumRecords: 1000




The Data Extract contains an input param of current extent:
Parameters:

    Parameter: aoi

      Data Type: GPFeatureRecordSetLayer
      Display Name aoi 
      Description: aoi
      Direction: esriGPParameterDirectionInput 
      Default Value:
        Geometry Type: esriGeometryPolygon
        HasZ: false 
        HasM: false
        Spatial Reference: 4326  (4326) 

        Fields: 

        • FID ( type: esriFieldTypeOID , alias: FID )

        • Id ( type: esriFieldTypeInteger , alias: Id )

        • Shape_Length ( type: esriFieldTypeDouble , alias: Shape_Length )

        • Shape_Area ( type: esriFieldTypeDouble , alias: Shape_Area ) 

        Features: None.


      Parameter  Type: esriGPParameterTypeRequired
      Category:

      How do I get my current extent and send them as a feature recordset layer to this service

      the other input to this service is a table name as present in the feature service in the same arc gis server.

      sample code in .net for arcobjects arcmap 10.0 would be great; the gp service is on a 10.21 arc gis server.

      regards
      ravi.
0 Kudos
1 Reply
AhmedEl-Sisi
Occasional Contributor III
Hi ravi,

Check this sample for using published geoprocessing services in Arcobjects:

http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000001qn000000

Regards,
0 Kudos