User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.importfromjson_widestring

Table of Contents

ITGIS_Shape.ImportFromJSON method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.ImportFromJSON | Methods | Properties

Replaces the current geometry by parsing GeoJSON (Geographic JSON) text in place.

Available also on: Delphi | .NET | Java | Python.

Syntax

// C#
public void ImportFromJSON(
  WideString _json
);
' VisualBasic
Public Sub ImportFromJSON(
  ByVal _json As WideString
)
// Oxygene
public
  procedure ImportFromJSON(
    _json : WideString
  );

Parameters

Name Type Description
_json WideString GeoJSON geometry or feature text in JSON form.

Remarks

PURPOSE: Replaces the current shape geometry from GeoJSON (Geographic JSON), a web-friendly JSON-based format for vector data exchange.

BEHAVIOR: Parses the GeoJSON content and updates this shape in place with the decoded geometry.

CONSTRAINTS: Existing geometry is overwritten. GeoJSON follows RFC 7946 coordinate rules. Malformed input raises an exception.

2026/07/05 01:25

Page Tools