POST
|
I need to know does INASolver Solve method supports multi-threading. Because when I implemented in my code to call Solve method in multiple treads for solving more than 1000 locations its taking more time than regular solve using 4-threads. Regular solve is taking ->45 mins multithreading using 4 threads consuming --> 52 mins It looks to me INASolver-->Solve() method does synchronization of threads (observed by keeping logging.) Eg: Thread call are like: Before solve thread 3 called Before solve thread 2 called Before solve thread 1 called Before solve thread 4 called After Solve method: After solve thread 4 called After solve thread 1 called After solve thread 2 called After solve thread 3 called
... View more
06-04-2014
11:08 PM
|
0
|
0
|
1040
|
POST
|
We have a desktop application that uses ArcGIS 10 and we are ending up with application crash after closing the application by running the OD cost matrix. We do a clean up of the member variables after running OD Cost matrix. We are having one variable of type INetworkDataSetPtr for opening the data set and if we comment out the release method for this pointer, the crash goes away. This worked well with ArcGIS 9.3. Recently we upgraded to ArcGIS 10 and our dev environment has been upgraded to Visual Studio 2010 (earlier we used VC++ 6.0) . Crash details: Faulting application trur.exe, version 1.0.0.1, time stamp 0x50ac6bea, faulting module MSVCR100.dll, version 10.0.30319.1, time stamp 0x4ba1dbbe, exception code 0x40000015, fault offset 0x0008d635, process id 0xbc8, application start time 0x01cdc7af2de12b8d. Any help appreciated. Thanks, Murali
... View more
11-20-2012
08:41 PM
|
0
|
0
|
645
|
POST
|
Hi Hugo, I have just starting building my own locators for Brazilian addresses and looking for some help. As in US template locator style, we "House No, Street name" , I want to customize this according to Brazilian addresses like : "Street Name, House no". As I can see you have already succeeded in building customized Brazilian locators at some level. Can you please provide me some help regarding this. Also, it would be great if you can share your work(if possible) and point me to the right direction.Thanks.
... View more
09-10-2012
09:26 PM
|
0
|
1
|
473
|
POST
|
Hi muralimohana_c, You can edit the content of the directions file manually, since those are in plain XML. The file you need to localize is located under %ArcGIS Installation folder%\Desktop10.0\NetworkAnalyst\Directions\resources.xml. The Supported Languages (codes) are: Chinese (zh-CN) Danish (da-DK) Dutch (nl-NL) English (en-US) - default language French (fr-FR) German (de-DE) Italian (it-IT) Japanese (ja-JP) Norwegian (no-NO) Portuguese (pt-PT) Spanish (es-ES) Swedish (sv-SE) As far as I understand, this is only for managing the non-Latin symbols properly because you don't have to change the "Language ID" tag's value when making edits to the directions tags' text values. However, this is a pretty big and tedious task - to translate all the text in the tags and make sure it makes sense when routing. So, as Alan from Esri mentioned earlier, it is best to contact a local Esri distributor and if you are on maintenance you should have no problem obtaining a translated directions file which you then could use. Hi Alexey, Thanks for your inputs. I've tried to add one more section in Resources.xml for Spanish with the given language code. When I change my application language to Spanish, trip directions are still in English. This used to work in ArcGIS 9.3 using directions.lng. Am i missing something here? Thanks
... View more
08-22-2012
08:27 AM
|
0
|
0
|
518
|
POST
|
I have an application using map control of ESRI ArcGIS Runtime engine. I could see the symbols when i open the map for first time, and but i could not see any symbols on the second instance of map while the first one is still open. I'm using below code in my application, AddFile method returns S_OK for the first instance, but returns E_FAIL in the second instance. where m_pSG is IStyleGalleryPtr. Code: IStyleGalleryStoragePtr pSGS; pSGS = m_pSG; HRESULT hr; hr = pSGS->AddFile(bstr); Please let me know how to fix this issue.
... View more
06-13-2012
05:49 AM
|
0
|
1
|
464
|
POST
|
Hi All, I am able to create custom evaluator for my work using Sample code (Subset Evaluator) provided by the ArcGIS. I have a question regarding this. Is there any way , I can assign this custom evaluator to a network attribute using C# or any scripting tools. I am trying to automate my work. I have already done automation for adding attribute with parameters etc.But it would be great if I can assign my custom evaluator to this attributes using any language or scripting tools without opening arc-catalog and manually assigning it. Any help on this would be great. Thanks.
... View more
05-25-2012
11:55 PM
|
0
|
0
|
633
|
POST
|
Hi, We are having performance issues in NA Solver OD Cost matrix using ArcGIS 10. In 9.3.1 for 123 locations it took 1-2 minutes for building the matrix. Using ArcGIS 10, SP4 it is taking 1 hour 4 minutes to build the matrix. We verified this in ArcMap10 and it is taking 1-2 minutes only. Do we need to make any changes in settings of NASolver? Thanks, Murali.
... View more
05-24-2012
04:44 AM
|
0
|
1
|
684
|
POST
|
Hi, I am trying to automate create/build network dataset using SDK in C#. I followed the sample code : "http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/0001000000w7000000.htm" and able to create network dataset with simple attributes like oneway, meters and minutes. Now, my requirement is to add parameters to a network attribute say "xyz". I am not able to find documentation on this. It would be great if some example can be provided so that I can follow the same. Please provide some help on this. Thanks in advance..
... View more
05-22-2012
10:50 PM
|
0
|
1
|
375
|
POST
|
Hi , I am trying to use CopyFeatures_management function in ArcGIS 10 using python script and its working too slow. My dataset which it is copying is around 1 GB in size. It is taking 2 days to copy features to finish. Everything works fine like merging , joining ..but the problem is with CopyFeatures_management function. Here's my sample code for the join process. def processJoin(lyr):
# Join logistics tables to network fc
gp.AddMessage("Joining lrs table...")
logFile.write("Joining lrs table...\n")
gp.AddJoin_management(lyr, JOIN_FLD, lrs, JOIN_FLD)
gp.AddMessage("Joining ltr table...")
logFile.write("Joining ltr table...\n")
gp.AddJoin_management(lyr, tempFC + "." + JOIN_FLD, ltr, JOIN_FLD)
# Copy layer to fc
gp.AddMessage("Copying features to feature class...")
logFile.write("Copying features to feature class...\n")
gp.CopyFeatures_management(lyr, ExportRoadnetwork)
As you can see from the code, we are just calling CopyFeatures_management to make a copy of the newly joined feature class. But its taking 2 days to finish. Size of the joined dataset is around 1 GB for state data of DC,VA,PA,DE,MD and NJ. We are only using *.*nw data with lrs and ltr for restrictions. Although merge is just taking 20-25 minutes , copying the features is itself taking too long to complete. Can anybody please provide some suggestions where I am doing wrong or how can I improve performance in the script.
... View more
04-19-2012
01:38 AM
|
0
|
4
|
3518
|
POST
|
Hi,I am looking for a way to automate workflow in creating and building network dataset. I have already automated all the pre-requisites like building file geo database , merge , join and export using python script. Is there any way in ARCGIS 10 that I can use to add attributes and parameters for a network data set , applying a custom evaluator to a cost attribute and create/build network dataset using any scripting tool. Any help on this would be appreciated. Thanks in advance.
... View more
04-17-2012
06:14 AM
|
0
|
1
|
2642
|
POST
|
We migrated from ArcGIS 9.3. to 10.0 and we are using ODCostMatrix and RouteSolver API in our application using C++ (COM) API and seeing solver failure issue when we are requesting for either ODCostMatrix or RouterSolver. Code snippet and return value as follows. IGPMessagesPtr pGPMessages; if(hr == S_OK) { pGPMessages.CreateInstance(CLSID_GPMessages); if(m_bRNSolverCancel) hr = pSolver->Solve(m_pNAContext, pGPMessages, m_PtrTrackCancel, &isPartial); else hr = pSolver->Solve(m_pNAContext, pGPMessages, NULL, &isPartial); } Here solver returns hr as -2147221230 (0x80040112). we also added new code in before Checkout license as well. details as follows. // New for ArcGIS 10.0 IArcGISVersionPtr ipVersion(CLSID_VersionManager); VARIANT_BOOL succeeded = VARIANT_FALSE; HRESULT hr = ipVersion->LoadVersion(esriArcGISEngine, L"10.0", &succeeded); Let us know, if we are missing anything here. Thanks in advance. Regards, Murali Choudari.
... View more
12-02-2011
01:58 AM
|
0
|
1
|
1227
|
POST
|
When we migrate from 9.3 to 9.4, we are getting the following error during compilation. esricarto.tlh(17486) : error C2504: 'IThreadedJob' : base class undefined esricarto.tlh(17543) : error C2504: 'IThreadedJob' : base class undefined i guess something i need to register in my environment with 9.4 dll or something, please give your thoughts on this issue. Thanks in advance. Regards, Murali Choudari.
... View more
02-15-2010
06:43 AM
|
0
|
2
|
291
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|