The following tests only the simple lines,
Services can be manipulated under the rest path of ArcGIS Server, such as query, which allows you to enter JSON-formatted feature descriptions or run-to-output JSON format feature descriptions.
such as blog: http://www.cnblogs.com/mumu122GIS/p/6097687.html in GP service can enter custom features, then how to get the input standard JSON format feature description for input?
Or how do you show the results of a run (JSON format feature description) in ArcMap?
Feature descriptions in JSON format
Take the cut function of the geometry service with the server as an example, the Geometry service cut function Api,api Example link
You can see that the JSON format feature description (including input or output) is basic to the server rest path.
{"Geometrytype": "Esrigeometrypolyline", "geometries": [{"Paths": [[6805743,1843230],[6805740,1843619]]]},{] Paths ": [[[[[6802621,1843581],[6805496,1844963]]}]}
or {"Paths": [[[[6805210,1843869],[6805842,1843529],[6805259,1843173]]}
There are features to JSON and JSON to features tools in ArcMap. JSON tool Set
Try saving the JSON format feature description provided above as a. json file (for example, create a. txt file, copy and paste the JSON format feature description, save, modify the file suffix to. json)
Using the JSON to Feature tool, enter the JSON file and find an error.
Observe the JSON format feature description, in addition to information such as spatial reference, the main content is the coordinate point.
At this point, the idea is to export the imported JSON file in ArcMap, just a little more information about the spatial reference, and then in ArcMap, features to JSON exports a JSON file,
Replace the corresponding content in the JSON file with the coordinates obtained under the rest path (as shown above) in JSON format description, and then import the updated JSON file into ArcMap using JSON to features.
That is, the JSON format features under the existing rest path are described as: {"Paths": [[[[6805210,1843869],[6805842,1843529],[6805259,1843173]]}
Draw simple line features in ArcMap and export a JSON file with features to JSON, file contents: {"Displayfieldname": "", "fieldaliases": {"FID": "FID", "id": "id", " Shape_length ":" Shape_length "}," Geometrytype ":" Esrigeometrypolyline "," spatialreference ": {" Wkid ": 102100," Latestwkid ": 3857}," Fields ": [{" Name ":" FID "," type ":" Esrifieldtypeoid "," Alias ":" FID "},{" name ":" Id "," type ":" Esrifieldtypeinteger "," Alias ":" Id "},{" name ":" Shape_length "," type ":" Esrifieldtypedouble "," Alias ":" Shape_length " }], "features": [{"Attributes": {"FID": 1, "Id": 0, "Shape_length": 1939.2244949671767}, "geometry": {"Paths": [[[ 12485220.022887718,3969954.2205385119],[12487129.927600328,3969618.2806173488]]}}]}
Replace the red content with blue content.
Use the JSON to features tool to import the updated JSON file successfully.
Note: The spatial reference used in the official case here is different from the spatial reference used in ArcMap to draw simple line features, just as an example, when actually testing, the rest path gets the JSON format feature description and the features used in ArcMap are 3857, coordinate and encode.
Here is only testing the simple line, polygon features or more properties when the operation has not been tested, perhaps a more simple way, but I do not know ....
ArcGIS server,rest Path input feature JSON format description