Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Python API Create a new DataDefinition

Johannes Kolbe edited this page Jul 30, 2014 · 2 revisions

In IlwisObjects the DataDefinition defines, what kind of data is contained in the object and which kind of data may be put into it. For this definiton it relies on a Domain and the according Range. All possibilities can be seen in the following table. Click on the name to get redirected to the according documentation (so far available).

Domain Range
NumericDomain NumericRange
ItemDomain NumericItemRange
ThematicRange
NamedItemRange
TimeDomain TimeInterval
ColorDomain ContinousColorRange
TextDomain String

Creating a new DataDefinition can now simply be done by passing the domain and optionally the range to it's constructor.

 #Create range
 nr = NumericRange(0.0, 10000.0)
 #Create empty Numeric Domain
 numdom = NumericDomain()
 #Set range of new domain
 numdom.setRange(nr)

 datdef = DataDefinition(numdom, nr)

Clone this wiki locally