<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NearAnalysis Geoprocessing Service&amp;nbsp; - arcgis javascript api in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/nearanalysis-geoprocessing-service-nbsp-arcgis/m-p/412443#M38001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a model in model builder and published a Geoprocessing service to call that service within my arcgis javascript application. The reason for creating this Geoprocessing tool is to identify the list of 5 near features along with their distances from the input location. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The input location is a point where as near features can be point, line and polygons. when the Near feature is a line or polygon, it should query against the nearest vertex of the line or polygon rather than using the centroid of the polygon. So I have used "Generate NearTable" geoprocessing tool&amp;nbsp; and published them as a service (Please see attached png file).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The geoprocessing tool is working perfectly within ARCMap environment, not sure within arcgis javascript environment. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My only concern is the input and output datatype parameters for the geoprocessing service, I published to the server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at the Metadata for this services below, you could understand the input and output parameters required. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;InputLocation: datatype is ok, as it can accept any feature set -so there is no problem with this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NearFeatures: the problem is with the near features datatype (GPMultiValue:gpstring). I am not sure whether arcgis javascript api, will accept this datatype as an input to our feature layer within our application. Basically, feature layer can be point, line and polygon. I am planning input the near feature as featureset to the GPMultivalue datatype and I am not sure whether javascript api will accept this parameter. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any help on this would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Task: NearAnalysis
Display Name: NearAnalysis

Category: 


Execution Type: esriExecutionTypeAsynchronous

Parameters: 


Parameter: InputLocation

Data Type: GPFeatureRecordSetLayer
Display Name: InputLocation
Direction: esriGPParameterDirectionInput
Default Value: 

Parameter Type: esriGPParameterTypeRequired
Category: 


Parameter: NearFeatures

Data Type: GPMultiValue:GPString
Display Name: NearFeatures
Direction: esriGPParameterDirectionInput
Default Value: null
Parameter Type: esriGPParameterTypeRequired
Category: 


Parameter: FoundNear5Features_shp

Data Type: GPFeatureRecordSetLayer
Display Name: FoundNear5Features.shp
Direction: esriGPParameterDirectionOutput
Default Value: 

Geometry Type: esriGeometryPoint
Spatial Reference: 27700
Fields: 
FID (Type: esriFieldTypeOID, Alias: FID) 
Shape (Type: esriFieldTypeGeometry, Alias: Shape) 
IN_FID (Type: esriFieldTypeInteger, Alias: IN_FID) 
NEAR_FID (Type: esriFieldTypeInteger, Alias: NEAR_FID) 
NEAR_DIST (Type: esriFieldTypeDouble, Alias: NEAR_DIST) 
NEAR_X (Type: esriFieldTypeDouble, Alias: NEAR_X) 
NEAR_Y (Type: esriFieldTypeDouble, Alias: NEAR_Y) 
Parameter Type: esriGPParameterTypeRequired
Category: 



Supported Operations:&amp;nbsp;&amp;nbsp; Submit Job 

Supported Interfaces:&amp;nbsp;&amp;nbsp; REST 

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 12:31:21 GMT</pubDate>
    <dc:creator>GaneshSolai_Sambandam</dc:creator>
    <dc:date>2014-02-26T12:31:21Z</dc:date>
    <item>
      <title>NearAnalysis Geoprocessing Service  - arcgis javascript api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/nearanalysis-geoprocessing-service-nbsp-arcgis/m-p/412443#M38001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a model in model builder and published a Geoprocessing service to call that service within my arcgis javascript application. The reason for creating this Geoprocessing tool is to identify the list of 5 near features along with their distances from the input location. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The input location is a point where as near features can be point, line and polygons. when the Near feature is a line or polygon, it should query against the nearest vertex of the line or polygon rather than using the centroid of the polygon. So I have used "Generate NearTable" geoprocessing tool&amp;nbsp; and published them as a service (Please see attached png file).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The geoprocessing tool is working perfectly within ARCMap environment, not sure within arcgis javascript environment. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My only concern is the input and output datatype parameters for the geoprocessing service, I published to the server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at the Metadata for this services below, you could understand the input and output parameters required. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;InputLocation: datatype is ok, as it can accept any feature set -so there is no problem with this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NearFeatures: the problem is with the near features datatype (GPMultiValue:gpstring). I am not sure whether arcgis javascript api, will accept this datatype as an input to our feature layer within our application. Basically, feature layer can be point, line and polygon. I am planning input the near feature as featureset to the GPMultivalue datatype and I am not sure whether javascript api will accept this parameter. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any help on this would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Task: NearAnalysis
Display Name: NearAnalysis

Category: 


Execution Type: esriExecutionTypeAsynchronous

Parameters: 


Parameter: InputLocation

Data Type: GPFeatureRecordSetLayer
Display Name: InputLocation
Direction: esriGPParameterDirectionInput
Default Value: 

Parameter Type: esriGPParameterTypeRequired
Category: 


Parameter: NearFeatures

Data Type: GPMultiValue:GPString
Display Name: NearFeatures
Direction: esriGPParameterDirectionInput
Default Value: null
Parameter Type: esriGPParameterTypeRequired
Category: 


Parameter: FoundNear5Features_shp

Data Type: GPFeatureRecordSetLayer
Display Name: FoundNear5Features.shp
Direction: esriGPParameterDirectionOutput
Default Value: 

Geometry Type: esriGeometryPoint
Spatial Reference: 27700
Fields: 
FID (Type: esriFieldTypeOID, Alias: FID) 
Shape (Type: esriFieldTypeGeometry, Alias: Shape) 
IN_FID (Type: esriFieldTypeInteger, Alias: IN_FID) 
NEAR_FID (Type: esriFieldTypeInteger, Alias: NEAR_FID) 
NEAR_DIST (Type: esriFieldTypeDouble, Alias: NEAR_DIST) 
NEAR_X (Type: esriFieldTypeDouble, Alias: NEAR_X) 
NEAR_Y (Type: esriFieldTypeDouble, Alias: NEAR_Y) 
Parameter Type: esriGPParameterTypeRequired
Category: 



Supported Operations:&amp;nbsp;&amp;nbsp; Submit Job 

Supported Interfaces:&amp;nbsp;&amp;nbsp; REST 

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 12:31:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/nearanalysis-geoprocessing-service-nbsp-arcgis/m-p/412443#M38001</guid>
      <dc:creator>GaneshSolai_Sambandam</dc:creator>
      <dc:date>2014-02-26T12:31:21Z</dc:date>
    </item>
  </channel>
</rss>

