예제 #1
0
        internal override XsdNs.AbstractDataComponentType GetObjectForXml_DataRecordField(string idPrefix)
        {
            var proxyFromContents = ToXmlProxy(idPrefix);

            var retval = new XsdNs.AbstractGmlAsSweDataComponentType()
            {
                AbstractGML         = proxyFromContents,
                AbstractGMLTypeInfo = XsdNs.AbstractGMLTypeType.TimeseriesDomainRangeType
            };

            return(retval);
        }
예제 #2
0
        private Item ProcessTimeSeriesField(XsdNs.AbstractGmlAsSweDataComponentType wrapperElement)
        {
            var proxy = (XsdNs.TimeseriesDomainRangeType)wrapperElement.AbstractGML;

            // If the time series object has a time position list, assuming
            // the type is a flexible time series (not constant interval)

            if (proxy.domainSet.TimePositionList != null)
            {
                return(new Item_TimeSeriesFlexible(proxy));
            }
            else
            {
                return(new Item_TimeSeriesConstant(proxy));
            }
        }