Hello,
I need to create shapefile from scratch and also make some queries afterwards and update some features.
Basically, I want to find all features that lie within each other.
I tried to use feature’s IsWithin and Contains method, but it didn’t work. 
Here is my code:
ShapeFileFeatureLayer.CreateShapeFile(ShapeFileType.Polyline, sShapeFileName, pressureDef.Columns, Encoding.Default, OverwriteMode.Overwrite);ShapeFileFeatureSource featureSource =newShapeFileFeatureSource(sShapeFileName, ShapeFileReadWriteMode.ReadWrite);
featureSource.Open();featureSource.BeginTransaction();
foreach(PolyLine polyinpolyLines){if(poly.Type.ToUpper() !="CLOSE")continue;Collection<string> col =newCollection<string>();col.Add("val:"+ poly.Value.ToString("0.#"));
LineShape line =newLineShape();
foreach(PointD pointinpoly.PointList){line.Vertices.Add(newVertex(point.X, point.Y));}Feature f =newFeature(line, col);f = f.MakeValid();featureSource.AddFeature(f);}featureSource.CommitTransaction();
List<Feature> group;var features = featureSource.GetAllFeatures(ReturningColumnsType.AllColumns);foreach(Feature curFeatureinfeatures){group =newList<Feature>();group.Add(curFeature);
foreach(Feature finfeatures){if(f == curFeature)continue;if(curFeature.IsWithin(f)){group.Add(f);}}
if(group.Count > 1){
}}featureSource.Close();
Thanks,
Inna
      
    
