Exemplo n.º 1
0
        private void StoreOpenJawReshape([NotNull] IFeature feature,
                                         [NotNull] IGeometry newGeometry)
        {
            //const bool allowSnappingEdgeEndPoints = true;

            if (NetworkFeatureUpdater != null)
            {
                NetworkFeatureUpdater.StoreSingleFeatureShape(feature, newGeometry);
            }
            else
            {
                GdbObjectUtils.SetFeatureShape(feature, newGeometry);
                feature.Store();
            }

            AddToRefreshArea(newGeometry);

            //NetworkUtils.SetFeatureShape(
            //	feature, newGeometry,
            //	GeometricNetworkConnectOption.DisconnectAndReconnect, allowSnappingEdgeEndPoints);
        }
Exemplo n.º 2
0
        private IEnumerable <IFeature> StoreOpenJawReshape([NotNull] IFeature feature,
                                                           [NotNull] IGeometry newGeometry)
        {
            AddToRefreshArea(newGeometry);

            if (NetworkFeatureUpdater != null)
            {
                NetworkFeatureUpdater.StoreSingleFeatureShape(feature, newGeometry);

                foreach (var updatedFeature in NetworkFeatureUpdater.UpdatedFeatures)
                {
                    yield return(updatedFeature);
                }
            }
            else
            {
                GdbObjectUtils.SetFeatureShape(feature, newGeometry);
                feature.Store();

                yield return(feature);
            }
        }