AnsweredAssumed Answered

Error: The geometry is not Z-aware

Question asked by shaningesri on Jul 24, 2017
Latest reply on Jul 24, 2017 by shaningesri

In my ArcObjects projects, there is a function to Insert a polygon feature from a Source FeatureClass into a Target FeatureClass (fc_Target).  The related code is below:
    IFeature f_Target = fc_Target.CreateFeature();
    f_Target.Shape = f_Source.Shape;   // f_Source - feature of Source FeatureClass; Got error
However, it throws an error:  The geometry is not Z-aware.  Then, I found that the fc_Source is a type of PlogonZM, while the fc_Target is type of Polygon.  How can this problem be fixed?  Thanks.