FeatureCollecitonTable with GeometryType.Envelope throws exception, saying that Exception for type Envelope : Geodatabase geometry type not supported. I'm trying to create Feature with Geometrytype.Envelope. Attached are the json files for four Fields and spatial reference.
I'm using
FeatureCollecitonTable fcTable = new(fieldList, geometryType, spatialReference, false, false);
It is exactly what the error message says: Envelope is not a supported geometry type to store in an ESRI GeoDatabase. Use Polygon instead.
Supported types are:
I know. I did the conversion to Polygon. Isn't it not consistent to have GeometryType.Envelope but not supporting in GeoDatabse? You could do it internally in Esri side.
Sure but historically there's never been envelope as a geometry type in the geodata. The envelope is a special case geometry mostly used to just determine extents of a geometry and as such is a "helper" type separate from the other types. In hindsight it probably shouldn't have inherited from Geometry to begin with.