m_map.ClearSelection(); while (Feat != null) { spatialFilter.GeometryField = featureClass1.ShapeFieldName; spatialFilter.Geometry = Feat.Shape; spatialFilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects; featureCursor1 = featureClass1.Search(spatialFilter, false); Feat1 = featureCursor1.NextFeature(); while (Feat1 != null) //to check the result of the ispatialquery { // MessageBox.Show("FEAT " + Feat1.OID.ToString()); m_map.SelectFeature(l2, Feat1); Feat1 = featureCursor1.NextFeature(); } Marshal.FinalReleaseComObject(featureCursor1); Feat = featureCursor.NextFeature(); } Marshal.FinalReleaseComObject(featureCursor); activeView.Refresh();
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.