POST
|
Thank you Michael. We ended creating also a backup of the bin directory in each PC, as you suggested.
... View more
01-01-2018
02:32 PM
|
2
|
0
|
13
|
POST
|
The steps above did not work. After one week or so I am back to the bad image message by using the 10.4.1 version. On top of that, another PC with ArcMap 10.5.1 just displayed also the bad image message. We are in crisis mode around here ... One weird thing is that we have similar configuration in several computers and not all of them have the bad image issue. So far, only the two newest PCs displayed the message. We are using McAfee antivirus (All Access-Total Protection). Do you guys have the same antivirus? Just as a try, I have turned off the QuickClean schedule inside McAfee. This QuickClean by default remove things like "Temporary files", "Lost file fragments", and "ActiveX controls"; which scares me.
... View more
11-14-2017
05:47 AM
|
2
|
2
|
13
|
POST
|
We had a similar issue. Reinstalling ArcMap 10.5.1 many times worked for one day or so, and then again, the same bad image error. Following the advise of an ESRI support analyst, we uninstalled ArcMap one more time and made a deeper cleaning by deleting folders and registry keys at 1. C:\ Program Files(*86) \ common files \ ArcGIS 2. C:\ program files(*86) \ ArcGIS \Desktop 3 3. C:\ users \ <User profile> \ AppData \ Roaming \ ESRI, 4. C:\ users \ <User profile> \ Documents \ ArcGIS, 5. Open your registry editor, HKEY_LocalMachine \ Software \ Wow6432Node \ ESRI 6. HKEY_CurrentUser \ Software \ ESRI After that, we installed a previous version (10.4.1), which has been working without issues for a few days now. In summary, we think that we have fixed the issue, but we are not sure if it was the deeper cleaning after uninstalling or just using the older version of ArcMap what solved the problem. I hope this helps.
... View more
11-07-2017
06:43 AM
|
1
|
3
|
39
|
POST
|
As you mentioned that your area is flat, I would recommend you to use "Fill Sink Plus" (Fill_Sinks_Plus - LAGO Consulting & Services LLC) instead of the Fill Sink Tool. The latest version of "Fill Sink Plus" has been upgraded and now the user can enter existing culverts and drains as shape files, which may be useful in urban areas.
... View more
01-16-2015
05:00 AM
|
0
|
0
|
35
|
POST
|
Thank you Frank! Just to add that I needed to add the reference ESRI.ArcGIS.Editor and to insert the line using ESRI.ArcGIS.Editor;
... View more
10-22-2014
05:49 AM
|
0
|
0
|
9
|
POST
|
I have coded a C ustomized Command ( or b utton) in ArcMap by using the ArcObjects library in C#. I would like to check if there is any ongoing editing session (and close it) when the user presses that button. Is there any way to do that?
... View more
10-21-2014
11:51 AM
|
0
|
2
|
1426
|
POST
|
Thank you Owen, but when I try to cast " IPointCollection " on " IFeature " I get an exception. I have tried to cast without success other objects on "IFeature", such as "IPolylineArray" and "IPolyline". Please let me know if you find a way to get an "IPointCollection" from an "IFeature".
... View more
10-16-2014
04:44 AM
|
0
|
2
|
52
|
POST
|
I am trying to get to the vertices coordinates of a polylines feature layer in C#. I can get each "IFeature" object in the feature layer (in a similar way as can be done for points feature layers Getting raster cell indexes from point coordinates), but I do not know how to get the polyline vertices from there.
... View more
10-15-2014
01:59 PM
|
0
|
4
|
2569
|
POST
|
Hi again, After the help above from Martin, the help from Jamie P. at ESRI Support Team, and a trial and error process, please find below a working C# code that solves this problem. If you find a better way to accomplish this, please let me know. Thanks! private int getPoints(IRaster raster, IFeatureLayer featureLayer, out long[] kxR, out long[] kyR) { IRasterProps rasterProps = (IRasterProps)raster; // Raster properties // get coordinates (xF,yF) of each point in the feature layer --------------------------------------- IQueryFilter queryFilter = new QueryFilterClass(); // Set up the query by default int nP = featureLayer.FeatureClass.FeatureCount(queryFilter); // number of points Debug.Print("Number of points in shape file= " + nP.ToString()); double[] xF = new double[nP]; double[] yF = new double[nP]; for (int kP = 0; kP < nP; kP++) { IFeature pF = featureLayer.FeatureClass.GetFeature(kP); xF[kP] = pF.Extent.XMax; // after help from Martin Maretta yF[kP] = pF.Extent.YMax; Debug.Print("Point " + kP.ToString() + " at (" + xF[kP].ToString() + "," + yF[kP].ToString() + ")"); } // convert coordinates (xF,yF) to raster spatial reference (xR,yR) ----------------------------------- double[] xR = new double[nP]; double[] yR = new double[nP]; IFields pFields = featureLayer.FeatureClass.Fields; ISpatialReference sr1 = pFields.Field[pFields.FindField(featureLayer.FeatureClass.ShapeFieldName)].GeometryDef.SpatialReference; ISpatialReference sr2 = rasterProps.SpatialReference; if (sr1.Name.Equals(sr2.Name,StringComparison.OrdinalIgnoreCase)) { // spatial references are the same => no need of reprojection xR = xF; yR = yF; } else // after help from Jamie P. from ESRI Support Team { //Point to project IPoint point = new PointClass() as IPoint; for (int kP = 0; kP < nP; kP++) { point.PutCoords(xF[kP], yF[kP]); //Geometry Interface to do actual project IGeometry geometry = point; geometry.SpatialReference = sr1; geometry.Project(sr2); point = geometry as IPoint; point.QueryCoords(out xR[kP], out yR[kP]); } } // convert from coordinates (xR,yR) to grid cell indexes (kxR,kyR) in raster file -------------------------- IPnt cellSize = rasterProps.MeanCellSize(); kxR = new long[nP]; kyR = new long[nP]; int kI = 0; for (int kP = 0; kP < nP; kP++) { kxR[kI] = (int)Math.Floor((xR[kP] - rasterProps.Extent.XMin) / cellSize.X); // x index starts at XMin kyR[kI] = (int)Math.Floor((rasterProps.Extent.YMax - yR[kP]) / cellSize.Y); // y index starts at YMax if (0 <= kxR[kI] && kxR[kI] < rasterProps.Width && 0 <= kyR[kI] && kyR[kI] < rasterProps.Height) { Debug.Print("Point " + kP.ToString() + " indexes= (" + kxR[kI].ToString() + "," + kyR[kI].ToString() + ") => Inside raster area"); kI++; // valid index } else { Debug.Print("Point " + kP.ToString() + " indexes= (" + kxR[kI].ToString() + "," + kyR[kI].ToString() + ") => Outside raster area"); } } Debug.Print("Number of points inside raster area= " + kI.ToString()); if (kI < nP) { // some points were discarded => TODO: remove unused array space nP = kI; } return nP; }
... View more
11-05-2013
12:39 PM
|
0
|
0
|
12
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|