Skip to content

Latest commit

 

History

History
61 lines (58 loc) · 2.06 KB

publish-feature-service.md

File metadata and controls

61 lines (58 loc) · 2.06 KB

Enabling feature access in a map service

To enable feature access on a map service, you must enable the FeatureServer extension in the service json parameter - the easiet way to get the FeatureSerer JSON is to go the REST Admin endpoint for a service with feature access enabled, copy it, and modify it for your needs.

{
    "input": "D:\\path-to\\my.mxd",
    "output": "output/",
    "serviceName": "My Service",
    "initialState": "STOPPED",
    "serverType": "ARCGIS_SERVER",
    "copyDataToServer": "False",
    "folderName": "Hydrants",
    "summary": "",
    "workspaces": [{
        "old": {
            "path": "\\\\old-path\conn.sde",
            "type": "SDE_WORKSPACE"
        },
        "new": {
            "path": "D:\\new-path\conn.sde",
            "type": "SDE_WORKSPACE"
        }
    }],
    "json": {
        "extensions": [{
            "typeName": "FeatureServer",
            "capabilities": "Create,Delete,Query,Update,Uploads,Editing",
            "enabled": "true",
            "maxUploadFileSize": 0,
            "allowedUploadFileTypes": "",
            "properties": {
                "creatorPresent": "true",
                "dataInGdb": "true",
                "xssPreventionEnabled": "true",
                "allowGeometryUpdates": "true",
                "versionedData": "true",
                "syncVersionCreationRule": "versionPerDownloadedMap",
                "maxRecordCount": "1000",
                "allowOthersToQuery": "true",
                "syncEnabled": "false",
                "editorTrackingTimeZoneID": "UTC",
                "enableZDefaults": "false",
                "realm": "",
                "allowOthersToDelete": "false",
                "allowTrueCurvesUpdates": "false",
                "datasetInspected": "true",
                "editorTrackingRespectsDayLightSavingTime": "false",
                "zDefaultValue": "0",
                "enableOwnershipBasedAccessControl": "false",
                "editorTrackingTimeInUTC": "true",
                "allowOthersToUpdate": "false"
            }
        }]
    }
}