|
POST
|
I think you might only be able to do this with a timer (which runs on a seperate thread, so beware of threading.) I tried it and looks like the view waits for the processing (sleep) to be finished on the main thread before it redraws.
... View more
11-19-2013
06:40 AM
|
0
|
0
|
1189
|
|
POST
|
Do you have a TOC where the layers are listed? Is the map extent in the wrong area? Can you use the identify or select tool on the features? Can you open the table view for the layers and see the rows?
... View more
11-19-2013
06:37 AM
|
0
|
0
|
623
|
|
POST
|
ILayer interface properties: maximumscale minimumscale
... View more
11-19-2013
06:35 AM
|
0
|
0
|
1040
|
|
POST
|
Is the data available from the deployment machine? What kind of data is it? Is it local files, sde?
... View more
11-18-2013
03:31 AM
|
0
|
0
|
623
|
|
POST
|
ya, if you refresh the background, it is going to refresh everything. Think of a map as a series of transparent layers one ontop of the others. If you want to refresh to top layer (foreground), no problem, just remove the top layer, throw it away and make a new one and place it on top. If you want to refresh a middle layer (geo selection for example), you throw away that layer and everything on top, graphics, graphics selection, foreground and redraw all those, you keep those bellow. The background is like the bottom layer so there is not much to save with a partial refresh, specially since you don't pass in an extent to limit it (null means refresh everything.) You might want to look at basemap layers to improve rendering.
... View more
10-29-2013
11:04 AM
|
0
|
0
|
660
|
|
POST
|
The developer help requires activeX controls enabled. Due to security concerns on our workstations, I can only enable signed activex control with a certificate. I need to put the certificate in my internet options. I can find no reference to any esri certificate or intermediary signing authority. Does any one know where I can find it?
... View more
10-29-2013
05:21 AM
|
0
|
0
|
455
|
|
POST
|
It depends on what you need to refresh. By refreshing everyting, everything gets redrawn so flickering will happen. If you look at the mapclass you can get from the map control, there is an IViewRefresh interface that has a partial referesh and other methods to better contain the scope of the refresh.
... View more
10-29-2013
04:53 AM
|
0
|
0
|
660
|
|
POST
|
1. IFeatureCursor pFeatureCursor = IChecklayer.Search(null, false); pFeatureCursor = IChecklayer.Search(null, false); 2. Spatial query will return fewer features than all of them and these features will be known to overlap so no need to test them all individually. As far as perfomance, putting metrics in and trying it both ways is the only way to know for sure which is best. all my suggestiongs are the obvious things I would try to get a faster process. Bbefore you do anything else, I suggest you get the time at the start and end and report the difference, that way you can evaluate any change against a baseline.
... View more
10-25-2013
06:19 AM
|
0
|
0
|
504
|
|
POST
|
There are a few optimizations I can think of. First off, in your GetFeature method, you create a new cursor every time. Cursor take a lot of processing. Re-using the cursor might give you a performance boost. That would also avoid having to release it every time. I also notice you keep all the fields. You can stream line your cursors by defining the subfield of a query filter to be only the objectid and the shape field, the where clause can be empty. In GetFeatures, you search all the features and do a relational operation, you could do a spatialfilter query instead and get only features that overlap returned. If it is possible memory-wise, you could build a dictionary or two dimensional array with the objectId and shape for the IcheckLayer by cursoring through them once to build the dictionary, then you could loop through the dictionary instead. Finally, you can look at the Overlay toolbox in the analysis tools. Intersect, for example, will keep all the overlaping sections of both featureclasses with the attributes from both. You could get the output features and get the objectid of both original featrures.
... View more
10-23-2013
05:04 AM
|
0
|
0
|
504
|
|
POST
|
Performing a spatial query is usually a means to an end. Without knowing what is the goal of performing the spatial query, the answer is to run the code you have specifying all the input parameters. That will perform a spatial query.
... View more
10-21-2013
04:58 AM
|
0
|
0
|
624
|
|
POST
|
actually posting the error message would be most helpful. This said looking at your code, you don't seem to make a provision for the layer not being found... Also you seem to be looping through all the layers in the map including the layers inside the composite layers. Then if the layer is composite, you loop through the layers inside that. If the the layer is a featurelayer, you loop again through all the layers on the map again but only the ones at the root level... I don't understand why the code is so complicated. Based on how you described what you want to do, you can create a .net list of Ilayers from all the layers in the map and bind it to your combobox1 and set the name property as the display property. Then when the selection changes, you can use the selected item from combobox1 which is an iLayer, to look through its fields.
... View more
10-17-2013
07:13 AM
|
0
|
0
|
696
|
|
POST
|
Yes there is, it is not specific to .net. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//004600000022000000
... View more
10-16-2013
08:43 AM
|
0
|
0
|
664
|
|
POST
|
new in arcgis 10 is binding to the product in addition to getting a license. Look at the runtimeManager class.
... View more
10-16-2013
06:22 AM
|
0
|
0
|
664
|
|
POST
|
ArcObjects engine and desktop are still 32 bit. When you compile, make sure you compile only for 32bit (x86) not any CPU. If you compile for any CPU it will only work on 32 bit systems. If you compile for 32bit specifically, it will force the application to run in 32 bit mode on a 64 bit system.
... View more
10-11-2013
04:42 AM
|
0
|
0
|
354
|
|
POST
|
The documentation for Polyline only lists a ton of interfaces. It does not show a property of length in the SDK! And since we are under a tight schedule I do not want to write a ton of code only to find I've gone down a wrong path. So lot's of questions at this moment. Neil said the IPolyline had a length field, not Polyline. IPolyline is an interface on Polyline. PolylineClass has about 50 interfaces and 5 or 6 of which I regularly use. Reading the documentation is much more efficient than writing a ton of code, but you have to spend the time up front to understand this difficult API...
... View more
10-10-2013
09:49 AM
|
0
|
0
|
1415
|
| 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
|