public FeatureResponse(Shape shape) { this.properties = new FeatureResponseProperties { OBJECTID = shape.ObjectId, SA2_MAIN11 = shape.Sa2Main11, SA2_5DIG11 = shape.Sa25Dig11, SA2_NAME11 = shape.Sa2Name11, SA3_CODE11 = shape.Sa3Code11, SA3_NAME11 = shape.Sa3Name11, SA4_CODE11 = shape.Sa4Code11, SA4_NAME11 = shape.Sa4Name11, GCC_CODE11 = shape.GccCode11, GCC_NAME11 = shape.GccName11, STE_CODE11 = shape.SteCode11, STE_NAME11 = shape.SteName11, Shape_Leng = shape.ShapeLeng, Shape_Area = shape.ShapeArea }; this.geometry = new FeatureResponseGeometry(); this.see = shape.GeometryText; }
private static FeatureResponse ToFeature(Shape shape) { return new FeatureResponse(shape); }