{ "name": "FeaturesToJSON", "displayName": "Features To JSON", "description": "Converts features to Esri JSON or GeoJSON format. The fields, geometry, and spatial reference of features will be converted to their corresponding JSON representation and written to a file with a .json or .geojson extension.", "category": "", "helpUrl": "https://aplicaciones.sgv.es/arcgis/rest/directories/arcgisoutput/iaa/ExportData_GPServer/iaa_ExportData/FeaturesToJSON.htm", "executionType": "esriExecutionTypeAsynchronous", "parameters": [ { "name": "in_features", "dataType": "GPFeatureRecordSetLayer", "displayName": "Input Features", "description": "The features to convert to JSON format.", "direction": "esriGPParameterDirectionInput", "defaultValue": { "displayFieldName": "", "hasZ": true, "geometryType": "esriGeometryPolygon", "spatialReference": { "wkid": 25830, "latestWkid": 25830 }, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID" }, { "name": "Shape_Length", "type": "esriFieldTypeDouble", "alias": "Shape_Length" }, { "name": "Shape_Area", "type": "esriFieldTypeDouble", "alias": "Shape_Area" } ], "features": [], "exceededTransferLimit": false }, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "out_json_file", "dataType": "GPDataFile", "displayName": "Output JSON", "description": "The output .json or .geojson file.", "direction": "esriGPParameterDirectionOutput", "defaultValue": null, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "format_json", "dataType": "GPBoolean", "displayName": "Formatted JSON", "description": "Specifies whether the JSON will be formatted to improve readability similar to the ArcGIS REST API specification's PJSON (Pretty JSON) format.Unchecked\u2014The features will not be formatted. This is the default.Checked\u2014The features will be formatted to the PJSON specification.", "direction": "esriGPParameterDirectionInput", "defaultValue": false, "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "include_z_values", "dataType": "GPBoolean", "displayName": "Include Z Values", "description": "Specifies whether the z-values of the features will be included in the JSON.Unchecked\u2014The z-values will not be included in geometries, and the hasZ property of the JSON will not be included. This is the default.Checked\u2014The z-values will be included in geometries, and the hasZ property of the JSON will be set to true.", "direction": "esriGPParameterDirectionInput", "defaultValue": false, "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "include_m_values", "dataType": "GPBoolean", "displayName": "Include M Values", "description": "Specifies whether the m-values of the features will be included in the JSON.Unchecked\u2014The m-values will not be included in geometries, and the hasM property of the JSON will not be included. This is the default.Checked\u2014The m-values will be included in geometries, and the hasM property of the JSON will be set to true.", "direction": "esriGPParameterDirectionInput", "defaultValue": false, "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "geoJSON", "dataType": "GPBoolean", "displayName": "Output to GeoJSON", "description": "Specifies whether the output will be created in GeoJSON format.Unchecked\u2014The output will be created in Esri JSON format (.json file). This is the default.Checked\u2014The output will be created in GeoJSON format (.geojson file).", "direction": "esriGPParameterDirectionInput", "defaultValue": true, "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "outputToWGS84", "dataType": "GPBoolean", "displayName": "Project to WGS_1984", "description": "Specifies whether the input features will be projected to the geographic coordinate system WGS_1984 with a default geographic transformation. This parameter only applies when the output is GeoJSON.Checked\u2014Features will be projected to WGS_1984.Unchecked\u2014Features will not be projected to WGS_1984. The GeoJSON will contain a CRS tag that defines the coordinate system. This is the default.", "direction": "esriGPParameterDirectionInput", "defaultValue": false, "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "use_field_alias", "dataType": "GPBoolean", "displayName": "Use field aliases", "description": "Specifies whether the output file will use field aliases for feature attributes.Unchecked\u2014Output feature attributes will not use field aliases; they will use field names. This is the default.Checked\u2014Output feature attributes will use field aliases.", "direction": "esriGPParameterDirectionInput", "defaultValue": false, "parameterType": "esriGPParameterTypeOptional", "category": "" } ] }