FRAMES | NO FRAMES | Description | Parameters | Examples | Response |
URL | http://<catalog-url>/<serviceName>/FeatureServer |
---|---|
Supported Operations | Query Apply Edits Create Replica Synchronize Replica Unregister Replica | Parent Resource | Catalog |
Child Resources | Layer Uploads |
Feature services allow you to serve features over the Internet and provide the symbology to use when displaying the features. Features are organized into layers on which clients can execute queries and perform edits. Feature services provide templates which can be used for an enhanced editing experience on the client. Data from relationships and non-spatial tables can also be queried and edited using feature services
The REST API feature service resource represents a feature service published with ArcGIS Server. This resource provides basic information about the feature service including the feature layers and tables that it contains, the service description, etc.
The property hasVersionedData
will be true
if the data is versioned.
The property supportsDisconnectedEditing
will be true
to indicate the support for disconnected editing.
The property supportedQueryFormats
returns the formats in which query results can be returned.
The property maxRecordCount
returns the maximum number of records that will be returned at once for a query.
The property capabilities
now returns additional Create, Delete, Update and Uploads capabilities. Uploads capabilities will be included if Create, Delete or Update is enabled for a Feature Service. Editing capability will be included if Create, Delete, Update is enabled and allowGeometryUpdates
is true
The property allowGeometryUpdates
returns true
if the geometry of the features in the layer can be edited.
The properties zDefault
and enableZDefaults
are returned for a service configured with default Z values.
Feature Service resource has new input parameters option
and outSR
to support viewing of a feature service footprint in arcgis.com.
Parameter | Details |
---|---|
f | Description: The
response format. The default response format is html. Values: html | json |
option |
//This parameter was added at 10.1 Description: If option is footprints the footprint of the feature service is returned as a feature collection. This feature collection can be viewed in a arcgis.com map. This is supported when f=json only.Value: footprints |
outSR |
//This parameter was added at 10.1 Description: The spatial reference of the geometry returned in footprints. This parameter is supported only when option=footprints is specified.
The spatial reference should be specified as a well-known ID. If outSR
is not specified, the geometry is returned in GCS_WGS_1984 . |
Example 1: URL for the "311Incidents" feature service on sampleserver3.
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer?f=pjson{ "currentVersion": <currentVersion>, //Added at 10.1 "serviceDescription": "<serviceDescription>", "hasVersionedData": <true | false>, //Added at 10.1 "supportsDisconnectedEditing": <true | false>, //Added at 10.1 "supportedQueryFormats": "<supportedQueryFormats>", //Added at 10.1 "maxRecordCount": "<maxRecordCount>", //Added at 10.1 "capabilities": "<capabilities>", //Added at 10.1 "description": "<description>", //Added at 10.1 "copyrightText": "<copyrightText>", //Added at 10.1 "spatialReference": {<spatialReference>}, //Added at 10.1 "initialExtent": {<envelope>}, //Added at 10.1 "fullExtent": {<envelope>}, //Added at 10.1 "allowGeometryUpdates": <true | false>, //Added at 10.1 "units": "<units>", //Added at 10.1 "documentInfo": { //Added at 10.1 "<key1>": "<value1>", "<key2>": "<value2>" }, //the feature layers published by this service "layers": [ { "id": <layerId1>, "name": "<layerName1>" }, { "id": <layerId2>, "name": "<layerName2>" } ], //the non-spatial tables published by this service "tables": [ { "id": <tableId1>, "name": "<tableName1>" }, { "id": <tableId2>, "name": "<tableName2>" } ] "enableZDefaults": <true | false>,//Added at 10.1 "zDefault": <zDefaultValue>,//Added at 10.1 }
{
"currentVersion": 10.1, "serviceDescription": "Edit parcels, buildings and owner information.", "hasVersionedData": false, "supportsDisconnectedEditing": true, "supportedQueryFormats": "JSON, AMF", "maxRecordCount": 1000, "capabilities": "Create,Delete,Query,Update,Editing", "description": "Street Map USA", "copyrightText": "ESRI", "spatialReference": { "wkid": 4326, "latestWkid": 4326 }, "initialExtent": { "xmin": -109.55, "ymin": 25.76, "xmax": -86.39, "ymax": 49.94, "spatialReference": { "wkid": 4326, "latestWkid": 4326 } }, "fullExtent": { "xmin": -130, "ymin": 24, "xmax": -65, "ymax": 50, "spatialReference": { "wkid": 4326, "latestWkid": 4326 } }, "allowGeometryUpdates": true, "units": "esriDecimalDegrees", "documentInfo": { "Title": "StreetMap USA", "Author": "ESRI Data Team", "Comments": "ESRI Data and Maps", "Subject": "Street level data for the US", "Category": "vector", "Keywords": "StreetMap USA" }, "layers": [ { "id": 0, "name": "Parcels" }, { "id": 1, "name": "Buildings" } ], "tables": [ { "id": 2, "name": "Owners" } ] "enableZDefaults": false }
URL: http://sampleserver.arcgisonline.com/arcgis/rest/services/SanFrancisco/311Incidents/FeatureServer?f=json&option=footprints&outSR=102100
{ "featureCollection": { "layers": [ { "layerDefinition": { "type": "Feature Layer", "geometryType": "esriGeometryPoint", "extent": {<envelope> }, "objectIdField": "id", "displayFieldName": "<displayFieldName>", "drawingInfo": { "renderer": { "type": "simple", "label": "<label>", "description": "", "symbol": { "height": 24, "xoffset": 0, "yoffset": 0, "width": 24, "contentType": "image/png", "type": "esriPMS", "imageData": "<imageData>", "url": "<imageUrl>" } } }, "fields": [ { "name": "id", "alias": "ID", "type": "esriFieldTypeOID" }, { "name": "title", "alias": "Title", "type": "esriFieldTypeString" }, { "name": "summary", "alias": "Summary", "type": "esriFieldTypeString" }, { "name": "description", "alias": "Description", "type": "esriFieldTypeString" }, { "name": "tags", "alias": "Tags", "type": "esriFieldTypeString" }, { "name": "type", "alias": "Type", "type": "esriFieldTypeString" }, { "name": "thumbnail", "alias": "Thumbnail", "type": "esriFieldTypeString" }, { "name": "xmin", "alias": "xmin", "type": "esriFieldTypeDouble" }, { "name": "ymin", "alias": "ymin", "type": "esriFieldTypeDouble" }, { "name": "xmax", "alias": "xmax", "type": "esriFieldTypeDouble" }, { "name": "ymax", "alias": "ymax", "type": "esriFieldTypeDouble" }, { "name": "accessInformation", "alias": "Access Information", "type": "esriFieldTypeString" }, { "name": "licenseInfo", "alias": "License Information", "type": "esriFieldTypeString" }, { "name": "credits", "alias": "Credits", "type": "esriFieldTypeString" }, { "name": "link", "alias": "Link", "type": "esriFieldTypeString" }, { "name": "arcgisJslink", "alias": "ArcgisJsLink", "type": "esriFieldTypeString" } ] }, "featureSet": { "geometryType": "esriGeometryPoint", "spatialReference": { "wkid": <wkid> }, "features": [ { "geometry": { <point> }, "attributes": { "id": 1, "title": "<title>", "summary": "<summary>", "description": "<description>", "tags": "[\"<tag1>\,\"<tag2>\"]", "type": "MapServer", "thumbnail": "<thumbnailUrl>", "xmin": <xmin>, "ymin": <ymin>, "xmax": <xmax>, "ymax": <ymax>, "accessInformation": "<accessInformation>", "licenseInfo": "<licenseInfo>", "credits": "<credits>", "link": "<serviceResourceLink>", "arcgisJslink": "<View in JSAPI Link>" } } ] }, "popupInfo": { "title": "{title} ({type})", "fieldInfos": [ { "fieldName": "id", "label": "ID", "visible": false }, { "fieldName": "title", "label": "Title", "visible": true }, { "fieldName": "summary", "label": "Summary", "visible": true }, { "fieldName": "description", "label": "Description", "visible": true }, { "fieldName": "tags", "label": "Tags", "visible": true }, { "fieldName": "type", "label": "Type", "visible": true }, { "fieldName": "thumbnail", "label": "Thumbnail", "visible": false }, { "fieldName": "xmin", "label": "xmin", "format": { "places": 2, "digitSeparator": false }, "visible": false }, { "fieldName": "ymin", "label": "ymin", "format": { "places": 2, "digitSeparator": false }, "visible": false }, { "fieldName": "xmax", "label": "xmax", "format": { "places": 2, "digitSeparator": false }, "visible": false }, { "fieldName": "ymax", "label": "ymax", "format": { "places": 2, "digitSeparator": false }, "visible": false }, { "fieldName": "accessInformation", "label": "Access Information", "visible": true }, { "fieldName": "licenseInfo", "label": "License Information", "visible": true }, { "fieldName": "credits", "label": "Credits", "visible": true }, { "fieldName": "link", "label": "Link", "visible": true } ], "description": null, "showAttachments": false, "mediaInfos": [ { "type": "image", "caption": "Initial Extent: [{xmin}, {ymin}] - [{xmax}, {ymax}]", "value": { "sourceURL": "{thumbnail}", "linkURL": "{arcgisJslink}" } } ] } } ] } }
{ "featureCollection": { "layers": [ { "layerDefinition": { "type": "Feature Layer", "geometryType": "esriGeometryPoint", "extent": { "xmin": -11837496.295089964, "ymin": -2567294.2415802763, "xmax": 211652.80320823845, "ymax": 5592472.077952366, "spatialReference": { "wkid": 102100, "latestWkid": 3857 } }, "objectIdField": "id", "displayFieldName": "Hurricanes_msdFeatureServer", "drawingInfo": { "renderer": { "type": "simple", "label": "Hurricanes_msd", "description": "", "symbol": { "height": 24, "xoffset": 0, "yoffset": 0, "width": 24, "contentType": "image/png", "type": "esriPMS", "imageData": "iVBORw0KGgoAAAANSUhEUg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f6dQmxNqbTn1kOxgSyjhFApjCTPh1OgKBqml5ldPSRkpJhJ6LSKymmwqMhoQfYYiXFbW11bqIU3aCqI2tZzSxQwF+dmKkO2kkhJJI2qSUlopICYR6gulnooWpISgc10XEfWe3iOV1Y8aIFtCdtPAab6TM9pkgjV7yCRk2k4Pkbc1guYKYRjPzYlVxWluUaFSTQQFFS/oXIoo1aSKbKb3Kt3UO0pQ2dpUp03t1joYTJVkgdakVMBAQj0lYubSR6qpWHP5I6JKMb3WdSmi2Nd79F5FtUnGiueaIrSCb61Om8T2t9dxGjGTlB6s0dREKwuqKI2yClQvqFjZSLY0oddSQ4tX3WsS0WdoOSVlTDJyReulz/cmxM8z1lAmKX24Rqz1tkEFyO8mMflf5GRHNbcKloKCzgVdlxoKF1lXRKwIKa/BMpVpczIi9H/y7x8HRRVlwh1ZewAAAABJRU5ErkJggg==", "url": "http://sampleserver/arcgis/rest/static/images/PurpleShinyPin.png" } } }, "fields": [ { "name": "id", "alias": "ID", "type": "esriFieldTypeOID" }, { "name": "title", "alias": "Title", "type": "esriFieldTypeString" }, { "name": "summary", "alias": "Summary", "type": "esriFieldTypeString" }, { "name": "description", "alias": "Description", "type": "esriFieldTypeString" }, { "name": "tags", "alias": "Tags", "type": "esriFieldTypeString" }, { "name": "type", "alias": "Type", "type": "esriFieldTypeString" }, { "name": "thumbnail", "alias": "Thumbnail", "type": "esriFieldTypeString" }, { "name": "xmin", "alias": "xmin", "type": "esriFieldTypeDouble" }, { "name": "ymin", "alias": "ymin", "type": "esriFieldTypeDouble" }, { "name": "xmax", "alias": "xmax", "type": "esriFieldTypeDouble" }, { "name": "ymax", "alias": "ymax", "type": "esriFieldTypeDouble" }, { "name": "accessInformation", "alias": "Access Information", "type": "esriFieldTypeString" }, { "name": "licenseInfo", "alias": "License Information", "type": "esriFieldTypeString" }, { "name": "credits", "alias": "Credits", "type": "esriFieldTypeString" }, { "name": "link", "alias": "Link", "type": "esriFieldTypeString" }, { "name": "arcgisJslink", "alias": "ArcgisJsLink", "type": "esriFieldTypeString" } ] }, "featureSet": { "geometryType": "esriGeometryPoint", "spatialReference": { "wkid": 102100 }, "features": [ { "geometry": { "x": -5812921.745940862, "y": 1512588.918186045 }, "attributes": { "id": 1, "title": "Hurricanes", "summary": "", "description": "", "tags": "[\"hurricanes\",\"2000\"]", "type": "FeatureServer", "thumbnail": "http://sampleserver/arcgis/rest/services/Hurricanes_msd/FeatureServer/info/thumbnail", "xmin": -11837496.295089964, "ymin": -2567294.2415802763, "xmax": 211652.80320823845, "ymax": 5592472.077952366, "accessInformation": "", "licenseInfo": "", "credits": "", "link": "http://sampleserver/arcgis/rest/services/Hurricanes_msd/FeatureServer", "arcgisJslink": "" } } ] }, "popupInfo": { "title": "{title} ({type})", "fieldInfos": [ { "fieldName": "id", "label": "ID", "visible": false }, { "fieldName": "title", "label": "Title", "visible": true }, { "fieldName": "summary", "label": "Summary", "visible": true }, { "fieldName": "description", "label": "Description", "visible": true }, { "fieldName": "tags", "label": "Tags", "visible": true }, { "fieldName": "type", "label": "Type", "visible": true }, { "fieldName": "thumbnail", "label": "Thumbnail", "visible": false }, { "fieldName": "xmin", "label": "xmin", "format": { "places": 2, "digitSeparator": false }, "visible": false }, { "fieldName": "ymin", "label": "ymin", "format": { "places": 2, "digitSeparator": false }, "visible": false }, { "fieldName": "xmax", "label": "xmax", "format": { "places": 2, "digitSeparator": false }, "visible": false }, { "fieldName": "ymax", "label": "ymax", "format": { "places": 2, "digitSeparator": false }, "visible": false }, { "fieldName": "accessInformation", "label": "Access Information", "visible": true }, { "fieldName": "licenseInfo", "label": "License Information", "visible": true }, { "fieldName": "credits", "label": "Credits", "visible": true }, { "fieldName": "link", "label": "Link", "visible": true } ], "description": null, "showAttachments": false, "mediaInfos": [ { "type": "image", "caption": "Initial Extent: [{xmin}, {ymin}] - [{xmax}, {ymax}]", "value": { "sourceURL": "{thumbnail}", "linkURL": "{arcgisJslink}" } } ] } } ] } }