|
POST
|
You don't need permissions on all the featureclasses to start an edit session on the workspace. You do need permissions on some of them of course. Can you start the edit through the ArcMap interface? Do you have versioning on the featureclasses? Is the editor set to do edit with do/undo? Do you have some featureclasses loaded in some layers in the map that have edit permissions? Can you re-run the grant edit on the featureclasses you need to edit?
... View more
05-22-2012
12:21 PM
|
0
|
0
|
1930
|
|
POST
|
If you put an exception handler do you get any kind of exception or just arcmap crashing?
... View more
05-22-2012
11:56 AM
|
0
|
0
|
1930
|
|
POST
|
For file gdb, I user IDataset.delete on the workspace level to delete the gdb rather than .net delete functions.
... View more
05-15-2012
09:29 AM
|
0
|
0
|
533
|
|
POST
|
Well our organization is on a maintenance contract so we get unlimited support and upgrades. We have a few dozen ArcInfos and spatial analysts, arcviews, server, some engine and a few other extensions, so lots of support money. Not all distributors have the same support models. As far as I know, Canada does not have a pay as you go model except for entreprise support.
... View more
05-14-2012
10:43 AM
|
0
|
0
|
2842
|
|
POST
|
The forums are as good as the people contributing to them. Unfortunately, as a user, I cannot afford much time for testing and experimenting some times the best I can do is offer suggestions of places to look. The cost of support varies by distributor regions and the types of contracts you have, I would find it very difficult to develop AO without some form of official support from esri.
... View more
05-14-2012
09:02 AM
|
0
|
0
|
2842
|
|
POST
|
If you don't get the result you expect with the sample code, I would suggest you go to esri tech support. Either the application is behaving as expected (your expectation doesn't match) or there is a bug , either way only esri can confirm it.
... View more
05-14-2012
05:11 AM
|
0
|
0
|
2842
|
|
POST
|
Not sure why you are using single quotes in C#... They are for defining a char (char i = 'i';) Passing in a string array should work fine. If it is not compiling check if you have option strict on. If you do it is a good thing, it just means you can't pass a string array into a property expecting an object without doing as explicit type conversion. The following compiles ok on my machine, I haven't run it because I don't have the shapefiles and can't be bothered right now.
Geoprocessor gp = new Geoprocessor();
Intersect Inter = new Intersect();
string[] features = {"c:\\shape1.shp", "c:\\shape2.shp"} ;
Inter.in_features = features as object;
Inter.out_feature_class = "c:\\result.shp";
gp.Execute(Inter, null);
... View more
05-11-2012
10:36 AM
|
0
|
0
|
1474
|
|
POST
|
2) X,Y,Z coordinates are commonly referred to as 2.5D. For points it doesn't make much of a difference but for polygons it does. It means a polygon's topology is defined in 2D space and the Z just adds info, a polygon cannot loop back on itself in the 3rd dimension. For example a cliff with an overhang cannot be modeled as X,Y,Z coordinates. That means that for drawing purposes with a map control, the Z is ignored. I am also pretty sure that transforming from one ellipsoid to another does not change the Z. 3) For greenland, you could use a stereographic projection to create the circle and then project it back out to mercator. The problem is it the same stereographic projection cannot be applied everywhere . The IConstructGeoddetic interface allows you to create geodetically correct circles. You can also look at http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000021m000000 Military Analyst used to be free at some point I am not sure it is still the case.
... View more
05-11-2012
09:25 AM
|
0
|
0
|
6855
|
|
POST
|
Good point Edgar, I would definitely not release the mapcontrol. However the mapcontrol has a map property which is read and pass by ref. You could declare an IMap variable assign the mapcontrol.map property, load a new map (LoadMxFile), and com release the variable that (hopefully) still points to the original map. Its' all a kludgy mess at this point anyway but such is my experience with lock files... Another thing to consider when deleting files accessed by AO, is AO has delete methods such as IDataset.Delete and others. They will usually work even with lock files if the lock files are owned by the process calling the delete method. I have found this much more reliable because of lock files than calls to .net file system methods for deleting files and folders.
... View more
05-11-2012
07:06 AM
|
0
|
0
|
2303
|
|
POST
|
In the initial post you mentioned you used IMapDocument.Open. On the same interface there is a close method. If you LoadMxFile, my understanding is you are loading one of the maps on the document but not the document itself. If so I would not be surprised if the next call to load document does not release the first map document correctly. If you keep an variable that references the map control's map, load a new map then use the comreleaser release on the variable referencing the first map, do you get any different result?
... View more
05-10-2012
01:10 PM
|
0
|
0
|
2303
|
|
POST
|
Which transformation are you using to go from Clarke1866 to WGS84? Keep in mind, this is not really projecting the data, Clarke1866 and WGS84 are ellipsoids (Well not WGS84 but that gets complicated) They are not coordinate systems, you could have Geographic data NAD27 (Clarke1866), NAD83 (GRS80) or WGS84 (composite.) I am not too sure what you mean by going from 3D to 2D coordinate systems. 3D coordinate systems usually store the elevation above mean sea level (which is a whole different problem since the sea isn't actually level.) All map data is defined in 2D coordinate system because maps and computer screens are flat. In order to do distance calculations over large areas, geodetic lines are used to calculate distances (along great circles.) or geodesiccircle to construct a circle that fits the ellipsoid. The military analyst libraries has so methods for that. I don't know if the lambert coordinates are correct or not. It depends where you put the origin. Lambert usually uses metres so depending where the central meridian is and where the vertical axis starts it could be correct.
... View more
05-10-2012
09:39 AM
|
0
|
0
|
6855
|
|
POST
|
Yes it should but I don't know how much distortion you will get changing the datum between clark66 and wgs84... You are still using the same coordinate system (geographic) and changing the datum. If you project to a projected coordinate system, you should see more of a difference. Usually building a circle implies using a radius, in geographic coordinate systems, the radius is provided as a distance in decimal degrees. Decimal degrees are an angular unit so they don't make much sense as a distance.
... View more
04-30-2012
08:48 AM
|
0
|
0
|
6855
|
|
POST
|
In my experience projecting large curves produces uneven results. Same as projecting large features with few vertices. In the case of large rectangles (several hundred KM sides), the corners are in the correct location but the sides are still straight when they should be curved to follow the projection change. Same thing with curves the start and end and radius is correct but the edge is not skewed to follow the new projection. If you convert your circle to a dense polyline (series of small straight segments) and then project it, the result should more closely resemble what you expect.
... View more
04-30-2012
08:16 AM
|
0
|
0
|
6856
|
|
POST
|
Can you merge (union) all the segments inside the buffer into a single polyline? You could use the polyline's IProximityOperator to querynearest on the point and return a point.
... View more
04-20-2012
12:00 PM
|
0
|
0
|
1420
|
|
POST
|
I am looking for a way to get all the dockable windows open in an arcmap session. I am able to get all the IDockableWindowDef for all the registered dockable windows. However from there I can get the name and caption of the dockable window but not the IDockableWindow... Also I am really only interested in the visible dockwindows not all of the registered ones. Any one know how I can get just the visible IDockableWindows without knowing the guids? Thanks
... View more
04-20-2012
10:48 AM
|
0
|
0
|
798
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-02-2024 10:26 AM | |
| 1 | 07-05-2024 08:45 AM | |
| 1 | 10-05-2022 02:19 PM | |
| 6 | 03-27-2017 01:16 PM | |
| 1 | 05-05-2016 05:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-28-2025
07:37 AM
|