|
POST
|
You will need to compile your code under ArcGIS 9.2.
... View more
09-08-2010
05:48 AM
|
0
|
0
|
385
|
|
POST
|
If you use Visual Studio and add a deployment project to your solution to create an installer, then the project contains a dependency list. This list will show you what your app requires.
... View more
09-07-2010
08:53 AM
|
0
|
0
|
551
|
|
POST
|
IGxLayer is only available in ArcGIS Desktop. In the developer help, the topic for each interface and class has a Product Availability near the top of the page that lets you know what products are supported. You can use ILayerFile to work with layer files in any of the products.
... View more
09-01-2010
06:20 AM
|
0
|
0
|
487
|
|
POST
|
Because the earth isn't flat, conversion from a linear unit to decimal degrees (and vice versa) isn't constant. One decimal degree converted to kilometers will vary depending on where you are on the earth's surface. One way to do a realistic conversion is to use a projected coordinate system. Which PCS you use depends on where you are. The process would be to project your center point to a PCS that makes sense for where you are. Since you are wanting to convert to kilometers, a PCS that uses meters for its linear unit would make things easier (UTM for example). After your point is projected, you can create your envelope by adding/subtracting from the center point's x,y coordinates. Once the envelope is created, you can project it back to the original geographic coordinate system if you need to.
... View more
08-31-2010
11:35 AM
|
0
|
0
|
501
|
|
POST
|
The method on ISegmentCollection takes the start index, the number of segments to return, and an array which gets populated with the returned segments. The method on IGeometryBridge takes in the segment collection you want to query, the start index, and the array to populate with the results. As shown in the C# example, you specify how many segments you want returned by dimensioning the output array to that number and initializing each index position. It is done this way because the old method on ISegmentCollection uses a C-style array, meaning it is expected that all index positions in the array are sequential in memory. Not all languages implement arrays in this manner. These languages allow index positions to be anywhere in memory (implemented more like a linked list than a sequential memory block). This is why the method on IGeometryBridge requires you to initialize each index position within the output array. The array defines where each index position resides in memory and all the method does is update the object instance at each position.
... View more
08-31-2010
05:17 AM
|
0
|
0
|
329
|
|
POST
|
Thomas, What's the better way of catching the objects that you've found? I'm coding in C# so can't use GetType as it just returns System.__ComObject (other casts I've tried return null for some reason. I need to get a reference to the IWorkspace from the currently selected IGXObject. cheers, Brian O'Hare Brian, try the following code. You'll have to translate to C#. If TypeOf gxObject Is IGxDataset Then
Dim gxDataset As IGxDataset = DirectCast(gxObject, IGxDataset)
Dim dataset As IDataset = gxDataset.Dataset
Dim workspace As IWorkspace = dataset.Workspace
End If
... View more
08-30-2010
04:43 AM
|
0
|
0
|
909
|
|
POST
|
You access records in a table via a query. You then loop through the cursor returned by that query. To get all records in a table, pass in a null reference for the query filter. Dim cursor As ICursor
Set cursor = table.Search(Nothing, False)
Dim row As IRow
Set row = cursor.NextRow
Do While Not row Is Nothing
' do something
Set row = cursor.NextRow
Loop
... View more
08-30-2010
04:25 AM
|
0
|
0
|
1022
|
|
POST
|
IArea uses whatever units are defined by the geometry's spatial reference. If the spatial reference is not set, then the units are unknown. To convert the area units to a specific unit, you apply the appropriate conversion factor. In cases where the geometry has a geographic coordinate system, you will want to project that geometry into an appropriate projected coordinate system in order to have linear units to use for the conversion.
... View more
08-27-2010
05:23 AM
|
0
|
0
|
391
|
|
POST
|
Create the context menu by implementing IMenuDef. Call the context menu in your tool's OnContextMenu method: Public Function OnContextMenu(ByVal x As Integer, ByVal y As Integer) As Boolean Implements ESRI.ArcGIS.SystemUI.ITool.OnContextMenu
' Get the tool's context menu and show it.
Dim uid As New UID
uid.Value = "{" & ContextMenu.ClassId & "}"
Dim menu As ICommandBar = DirectCast(m_application.Document.CommandBars.Find(uid), ICommandBar)
menu.Popup()
' Return True so that ArcMap's Data Frame context menu is suppressed.
Return True
End Function
... View more
08-24-2010
09:16 AM
|
0
|
0
|
636
|
|
POST
|
It's most likely a missing reference. The FeatureClass class is in the Geometry library so make sure you've added it as a reference.
... View more
08-19-2010
01:05 PM
|
0
|
0
|
339
|
|
POST
|
Looks like you're using the same feature buffer object over and over inside your loop. You need to create a new feature buffer each time (within the loop).
... View more
08-19-2010
01:00 PM
|
0
|
0
|
393
|
|
POST
|
A field's visibility setting applies only for the document you've added the table to. It isn't stored in the database, shapefile, or whatever other datasource you may be using.
... View more
08-19-2010
05:35 AM
|
0
|
0
|
371
|
|
POST
|
To close the window, call IDockableWindow.Show and pass in False.
... View more
08-17-2010
05:16 AM
|
0
|
0
|
392
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-20-2014 05:29 AM | |
| 1 | 02-01-2011 04:18 AM | |
| 1 | 02-04-2011 04:15 AM | |
| 1 | 01-17-2014 03:57 AM | |
| 1 | 10-07-2010 07:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|