Skip to main content
Post Reopened by JGH, xunilk, whyzar, tinlyx, aldo_tapia
proper code formating
Source Link
JGH
  • 43.3k
  • 3
  • 46
  • 93

I would like to compare the geometry between two feature, Already I selected the two feature. How do I start the comparison?

depend on the image below I need to write code to compare this two features and get the difference (blue colour is different) and save the difference in a new feature class,

      ` ITopologicalOperator2 pTopOpOld = oldFeature.ShapeCopy as ITopologicalOperator2;
       ITopologicalOperator2 pTopOpNew = newFeature.ShapeCopy as ITopologicalOperator2;

       IGeometry differenceGeometry = pTopOpOld.Difference(newFeature.Shape);
       
       pTopOpOld = differenceGeometry as ITopologicalOperator2;
       pTopOpOld.IsKnownSimple_2 = false;
       pTopOpOld.Simplify();
       newFeature.Shape = pTopOpOld as IGeometry;
       newFeature.Store();  `

enter image description here

I would like to compare the geometry between two feature, Already I selected the two feature. How do I start the comparison?

depend on the image below I need to write code to compare this two features and get the difference (blue colour is different) and save the difference in a new feature class,

      ` ITopologicalOperator2 pTopOpOld = oldFeature.ShapeCopy as ITopologicalOperator2;
       ITopologicalOperator2 pTopOpNew = newFeature.ShapeCopy as ITopologicalOperator2;

       IGeometry differenceGeometry = pTopOpOld.Difference(newFeature.Shape);
       
       pTopOpOld = differenceGeometry as ITopologicalOperator2;
       pTopOpOld.IsKnownSimple_2 = false;
       pTopOpOld.Simplify();
       newFeature.Shape = pTopOpOld as IGeometry;
       newFeature.Store();  `

enter image description here

I would like to compare the geometry between two feature, Already I selected the two feature. How do I start the comparison?

depend on the image below I need to write code to compare this two features and get the difference (blue colour is different) and save the difference in a new feature class,

ITopologicalOperator2 pTopOpOld = oldFeature.ShapeCopy as ITopologicalOperator2;
ITopologicalOperator2 pTopOpNew = newFeature.ShapeCopy as ITopologicalOperator2;

IGeometry differenceGeometry = pTopOpOld.Difference(newFeature.Shape);

pTopOpOld = differenceGeometry as ITopologicalOperator2;
pTopOpOld.IsKnownSimple_2 = false;
pTopOpOld.Simplify();
newFeature.Shape = pTopOpOld as IGeometry;
newFeature.Store();

enter image description here

added 617 characters in body
Source Link
Moe
  • 21
  • 4

I would like to compare the geometry between two feature, Already I selected the two feature. How do I start the comparison?

depend on the image below I need to write code to compare this two features and get the difference (blue colour is different) and save the difference in a new feature class,

      ` ITopologicalOperator2 pTopOpOld = oldFeature.ShapeCopy as ITopologicalOperator2;
       ITopologicalOperator2 pTopOpNew = newFeature.ShapeCopy as ITopologicalOperator2;

       IGeometry differenceGeometry = pTopOpOld.Difference(newFeature.Shape);
       
       pTopOpOld = differenceGeometry as ITopologicalOperator2;
       pTopOpOld.IsKnownSimple_2 = false;
       pTopOpOld.Simplify();
       newFeature.Shape = pTopOpOld as IGeometry;
       newFeature.Store();  `

enter image description here

I would like to compare the geometry between two feature, Already I selected the two feature. How do I start the comparison?

depend on the image below I need to write code to compare this two features and get the difference (blue colour is different) and save the difference in a new feature class,

enter image description here

I would like to compare the geometry between two feature, Already I selected the two feature. How do I start the comparison?

depend on the image below I need to write code to compare this two features and get the difference (blue colour is different) and save the difference in a new feature class,

      ` ITopologicalOperator2 pTopOpOld = oldFeature.ShapeCopy as ITopologicalOperator2;
       ITopologicalOperator2 pTopOpNew = newFeature.ShapeCopy as ITopologicalOperator2;

       IGeometry differenceGeometry = pTopOpOld.Difference(newFeature.Shape);
       
       pTopOpOld = differenceGeometry as ITopologicalOperator2;
       pTopOpOld.IsKnownSimple_2 = false;
       pTopOpOld.Simplify();
       newFeature.Shape = pTopOpOld as IGeometry;
       newFeature.Store();  `

enter image description here

Post Closed as "Not suitable for this site" by PolyGeo
deleted 23 characters in body; edited tags; edited title
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Compare between Comparing geometry of two features to get the changes (arc-objectusing ArcObjects and c#)?

I would like to compare the geometry between two feature, Already I selected the two feature. How do I need some help to start the comparison, depend?

depend on the image below I need to write code to compare this two features and get the difference (blue colour is different) and save the difference in a new feature class, Please advise...

enter image description here

Compare between two features to get the changes (arc-object c#)

I would like to compare the geometry between two feature, Already I selected the two feature. I need some help to start comparison, depend on the image below I need to write code to compare this two features and get the difference (blue colour is different) and save the difference in a new feature class, Please advise...

enter image description here

Comparing geometry of two features to get changes using ArcObjects and c#?

I would like to compare the geometry between two feature, Already I selected the two feature. How do I start the comparison?

depend on the image below I need to write code to compare this two features and get the difference (blue colour is different) and save the difference in a new feature class,

enter image description here

Source Link
Moe
  • 21
  • 4
Loading