|
POST
|
I got the same problem. It was found that it was due to the crashed SDE DB. After re-building the DB and creation of the version, the problem was gone.
... View more
07-11-2017
10:20 AM
|
0
|
0
|
1272
|
|
POST
|
It was found that this problem was due to the crashed SDE DB. After re-building the DB and creation of the version, the problem was gone. Thanks for your review.
... View more
07-11-2017
10:19 AM
|
0
|
0
|
814
|
|
POST
|
It was found that this problem was due to the crashed SDE DB. After re-building the DB and creation of the version, the problem was gone. Thanks for your review.
... View more
07-11-2017
10:00 AM
|
0
|
0
|
477
|
|
POST
|
I posted a thread about 10 days ago at Not successful in updating myVersion in which I present a problem Not successful in updating myVersion using ArcObjects (as a feature is Inserted into myVersion, this feature is also inserted in other versions too). Then, I tested a editing on ArcMap. A SDE versioned layer is loaded on ArcMap session. However, when I Start Editing, I got warning: No Editable Layers. I searched around for "No editable layers" but could not find the proper solution. I appreciate if you can share your experience.
... View more
07-05-2017
11:48 AM
|
0
|
0
|
761
|
|
POST
|
Ken: Thanks for your response. I revised my program. But after the feature layers are loaded, the frame still shows feet as the unit. Besides, the returned values (Calculated central X & Y) are still in feet. Any new idea? Thanks.
... View more
07-03-2017
06:32 AM
|
0
|
1
|
684
|
|
POST
|
I want to have a piece of code to convert a custom coordinate system (LDP NAD 1983 [NSRS2007] US Feet) into Decimal Degrees. The projection of the dataset is detailed below: Projection: Lambert_Conformal_Conic False_Easting: 200000.0 False_Northing: 150000.0 Central_Meridian: -77.03333333333333 Standard_Parallel_1: 38.83333333333334 Standard_Parallel_2: 38.83333333333334 Scale_Factor: 1.0 Latitude_Of_Origin: 38.83333333333334 Linear Unit: Foot_US (0.3048006096012192) Geographic Coordinate System: GCS_NAD_1983_NSRS2007 Angular Unit: Degree (0.0174532925199433) Prime Meridian: Greenwich (0.0) Datum: D_NAD_1983_NSRS2007 Spheroid: GRS_1980 Semimajor Axis: 6378137.0 Semiminor Axis: 6356752.314140356 I want to mathematically to do calculations. I found a piece of code at coordinate system - Convert Feet to Decimal Degrees - Geographic Information Systems Stack Exchange but this piece of code does not explain clearly how to use the values of False_Easting & False_Northing. Do you have an idea how to do it? Thanks.
... View more
07-03-2017
06:14 AM
|
0
|
0
|
2342
|
|
POST
|
Ken: Thanks for your hint. Below is the code I have. But I can't QI to Decimal Degree. What's wrong in my code? Thanks. m_mxDoc = (IMxDocument)app.Document; //m_app.Document; m_Map = m_mxDoc.FocusMap; m_activeView = (IActiveView)m_Map; ISpatialReference spRef = m_Map.SpatialReference; IProjectedCoordinateSystem pProjectedCoordinateSystem = spRef as IProjectedCoordinateSystem; ILinearUnit pLinearUnit = pProjectedCoordinateSystem.CoordinateUnit;
... View more
06-30-2017
12:20 PM
|
0
|
3
|
684
|
|
POST
|
I use a piece of code for dynamically loading feature layers. Either before or after the loading, I need to set the Data Frame in Decimal Degrees. Is there such a piece of code that can set / change the Data Frame's setting? Thanks.
... View more
06-30-2017
10:26 AM
|
0
|
5
|
1090
|
|
POST
|
I created a SDE Version and executed edit through ArcObjects. However, the results show that not only myVersion is updated, but also the SDE.Default version is also updated. See the code below. I DID check-up / verify the version. What's wrong with my code? Did I miss something? Thanks. void Update_FC(IFeatureClass fc_Source, IFeatureClass fc_Target) { // Before updating using the 4 lines of code below to check/verify the version IWorkspace ws = fc_Target.FeatureDataset.Workspace; IPropertySet propSet = ws.ConnectionProperties; IVersionedWorkspace verWorkspace = (IVersionedWorkspace)ws; // m_userWorkspace;//wsStop; IVersion ver = (IVersion)verWorkspace.FindVersion(cboVersion.SelectedItem.ToString()); // update fc_Target ... feat = fc_Target.CreateFeature(); ...... feat.Store(); }
... View more
06-30-2017
10:13 AM
|
0
|
1
|
663
|
|
POST
|
Ken: I revised the code per your feedback. The error was gone. Thanks.
... View more
06-30-2017
04:45 AM
|
0
|
0
|
1973
|
|
POST
|
Before I sent my last message to you, I did try but got error: 'ESRI.ArcGIS.Geometry.IGeometry5' does not contain a definition for 'Intersect' and no extension method 'Intersect' accepting a first argument of type 'ESRI.ArcGIS.Geometry.IGeometry5' could be found (are you missing a using directive or an assembly reference?) . My code is below: bool feature_In_Other(IFeature f1, IFeature f2) { IGeometry g = (IGeometry)f1.ShapeCopy; // also tried IGeometry5 g = (IGeometry5)f1.ShapeCopy; ESRI.ArcGIS.Geometry.IGeometry5 pInGeometry = (ESRI.ArcGIS.Geometry.IGeometry5)f2.ShapeCopy; if (pInGeometry.Dimension == ESRI.ArcGIS.Geometry.esriGeometryDimension.esriGeometry2Dimension) { if (f1.ShapeCopy.GeometryType == esriGeometryType.esriGeometryPolygon) { ESRI.ArcGIS.Geometry.IGeometry5 pOverlapGeometry = g.Intersect(pInGeometry, ESRI.ArcGIS.Geometry.esriGeometryDimension.esriGeometry2Dimension); // Got error on this line } } } What's wrong in my code? Thanks.
... View more
06-29-2017
12:39 PM
|
0
|
2
|
1973
|
|
POST
|
Ken: Thanks for your code. Could you tell me what is the data type of pOverlapGeometry since I need to convert your VB into c#. Thanks.
... View more
06-29-2017
11:55 AM
|
0
|
4
|
1973
|
|
POST
|
In my ArcObjects program, I need to check where a polygon feature (named f_A here) is included / overlapped with another polygon feature (named f_B hear). Is there an ArcObjects method for the this check-up? Thanks.
... View more
06-29-2017
10:25 AM
|
0
|
9
|
2506
|
|
POST
|
Ted: You are right. The FC loaded is from a PGDB. Once I changed to FGDB, it works. Thanks.
... View more
06-28-2017
10:22 AM
|
0
|
0
|
911
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-18-2023 10:02 AM | |
| 3 | 07-14-2023 12:29 PM | |
| 1 | 04-02-2021 12:16 PM | |
| 1 | 07-24-2017 11:31 AM | |
| 1 | 04-04-2016 03:59 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-01-2025
11:58 AM
|