Skip to main content
6 events
when toggle format what by license comment
Jul 9, 2017 at 22:12 answer added Hornbydd timeline score: 1
Jul 7, 2017 at 14:46 comment added danielm I don't remember where it is, but somewhere in the documentation it says not to directly use a feature class's Fields object to make another feature class. See if it works if you do this instead: (pFromFC.Fields as IClone).Clone() as IFields. If that doesn't work, you'll either have to alter the cloned fields object or make the whole thing from scratch.
Jul 7, 2017 at 0:12 history edited PolyGeo CC BY-SA 3.0
edited title
Jul 6, 2017 at 23:23 comment added Michael Stimson I usually go through creating the IFields/IFieldsEdit from scratch, iterating the input fields and with the IGeometryDefEdit modify the HasM and HasZ as needed. I don't know why your HasM and HasZ properties aren't being copied but perhaps try starting from IFields OutFields = new FieldsClass(); and then for (int fIndx = 0;fIndx < pFromFC.Fields.FieldCount;fIndx++) add new fields created like the pFromFC. The only code that I have for copying a feature class is in VB.net, can you speak VB?
Jul 6, 2017 at 23:17 review First posts
Jul 7, 2017 at 0:12
Jul 6, 2017 at 23:15 history asked John M CC BY-SA 3.0