arcgis

How can I call a javascript function from inside a method?

I am inside of... public class bgchange : IMapServerDropDownBoxAction { void IServerAction.ServerAction(ToolbarItemInfo info) { Some code... and after "some code" I want to trigger [WebMethod] public static void DoSome() { } Which triggers some javascript. Is this possible? Ok, switch methods here. I was able to ca...

Initalizing ArcEngine, Make it Faster?

I am currently working on a C++/COM project using ArcEngine(From ESRI). Aside from the fact that there is little to no support in terms of documentation (SDK is there.) Anyways, i am wondering if anyone here has had any experience in making the initialization process of ArcEngine faster. Right now it takes 30-35 seconds just to initializ...

ArcGIS Server - snap a point to a line

If I have a point, and a road network, how do I find the nearest point ON the road? i.e. this is like snapping the point to a line/road. I am using ArcGis server 9.3 with Java 5 and Oracle 10g. I am using the ST functions and NetworkAnalyst via the java api. Thanks. ...

ArcGIS Server - compare routes

I've got a list of points, and a route that an external provider has generated through those points. I would like to generate a route using those same point with my own road network. Then I want to be able to detect if there is any significant difference between the two routes. One suggestion is that for the 2 routes, we find out w...

Default Values for Dates in ArcGIS

Hello, In Microsoft SQL I can use the GETDATE() function as the default value for a DATETIME field. I'd like to be able to do the same kind of thing for a date field in an ArcGIS geodatabase. Is this possible, or am I limited to literal values? My geodatabase is using ArcSDE 9.1. The Feature Class with the defining attributes is versio...

ArcGIS MapControl and Ms Access delay map re-draw?

Hello, This pertains to embedding ESRI MapControls into Access Database Forms. I have two access files, split into a frontend and backend. My backend is also a PersonalGeoDatabase that ArcGIS uses to store a feature class for display on a From embedded ESRI map control. The feature class stores polylines, points, and polygons which a...

Heightmap generation algorithm?

I was looking around the internet and couldn't find a perfect algorithm for this particular problem: Our customer have a set of points and weight data along with each point as can be demonstrated by this image: Of which, we have a GIS program that could generate a "heightmap" or a sort of terrain data from these points and their weig...

Does anyone know how to make Arc GIS Maps render faster?

I noticed Arc Gis maps render really slow. When you zoom, it renders slow. When you pan, it renders slow. Does anyone have any suggestions on making the maps render much faster similar to google maps and microsoft virtual earth. ...

Mapserver and Flex

Anyone know how I can integrate Flex and Mapserver in much the same way Flex and ArcServer talk? Thanks! ...

Threading and ArcGIS

Hi! I have just stumbled across the Backgroundworker object, and it seems like the tool I'm looking for to make my GUI responding while performing calculations. I am writing IO plugins for ArcGIS. I am doing some data processing outside ArcGIS, which works fine using the backgroundworker. But when I'm inserting the data into ArcGIS, th...

How do you figure the solar diffuse proportion and transmissivity value from data?

The data can be found here: http://rredc.nrel.gov/solar/old_data/nsrdb/bluebook/data/24283.SBF How do I figure the solar diffuse proportion and the transmissivity value from what's there? Anyone know? Thanks! ...

BackgroundWorker OnWorkCompleted throws cross-thread exception

I have a simple UserControl for database paging, that uses a controller to perform the actual DAL calls. I use a BackgroundWorker to perform the heavy lifting, and on the OnWorkCompleted event I re-enable some buttons, change a TextBox.Text property and raise an event for the parent form. Form A holds my UserControl. When I click on som...

Solving vehicle routing problem in .NET (C#)

I am developing an application in .NET to solve VRP, without using ArcGIS Server, but I can not find a complete sample code, I used other samples such as routesolver and get help from them, but I faced Exception in INASolver.Solve that shows I didn't load NAClasses correctly, I will be really thankfull if you could help me.Please!!!:( I...

ArcMap and BackgroundWorkerThread

I read in here I should stick with STA threads while working inside ArcMap. I was using a normal BackgroudnWorker, and my code was running really slowly. I am trying to change it so that the worker creates an STA thread inside and gets it to run on the "heavy" stuff. My problem now is that after the 2nd thread is done working, all my co...

Is there a way to get graphic text to scale in ArcMap?

I'm using this code to create text in ArcMap. But I can't seem to get it to scale like annotation text when you zoom in. Does anyone know how to do this? //'First setup a color. We'll use RGB red IRgbColor pRGBcolor = new RgbColor(); pRGBcolor.Blue = 0; pRGBcolor.Red = 255; ...

arcgis com registering

I have several class libraries containing some commands and auto-updaters for ArcGIS. Until now, each library contained an installer class, and we had a single Setup project that was in charge of installing all the dlls. Just like in here. I have now created another library containing a Toolbar, that should contain all the commands we ha...

ArcGIS : Labels only rendered at 10,000,000 scale

I'm using ArcGIS Server 9.3 with an Oracle 10.2g database. I've created an MXD which contains my feature class and I've configured it to show one of the attributes as a label - both the feature class and the label are set to be visible at all scales. In ArcMap, the labels only show at a scale of 1:10,000,000 - as soon as I zoom in they ...

Should I use values or keys?

I am warpping an ArcGIS IFeature object with a class that has my required properties to get and set them easily. Basically, the get and set operations just use feature.get_value(index) and feature.set_value(indes, value), and expose the strongly typed value. I have several fields that use a domain (basically, an IDictionary<string, objec...

using STAThread on ArcFM license

I am trying to use ArcFM with my ArcGIS project, and I've noticed a bug. If my main thread is marked with the [STAThread] attribute, the program hangs on exit with the OS Loader Lock exception. When I remove that attribute the program ends just fine. The following code hangs [STAThread] private static void Main() { MMAppInitialize m...

unit test smell

I am trying to change my unit testing of ArcGIS, and start using mocks (I use rhino). When I started to get into writing the tests, I noticed I have to start mocking a lot of objects, and stub a lot of methods for even a single test to pass. For example - my controller first gets a RelationshipClass (so I need to stub the IWorkspace and ...