|
POST
|
try this: QueryFilter.SubFields = "FieldA" QueryFilter.AddField("FieldB")
... View more
07-01-2010
11:39 AM
|
0
|
0
|
596
|
|
POST
|
see http://stackoverflow.com/questions/2867247/how-do-i-get-the-dropdown-selection-from-a-command-button-in-arcobjects
... View more
06-29-2010
09:26 AM
|
0
|
0
|
449
|
|
POST
|
have you tried running the tool from python with in_memory as part of the path? http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002w0000005s000000.htm
... View more
06-28-2010
12:53 PM
|
0
|
0
|
520
|
|
POST
|
You might try an in-memory featureclass http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//001m0000002q000000 If that doesn't play nicely with the geoprocessor, maybe try it with the IFeatureConstruction interface. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/ConstructPolygonsFromFeatures_Method/0025000002v6000000/
... View more
06-28-2010
09:55 AM
|
0
|
0
|
520
|
|
POST
|
Are you creating it repeatedly in a loop? Did you try calling Marshal.ReleaseCOMobject on it once you're finished with it?
... View more
06-25-2010
10:05 AM
|
0
|
0
|
1214
|
|
POST
|
Does your shapefile have a spatial index? As I recall, a shapefile index consists of a minimum bounding rectangle (MBR) for each road. If you had, for example, a nationwide shapefile of interstate highways where each highway is a single feature, queries would perform slower than a shapefile of the same highways split at state boundaries. With the unsplit shapefile the search intersects many more MBR's. For each intersected MBR further processing (and file i/o) is needed to see if there really is an intersection. With highways split at state boundaries, fewer MBR intersections occur. You also might consider using esriSpatialRelEnvelopeIntersects. Also try setting IQueryfilter.SubFields to just the fields you need, and consider passing TRUE for Search recycling arg. Is there a way that I can determine if the query will return no results without calling the NextRow() function? Try IFeatureclass.FeatureCount
... View more
06-25-2010
07:39 AM
|
0
|
0
|
430
|
|
POST
|
On 9.3.1 I can open Layer>Properties... then on the General tab I can type and hit the enter key and the escape key without the dialog closing. If you write a custom class that inherits datagridview and override ProcessCmdKey, does it get called for enter/escape?
... View more
06-23-2010
01:45 PM
|
0
|
0
|
1544
|
|
POST
|
Even if some other desktop app is running, you still need to register the process you're running within via IAoInitialize.Initialize. You only need to reference the IAoInitialize from the other process to determine the esriLicenseProductCode that it is running. In most cases you could determine this using first word in IApplication.Caption, but this can be set programmatically, so is not completely reliable. I'm guessing you want to write a standalone app that goes ahead and uses an expensive license if the user has a desktop app running at that license level. Is this correct? One floating license allows multiple apps to run on a machine for a particular license level. For example, if your organization has floating seats of both ArcInfo and ArcEditor, it would make sense for a standalone app to initialize using ArcInfo if arcmap is already running with an ArcInfo license - it won't consume any more licenses. OTOH, I'm pretty sure if arcmap is running with ArcInfo and then you initialize your standalone app with ArcEditor, you tie up an arceditor license unnecessarily.
... View more
06-23-2010
01:22 PM
|
0
|
0
|
1636
|
|
POST
|
For question 2, please post your code. question 3: If I were going to work with SDO geometry as a featurelayer in 9.3.1 or earilier, I would write a plugindatasource. See this sample. Instead of having it read from a text file though, I'd have it read from Oracle. I'd use Oracle's SDO_UTIL.TO_WKBGEOMETRY to convert into WKB, then use IWkb.ImportFromWkb to convert into IGeometry. IWkb is implemented by point, polyline and polyline classes (even though this is not documented). Again, at 10.0 the QueryLayers do all this for you.
... View more
06-18-2010
08:28 AM
|
0
|
0
|
979
|
|
POST
|
All featurelayers are baselayers, but not all baselayers are featureLayers. so instead of this: pLayer = New baseLayer try this: pLayer = New featureLayer Also you should make featureLayer implement IFeatureLayer.
... View more
06-18-2010
07:47 AM
|
0
|
0
|
1345
|
|
POST
|
Something I really like about .NET (which VB6 lacks) is generics. While generics are great, you cannot cast a list of IEnvelopes to a list of IGeometrys in .NET 3.5 (covariance). Supposedly .NET 4.0 supports this, but I haven't tried it yet with arcobjects interfaces. http://msdn.microsoft.com/en-us/library/dd799517.aspx Public Sub Test()
Dim list1 As List(Of IEnvelope) = New List(Of IEnvelope)()
' compile error
Dim list2 As List(Of IGeometry) = CType(list1, List(Of IGeometry))
End Sub
Since there is no inheritance between IArea and IPolygon, even at 4.0 I don't think you'll be able to cast a List of IPolygons to a List of IEnvelopes.
... View more
06-18-2010
06:42 AM
|
0
|
0
|
1345
|
|
POST
|
What is the GUI for the Geoprocessor object not GeoProcessor? Please elaborate.
... View more
06-17-2010
01:25 PM
|
0
|
0
|
1214
|
|
POST
|
At 10.0 you might try a Query Layer if you want to bypass arcsde. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_is_a_query_layer/00s50000000n000000/
... View more
06-17-2010
01:23 PM
|
0
|
0
|
979
|
|
POST
|
Here's the key I have (on Vista64): HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{5374EC4C-1AA2-4829-A811-DE624ECEC23F} Do you have this key (or its 32 bit equivalent) ? Does this code work for you? public static void TestGp()
{
Guid g = new Guid("5374EC4C-1AA2-4829-A811-DE624ECEC23F");
Type t = Type.GetTypeFromCLSID(g);
Debug.Print(t.ToString());
GeoProcessor gp = Activator.CreateInstance(t) as GeoProcessor;
Debug.Print(gp.OverwriteOutput.ToString());
}
... View more
06-17-2010
01:04 PM
|
0
|
0
|
2121
|
|
POST
|
Creating an instance of the COM component with CLSID {5374EC4C-1AA2-4829-A811-DE624ECEC23F} from the IClassFactory failed due to the following error: 80010105 Sounds like this might be an install issue ... if you search your registry, do you find this key? If not, consider re-installing.
... View more
06-17-2010
12:01 PM
|
0
|
0
|
2121
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-17-2015 10:41 AM | |
| 2 | 11-15-2012 05:22 AM | |
| 4 | 09-29-2011 08:20 AM | |
| 3 | 12-04-2015 08:50 AM | |
| 1 | 04-08-2010 09:34 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|