35 | | public IPolygon GetExtents() |
36 | | { |
37 | | IPolygon retpolygon; |
38 | | ISelectAggregates pselagree = (ISelectAggregates)FDOConnection.CreateCommand(CommandType.CommandType_SelectAggregates); |
39 | | |
40 | | pselagree.SetFeatureClassName(System.IO.Path.GetFileNameWithoutExtension(OpenedFile)); |
41 | | IFeatureReader FDOReader = pselagree.Execute(); |
42 | | FgfGeometryFactory GeoFac = new FgfGeometryFactory(); |
| 35 | public IPolygon GetExtents() |
| 36 | { |
| 37 | IPolygon retpolygon; |
| 38 | ISelectAggregates pselagree = (ISelectAggregates)FDOConnection.CreateCommand(CommandType.CommandType_SelectAggregates); |
| 39 | pselagree.SetFeatureClassName(System.IO.Path.GetFileNameWithoutExtension(OpenedFile)); |
| 40 | |
| 41 | IdentifierCollection props = pselagree.PropertyNames; |
| 42 | Expression exp = Expression.Parse("SpatialExtents(Geometry)"); |
| 43 | ComputedIdentifier se = new ComputedIdentifier("Extents", exp); |