Hey,
hm your first paragraph I didn't understand right I think.
You mean to store a FeatureClass within a Workspace (FGDB or Scratch? Or Doesnt Matter?) and then assign the returned FeatureClass of the JoinNearest Method (which currently fails) to the new created one? And I shall do this, to define some spatial reference, because NearestJoin could fail due to missing the spatial reference?
And once again, whats about the spatial reference.
FeatureDatasets stores saptial Reference, and FeatureClasses not?
Because FeatureClasses have a Property for Spatial Reference. Because, FeatureClasses gain the SpatialReference of the FeatureDataset or somewhere else and then the spatial Reference is stored? But never assign it youself by using the set property of a FeatureClass?
And because I'm not using a FeatureDataset (which isnt always bad, isnt it?) I shall use IGeometryBag. When I read it correctly, all gemotries referenced in the bag have the same spatial reference, because when adding it to the bag the spatial reference of the featureClass added will be overwritten by the current spatial reference of the baf, right?
So ok, sound nice. But how to add the right spatial reference to the Bag?
Just say Bag.Spatialreference = ContourClass.SpatialReference? (this was going into fail when using for the new(cloned) pointclass.
Or do I have to create a new Spatialreference via SpatialRefernceFactory or something else?
Sorry when I am asking too much and maybe some simple things, but I try to understand it at all.
Have much thanks for your post!