ITopologicalOperator.ConstructUnion Problem

739
2
03-17-2014 07:45 AM
VikramS
Occasional Contributor
Hello all,

I have been using Contructunion method to merge multiple polygons from source to target feature class . Recently I noticed that the target features are not aligning with source . They are off by 0.19-0.9 ft . Below is my code . Can anybody give me an idea why this could be happening ?

qfeature = qFeaturecursor.NextFeature();
while (qfeature != null)
    {
  if (qfeature.Shape.GeometryType == esriGeometryType.esriGeometryPolygon)
  {
  pGeoCollection.AddGeometry(qfeature.ShapeCopy);
  }

if ((pGeoCollection.GeometryCount > 0) && (bgeometryerror == false))
{
  IPolygon pPolygon = null;
  unionedPolygon.ConstructUnion(pGeoBag as IEnumGeometry);
  pPolygon = (IPolygon)unionedPolygon;
}
0 Kudos
2 Replies
DuncanHornby
MVP Frequent Contributor
Do the source and target FeatureClasses have different XY precision? Maybe you are getting some sort of truncation of the xth decimal place? Especially if you are going from a Shapefile to say a high precision geodatabase featureclass?
0 Kudos
VikramS
Occasional Contributor
Do the source and target FeatureClasses have different XY precision? Maybe you are getting some sort of truncation of the xth decimal place? Especially if you are going from a Shapefile to say a high precision geodatabase featureclass?


Hello Duncan ,

Source and Target are coming from ArcSDE .
0 Kudos