All Cadcorp SIS API Methods

CreateObject Method

The CreateObject, ReadObject, UpdateObject and DeleteObject API methods provide access to the same resource-based programming model as used in the GeognoSIS HTTP API with a REST client.

Description

Creates an object in the current SWD.

This is the GisLink and ActiveX equivalent of the HTTP API POST method.

Syntax

Visual Basic
Public Function CreateObject( _
   ByVal url As String, _
   ByVal contenttype As String, _
   ByVal content As Variant _
) As Variant

Parameters

url
The url of the object to be created.
 
contenttype
"Application/ JSON" (for properties map)
"Application/ vnd.geo+json" (for GeoJSON)
"Text/plain" (for Well-Known text representation)
"Application/octet-stream" (for Well-Known Binary and SIS binary representations) and so on.
 
 
content
Byte array containing a valid GeoJSON Object (or other payload content depanding on type).

Remarks

Available: D OD OM SISPy PySIS

Group:

Example

Dim result as Object = mapobject.CreateObject ( url, contentType, content)