FRAMES | NO FRAMES

 

B U S I N E S S   A N A L Y S T   10.2   R E S T   R E P O S I T O R Y   U T I L I T Y

Upload Shapefile Endpoint

Uploads a shapefile into the repository.

 

Availability: Business Analyst Server.

 

URL Example

http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/UploadShapefile/execute

Parameters

Parameter

Description

OutputItem (required)

Configuration options for storing the shapefile in the repository. This will enable viewing and working with the output result in subsequent tasks. Type esriFolderItem.

ShapefileZIP (required)

URL to a shapefile zip-archive already uploaded to ArcGIS Server virtual output directory. Type string.

UploadShapefileParameters (optional)

Shapefile parameters. Type UploadShapefileParameters.

f (optional)

Response format. Type string. Available formats: HTML, JSON, PJSON, XML.

Default: HTML.

token

Authentication token. This parameter is required if your Business Analyst Server is secured. Type string.

Returns

Variable of type boolean whose value is always true.

Remarks

The upload process consists of two steps. First, upload a zip-archive with shapefile files to the ArcGIS Server virtual output directory. Second, upload the contents of this archive to an item of Business Analyst Server repository.

Example Usage

The example below uploads a shapefile to Business Analyst Server Repository. After execution, this shapefile is available as a trade area layer of the Default Project of the Default Workspace of the repository.

 

This example requires a shapefile already uploaded to the ArcGIS Server output directory. Optionally, this shapefile can be programmatically uploaded to the ArcGIS output directory as shown in SOAP. See the SOAP UploadShapefile sample for more information.

 

Request

http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/UploadShapefile/execute?
OutputItem={
  "workspaceName":"Default Workspace",
  "projectName":"Default Project",
  "folderType":"esriFolderTradeAreas",
  "itemName":"ShapefileItem"
}&
ShapefileZIP=http://localhost/arcgisoutput/shapefile.zip&
UploadShapefileParameters={"SymbolizationFieldName":"","DescriptionFieldName":""}}&
f=PJSON

 

Response

{
  "results":
  [
    {
      "paramName":"OutputStatus",
      "dataType":"GPBoolean",
      "value":true
    }
  ],
  "messages":
  [
  ]
}

 

See Also

Business Analyst Server Repository

Business Analyst Server REST Reference