POST
|
Hi, Im accessing Server 10.1 via C# SOAP proxy classes. To see if i need to generate token i call Service Catalog's method RequiresTokens. Every time i call it it returns 'true' although not a single service on the server is secured. If i point at other 9.3.1 unprotected server instance the same code correctly returns 'false' when calling RequiresTokens. On the 10.1 server i have no web adaptor installed or configured. Any hints or ideas how to detect if token generation is needed? Btw is there RequiresTokens available via REST ? Thanks
... View more
05-24-2013
05:07 AM
|
0
|
2
|
288
|
POST
|
Hi, I wrote a very simple geoprocessing python script that after running it and closing ArcMap, the ArcMap.exe process never ends/closes. As a result sometimes it holds locks on SDE featureclasses etc. I've tried this on ArcMap 10 SP5 (on Win7 and WinXP) and ArcMap 10.1 SP1 (on Win7) and it occurs on all configurations. Here is the tool's code:
import arcpy
fc = arcpy.GetParameterAsText(0)
arcpy.AddMessage("FC:"+str(fc))
featcur = arcpy.SearchCursor(fc)
#.next() causes problem - arcmap.exe process does not disappear after appilcation window is closed
f_row = featcur.next()
arcpy.AddMessage("DONE")
del f_row
del featcur
arcpy.AddMessage("Mem released")
The problem occurs only for Feature Classes from SDE. In particular I tried MS SQL Express 2005 + Direct Connect, also had the same problem with Oracle and PostgreSQL. It seems OK for .gdb features. The problem seems not to occur with empty SDE feature classes. Also it seems that the problem does not occur under ArcCatalog. To reproduce: 1.Make sure no ArcMap is running (check under Task Manager / Processes tab) 2.Start clean ArcMap session 3.Open cursorBug tool from the attached CursorTest.tbx 4.Run the tool with any non-empty SDE feature class 5.Once the tool finishes close it and close ArcMap. 6.Check Task Manager / Processes tab. ArcMap.exe prcoess stays there and never closes The 'cursorOk' tool is just for reference to demonstrate that it all works as expected if the 'f_row = featcur.next()' statement is not present in the code. Can I have any feedback on this? Or am I missing something? Is there a better way of releasing resources? Thanks, Szymon
... View more
02-12-2013
06:06 AM
|
0
|
2
|
668
|
POST
|
Hi, I have written a custom .net geoprocessing tool which is exposed as a geoprocessing service with ArcGIS Server 10.1 SP1 . When the tool is run from ArcMap 10.1 SP1 i can see significant memory usage, say up to 1gb is consumed, but once the georpocessing is finished and i click 'Close' in the geoprocessing tool's dialog the memory is nicely released and ArcMaps consumption always comes back to the same level. I've run the same task for several times to check it and it seems there are no issues with ArcMap and memory consumption. Once i publish the tool as a geoprocessing service and run it i can see under the task manager that the ArcSOC process associated with the gp service keep eating up more and more memory and even once the processing is done the memory is never released. Can you advice on how to maintain the geprocessing service in order to regain the memory? Because of high demand for memory the service can very quickly reach the point when system runs out of memory as it is not released! Regards, Szymon
... View more
01-16-2013
04:47 AM
|
0
|
0
|
706
|
POST
|
Hi, Recently I came across a situation when I tried to save an empty FeatureSet to a featureclass using the FeatureSet.save() method. I realize that if the featureset object is not initialized or not populated saving process does not have to go correctly but completely crashing entire application is a bit too much I think. I would definitely expect any errors to be caught by the 'try-except' block. In the attachment there is a set of files that should allow reproducing the behaviour. Unpack it to 'C:\Projects\bugtest'. Open 'C:\Projects\bugtest\tests.mxd'. In ArcMap go to 'Catalog' window and open 'Toolbox.tbx' from the home directory. In the toolbox there are two python based tools. Both consume the same python script called 'rs2fc.py'. The difference between them is that: -fc2fc tool as input takes optional feature class parameter -rs2fc tool as input takes optional feature set parameter Executing fc2fc without any input causes errors but the errors are caught by 'tr-except' block which is as expected Executing rs2fc without any input causes complete crash of ArcMap. No error is intercepted by 'tr-except' block. In the attachments there are screen shots of the crash and data to reproduce it. Thanks, Szymon
... View more
11-15-2012
01:31 AM
|
0
|
1
|
1492
|
POST
|
Hi, Im using 'ConvertWebMapToMapDocument' to generate PDFs. The 'Web_Map_as_JSON' parameter has the 'operationalLayers' section in which each layer has it's url assigned. Now because i need to get to some of the layers through a proxy to get the token I'd like to pass the url in such form:
"url":"http://localhost:32762/AGSProxy.ashx?http://localhost:6080/arcgis/rest/services/RSPB/Assemblages/MapServer"
but each layer that has the proxy embedded in the URL does not appear in the output file. I do have a proxy (AGSProxy.ashx) that allows loading layers with urls in form as presented above (works OK for SL API3.0). Whenever SL viewer tries to access a layer via the proxy it does hit the breakpoint with debugger so I am sure this is reached. But if I run the PDF generation based on 'ConvertWebMapToMapDocument' the proxy with breakpoints set is never hit. This makes me think that there exists some sort of URL validation within implementation of 'ConvertWebMapToMapDocument' that does not allow calling my proxy. Is this a bug or a feature? Thanks, Szymon
... View more
11-13-2012
04:56 AM
|
0
|
1
|
638
|
POST
|
Hornbydd, Thanks for your answer. I know that the nearest point might be on the edge (polyline or polygon), therefore i think it is necessary to iterate over points of both features. This would then get <Geometry,Point> distances from which I'd have to pick the smallest value. The problem is that this might be slow if geometries have lots of points. I do know the method QueryPointAndDistance. The problem is that it expects a point as the input. The point would then be the nearest one on the other geometry. The question is how to get the nearest point on the other geometry? Manually iterating or using some existing tool which i do not know? Cheers
... View more
10-09-2012
01:05 AM
|
0
|
0
|
1167
|
POST
|
Hi, I have two geometries - a polyline and a polygon - and I want to find the two points (one on polyline and one on the polygon) that are the nearest. According to documentation IProximityOperator has some methods that do return distance between two geometries, but there is no way to get the actual point, unless I am missing something. The only way seems to be query both point collections against the other geometry and then pick the resulting pair with smallest distance using QueryNearestPoint method. Isn't there a better way of doing it? Cheers
... View more
10-08-2012
08:28 AM
|
0
|
8
|
4869
|
POST
|
Hi I am trying to direct connect using 'SeConnection' class from the Java API to a ArcSDE 10 geodatabase. I can achieve this on my development machine, but as I deploy my solution to the target machine it stops to work. Therefore I think I am missing some software on the target machine. Still I am able to connect to SDE via ArcSDE service (from target machine), but the point is i don't want to user ArcSDE service. I am trying to connect to oracle10g. Both on the target and dev machine there is installed oracle client software as well as ArcSDE for Oracle 10g. SDEHOME is set correctly to the installation directory of ArcSDE for Oracle10g. I am sure I am passing the connection parameters correctly to the SeConnection constructor because as i said I can direct connect from the dev machine. Oracle client is correctly configured on both machines as from both of them I can sqlplus to the target sde database. Any suggestions what should i install extra on the target machine? Should I install there the full ArcSDE Java SDK ??? Thanks, Szymon
... View more
09-25-2012
08:21 AM
|
0
|
0
|
2140
|
POST
|
Hi I've been trying to print FeatureLayer polygon features data using ESRI.ArcGIS.Client.FeatureService.Symbols.SimpleFillSymbol in order to get control over fill color, border style and others that not available with ESRI.ArcGIS.Client.Symbols.SimpleFillSymbol . This is done with ESRI SL5 API 3.0 . For printing i use a cutom prining geoprocessing task. In general it works well but if the mentioned symbol is applied i do not get the polygons filled. Although the outline looks correct. As i examine the (webmap)JSON sent from browser to geoprocessing service i can see that for FeatureService.Symbols.SimpleFillSymbol the symbol definition is missing the fill symbol color. Also when running the following test code and stepping into it with debugger the following screnshot shows what i see in memory [ATTACH=CONFIG]17515[/ATTACH] Is there a fix for this or is this a bug in the Silverlight 5 API 3.0 ?
... View more
09-06-2012
04:28 AM
|
0
|
1
|
757
|
POST
|
Duncan, Thanks for the response. This IMSegmentation3 is almost fine, but... . If the trace result, say upstream, consist of several patsh that split (say in a form of Y letter) then the measures would go up one branch, (say up to upper left left point of Y letter). Then M values would continue from the middle of Y letter up to the right upper point. The more splits there are the less consistent/reliable M values become. In general this would work OK only for a single path without splits. Correct me if im wrong please ! Thanks, Szymon
... View more
06-15-2012
03:42 AM
|
0
|
0
|
268
|
POST
|
Hi, I wrote a tool that finds upstream and downstream trace in a river network from a start point X. This is based on a network flag for the point X. The network has defined flow direction/sinks. Now there is a requirement to find the distance of objects laying along the network (trace result in particular) to the point X. Is it possible for the network solver to add M Values to the resulting geometries? For example it would be enough if all the M Values would indicate how far a given FromPoint or ToPoint of the returned edge is from the end (last sink) of the whole 'branch' of the river. I''ve programmatically added weights to the solver:
INetSchema netSchema = m_geometricNetwork.Network as INetSchema;
INetSolverWeightsGEN netSolverWeights = m_traceFlowSolver as INetSolverWeightsGEN;
INetWeight netWeight = netSchema.get_WeightByName("Distance");
netSolverWeights.FromToEdgeFilterWeight = netWeight;
netSolverWeights.ToFromEdgeFilterWeight = netWeight;
but the results have no measures. Any suggestions? Thanks, Szymon
... View more
06-14-2012
01:40 AM
|
0
|
2
|
604
|
POST
|
Hi, I've created an EsriAddIn project. It is configured by default to register the addin after the build has completed. Does anyone know how to disable it? I don't want my addin to be automatically registered with arc map, i want to do it manually. Thanks
... View more
03-05-2012
07:26 AM
|
0
|
2
|
534
|
POST
|
Hello, Is it possible to have a space in an alias of an attribute of a WMS layer ? In my mxd document that I use for the WMS service i have a field called EHVERSION. For testing purpose in the mxd i changed the alias for that attribute to "My Version". But as I listen to the content being sent to the browser using Firebug i can see that the space gets removed in the JSON response and the browser gets attribute named "MySpace" - with NO space. All this is happening when i am using the identify tool and displaying the identify results. So in the end in my result panel although i can see that the alias gets set, it does not display EXACTLY what i specified. Is it possible to maintain the space in the alias? Or is space a forbidden character in the alias? Thanks, Szymon
... View more
11-07-2011
11:42 PM
|
0
|
0
|
386
|
POST
|
andrewchap, Thanks for the answer. As i can understand your suggestion only shows how to obtain a unique name in the workspace, while i do not have a problem with it. I can definitely get it my way. The question is why my approach does not work for GDB but does work for MDB. It definitely is not caused by non-unique name. Apparently the Intersect_analysis function obtains somehow exclusive access to the GDB and prevents other processes from creating their output to it. The same logic works for fine MDB. Any hints?
... View more
10-28-2011
04:00 AM
|
0
|
0
|
320
|
POST
|
Hi I have a script that calculates some intersections between two featureclasses. Since there is a lot of data to process I am trying to have it done in parallelbatches. The work is split into several concurrently running .py script processes . They all take the same input feature classes but operate on different features. Because i need to store and persist the output of each such intersection, each result is saved in my .gdb database in a separate result featureclass. To maintain unique result names, they all have the same prefix with appended unique batch id. So when i execute 2 batches with id 1 and 2 it results in featureclasses named Result_1 and Result_2 . The problem is that when the output of those simultaneously running processes is set to the same GDB database, for example "C:\data\workspace.gdb", only one process can create the desired output from arcpy.Intersect_analysis to "C:\data\workspace.gdb\Result_1" (that would be for case when process for batch with id =1 succeeds). All other processes fail with the message like:
ExecuteError('ERROR 000210: Cannot create output C:\data\workspace.gdb\Result_2\nFailed to execute (Intersect).\n',)
Interestingly the problem does not occur if I change my output workspace type from GDB to MDB. Then it all goes well and each process can create it's proper output as I would expect within the same workspace without problems. Are there any steps that I should take to resolve this issue? I am guessing that once a process gets a handle to GDB there mus exist some sort of index of existing featureclasses, and since it has exclusive access to it the other processes can't modify it. Therefore only one process at time can operate on the database. But that is only my guess. Can anyone advice on that or confirm/reject my guesses? Thanks, Szymon
... View more
10-28-2011
02:21 AM
|
0
|
5
|
494
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|