/// <summary>
 /// Type initializer, setting up the featureTargetGeometry table descriptor that
 /// is used in case there is an GoTo Envelope request. This table is used to
 /// morph the Envelope request into a FeatureTargetGeometry request where the
 /// feature holds a description and the centre of the envelope.
 /// </summary>
 static LiteGoToGeometryRequestMessage()
 {
     FeatureTargetGeometryTable = new SimpleFeatureTableDescriptor("highlight", "Highlight");
     FeatureTargetGeometryTable.FieldDescriptors.Add("description", "Description", FeatureAlphaType.StringWith(255));
     FeatureTargetGeometryTable.FieldDescriptors.Add("location", "Location", FeatureGeometryType.Point);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Set up the table descriptor
        /// </summary>
        private void SetupTableDescriptor()
        {
            var tableName                 = "_multiplefeatures_";
            var tableExternalName         = ApplicationResources.FeatureDetailsMultipleFeatures;
            var elementsFieldName         = "elements";
            var elementsFieldExternalName = ApplicationResources.FeatureDetailsMultipleFeaturesNumberOfElements;
            var areaFieldName             = "area";
            var areaFieldExternalName     = ApplicationResources.FeatureDetailsMultipleFeaturesArea;
            var lengthFieldName           = "length";
            var lengthFieldExternalName   = ApplicationResources.FeatureDetailsMultipleFeaturesLength;

            var tableDescriptor = new SimpleFeatureTableDescriptor(tableName, tableExternalName);

            tableDescriptor.FieldDescriptors.Add(elementsFieldName, elementsFieldExternalName, FeatureAlphaType.Int);
            tableDescriptor.FieldDescriptors.Add(lengthFieldName, areaFieldExternalName, FeatureAlphaType.StringWith(30));
            tableDescriptor.FieldDescriptors.Add(areaFieldName, lengthFieldExternalName, FeatureAlphaType.StringWith(30));

            this.MultiFeatureTableDescriptor = tableDescriptor;
        }