Tag Info

Hot answers tagged

5

If you create an ancillary table with the attributes (fkey,xcell,ycell), populated from the objectid and a gridding of the maximum Y coordinate (or centroid coordinate or upper-center envelope coordinate), then you could use SQL to update the table, with something like: UPDATE poly SET num = vtab.rownum FROM ( SELECT row_number() over (order ...


5

So far I have not found anything to help me ease the debugging experience of the ESRI COMException, and therefore decided to try and do something about it. I put the solution on gist.github.com for everybody to use. I used the resource ArcObjects error codes and copied all the error messages with codes and enums into a text file, about 1900+ lines. Not all ...


4

This is a licensing issue. A standalone ArcEngine license does not support multi-user editing. According to ESRI's documentation, multi-user editing geodatabase functionality only exists for ArcGIS Server licensing. Since you have tagged this question with ArcGIS Server, I am going to assume that you have an ArcGIS server license. What you need to do is ...


3

The best is to check ESRIs product information sites on its products, they describe its key features pretty well. In short words: ArcGIS Engine is a pure Developer Toolkit to embed ESRIs GIS Technology (Map View controls and so on) in individual Desktop and/or Mobile (Windows 6.5 and 7 mobile) Applications which are not intended as a pure GIS application ...


3

It sounds like you need to explode your single part polygon to multipart: e.g. Explode polygon feature private void button1_Click(object sender, EventArgs e) { IWorkspaceFactory pwsf = new FileGDBWorkspaceFactoryClass(); IWorkspace pws = pwsf.OpenFromFile(@"D:\temp\Yogesh\Vector_YV5612\Vector_YV5612.gdb", 0); IFeatureWorkspace pfeatws = pws as ...


3

Using GDAL >= 1.10.0 compiled with SQLite and SpatiaLite, it's quite simple. Suppose we want to order the labels from left to right. Firstly, we have to calculate the distance of each feature from a common reference on the left of all geometries (e.g. -180th meridian) and then order the geometries by distance. ogr2ogr FRA_adm1_temp.shp FRA_adm1.shp ...


2

The terminology confuses me too but as far as I have understood: ArcObjects is a set components with which you can write a program to control any of the ESRI products (ArcGIS Desktop, ArcGIS Server or ArcEngine). See "What is ArcObjects?". ArcEngine is the kernel of ArcGIS without the user interface. You can't do anything with ArcEngine alone, you use it ...


2

Not having the SDK is a major wrench in the gears here. If you have an MXD already on disk, you could use arcpy.mapping.AddLayer in a Python script on a MapDocument object and use MapDocument.saveACopy to save out. You can run ArcGIS' Python from an Engine install.


2

Have you tried using IMultiuserWorkspaceEdit. IWorkspaceEdit workspaceEdit = (IWorkspaceEdit)DB_Access.get_obj().ws; IMultiuserWorkspaceEdit multiuserWSE = (IMultiuserWorkspaceEdit)workspaceEdit; multiuserWSE.StartMultiuserEditing(esriMultiuserEditSessionMode.esriMESMVersioned); workspaceEdit.StartEditOperation(); IFeatureClass fc = ...


1

ESRI have "improved" their forum site and it's now hard to find any of the archived threads but I did find this code fragment in a thread from 2008. I've done very little in Engine so this may be a red herring? ICommand command = new ControlsZoomToSelectedCommandClass(); command.OnCreate(this.axMapControl1.Object); command.OnClick();


1

I have never tried them myself, but it looks like the iScreenDisplay interface has rotation functions: iScreenDisplay Also check out screenDisplay.DisplayTransformation.Rotation() Might be a good starting point.


1

Here is one way to get feature x and y coordinates (in VB though, just some minor syntax changes needed): Private Sub AddXY_Points() Dim fCursor As IFeatureCursor Dim aFeature As IFeature Dim thePoint As IPoint fCursor = fClass.Update(Nothing, False) aFeature = fCursor.NextFeature Do Until aFeature Is ...


1

The first step is to set up your data so that you can retrieve the coordinates. You need two create two separate fields X and Y or Lat/Long whichever makes the most sense for your data and coordinate system. From there you need to right click and select "Calculate Geometry". This should calculate the X and Y coordinates for all of your points in the ...


1

based on the conversation here is the code: IMap mapControl = form.axMapControl2.ActiveView.FocusMap; ICompositeLayer basemapCompositeLayer = (ICompositeLayer) mapControl.Layer[0]; ILayer basemapSubLayer = basemapCompositeLayer.Layer[0]; if (basemapSubLayer.Valid) { if (basemapSubLayer is IFeatureLayer) { IFeatureLayer featureLayer1 = ...


1

In the absence of a more detailed description of your system, I would suggest to use Versioning when there are multiple editors. Study this document which explains every thing you need to know with the same parcel division example. If you use above given method you do not have to import or export the data.


1

Use the IRasterProps interface, it appears to have a MeanCellSize property which returns the cell size. http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001q000006t1000000


1

Cast ActiveView as IMap or IPageLayout and see which sticks.


1

i found this solution and it's works : right click in the dll file and click register select desktop and click register or use : http://support.esri.com/en/knowledgebase/techarticles/detail/37639


1

i think it was a problem in some geometries so i execute this tools : Repair Geometry (Data Management) and now the labels appear nicely link : http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000003v000000


1

I came across the same problem this morning. After navigating through the arcgis documentation, I finally found a way to remove these lines. In c++ : where ipPieChartSym Is the pie chart symbol you created to assing to the renderer. IMarkerBackgroundSupportPtr ipMarkerBackgroundSupport(ipPieChartSym); IMarkerBackgroundPtr ipMarkerBackground; ...


1

Since it's unlikely that any two polygons have exactly the same northmost extent, you will need some compromise to order by both north-to-south and east-to-west. Personally, I'd use either bounding boxes (looking at first maxY, then minX) or centroids (looking at first y, then x). I'd decide how much tolerance I'd allow and still consider y values to be ...


1

This is how you could do it in VBA using the IFeatureConstruction interface: The code initially builds a bunch of polylines and stores them in a GeometryBag. They intersect at their ends and create a grid which converts into a set of polygons. Public Sub Test() ' Get a handle on the first layer in map ' This is an empty polygon shapefile Dim pMXdocument As ...


1

Did you step up the right visible Scale range for each layer in ArcMap?


1

I can provide anecdotal evidence that a compressed FGDB is indeed faster than an uncompressed one on our sloooow network. Here are some stats: ArcGIS 10 FGDB accessed by an ArcGIS 10 MXD 142 Feature Classes 24 Tables Compressed FGDB size - 794 MB Uncompressed FGDB size - 1.66 GB The MXD opens faster when connected to the uncompressed GDB. However, ...


1

Might be a file association or system environment variable issue on the users' computers (or Citrix user profile if running through that). Pick a user guinea pig and see if the script can be executed manually.



Only top voted, non community-wiki answers of a minimum length are eligible