Custom Location Extension API Developer's Guide

Modify Geometries in Existing Layers

Modify geometries using an HTTP GET or POST request. After the response there is a delay of several seconds to compile, store and make the modified geometries available in the service.

Note: The level (tile grid size) of the layer can only be changed by uploading the whole layer, not as a modification operation.

Resource methods and URI

GET/POST /2/layers/modify.json

Query Parameters

Parameters Required? Description
changes For GET request For GET requests: URL-encoded WKT file content as parameter value. For POST requests: Instead of this parameter, a multipart/form-data body is sent. The supported file formats and the parameter name are the same as for upload.json.
app_id Yes A URL-safe encoded string obtained during the application registration. See Acquiring Credentials for information on getting credentials.
app_code Yes A URL-safe encoded string obtained during the application registration. See Acquiring Credentials for information on getting credentials.
action Yes append, update or delete. Geometries are identified by their geometry_id column value. For append, the geometries must not exist yet and will be added. For update, the geometries must exist and will be replaced. All column values must be specified, not only the changes. For update and delete, the columns must not change - names, sequence orders and type must be identical. For delete, the geometries must exist and will be replaced. Only the geometry_id column is required.
layer_id Yes Layer to which the geometry changes shall be applied.
callback No Specifies the function used to wrap the JSON response.