|
POST
|
Hi Try something like this: mxd = arcpy.mapping.MapDocument(r"C:\temp\test.mxd") lst = arcpy.mapping.ListLayers(mxd,"*") for l in lst: print l.isRasterLayer Have fun
... View more
01-13-2013
08:27 PM
|
0
|
0
|
1819
|
|
POST
|
Hi It is just like any other workspace with some limitations. The docs (for .NET but it should be the same for JAVA) is here: http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/001m/001m0000002q000000.htm The only different you have to rememeber is that it deleted when your application exits. When ever you start you get a new (empty) in memory workspace. Have fun Mody
... View more
01-08-2013
09:38 PM
|
0
|
0
|
536
|
|
POST
|
Hi MDruzgala Thanks for your response. I already consider this option. I would like the configuration to be able to get any ready-to-use button. For this I need very long switch. I am looking for something similar to what ObjectFactory.Create do, this interface is part from the framework library so I cannot use it in Engine. Mody
... View more
01-03-2013
12:59 AM
|
0
|
0
|
421
|
|
POST
|
I am developing an Engine Java application. I would like to use the ready-to-use buttons but I do not like the toolbar control. I used the techniques described here: http://resources.arcgis.com/en/help/arcobjects-java/concepts/engine/0001/000100000785000000.htm under the "Control commands without the ToolbarBean" subject but I changed the code a little to look like this: ICommand c = (ICommand)new ControlsSelectFeaturesTool(); This works nicely. Now I would like to create my buttons dynamically by some configuration file. I would like the software to read the file and create the buttons by the names found in the file. For example if the string in the file is "Controls.ControlsSelectFeaturesTool" I would like to run something like this: ICommand c = (ICommand)CreateObject("Controls.ControlsSelectFeaturesTool") Can somebody explain if this can be done and how? Thanks Mody
... View more
01-02-2013
08:36 PM
|
0
|
2
|
662
|
|
POST
|
There is no license manager for Server. The license is local to the server machine and does not "float". You have everything needed to get a license in the Server installation. Have fun Mody
... View more
12-31-2012
08:59 PM
|
0
|
0
|
535
|
|
POST
|
Why no running the script on the desktop machine and make it connect to the database on the remote machine? That way you do not have to install anything and the script will share the desktop license in case somebody else using it? Mody
... View more
12-24-2012
08:03 PM
|
0
|
0
|
727
|
|
POST
|
Hi Stan You just created the inMemory workspace so I do not think you have any feature class or table in it. After you create them (using CreateFeatureClass or CreateTable) you can just open them by name. You do not give full path to open a feature class or table you just give the name. The same is true for FGDB or ArcSDE workspace. You set the path when you open the workspace (n need for memory workspace). Have Fun Mody
... View more
12-22-2012
09:06 PM
|
0
|
0
|
591
|
|
POST
|
Some other web software (not esri) would like to use the results of a visibility analysis (Viewshad). They are sending the observation points with all other information (radius, offset etc.) The problem is how to return the results. They would not like the results it to be saved on disk (for performance reason) but the image to be returned as an object in memory with some information on where it is in the world. The client application should be responsible to draw it in the correct location. How can this be done? Thanks
... View more
11-20-2012
08:57 PM
|
0
|
0
|
465
|
|
POST
|
Should it be so complex? Let me separate the problem into two different problems. 1) I have calculated a route. How do I get the time my car will be on each segment. I think if I have the ordered segment collection and the time for each segment �?? it should not be too hard to get it. 2) I have a network and information about the time it takes to cross each segment in a different time in the week. How do I put this information into the network so the routing will take it in to account. If I solve these two questions and combine them I solve the problem. There is not to much more into the real problem, it is just a way to make sure two "cars" will not be on the same segment in the same time. Thanks
... View more
11-17-2012
09:16 PM
|
0
|
0
|
1156
|
|
POST
|
First, this is not really a railroad network but it show my problem in a simple way. About the static/dynamic network. With Historic/Live traffic (10.1) you can define what will be the speed on an edge sometime in the future. It usually comes from historic data or from real time data. In my case I would like to simulate it with data from the last train route (before the train really go). If train A crosses some segment between 10:00 to 10:15 in this time this segment is very slow to drive on. With both ways (Historic/Live traffic) I can estimate the delay for each segment for some time in the future. The problem is to take the data from the first route and translate it to delays in the future.
... View more
11-14-2012
04:40 AM
|
0
|
0
|
1156
|
|
POST
|
We have a rail network and a set of trains (A,B,C???) that should go from one point to anther (A train from a1 to a2, B train from b1 to b2 etc). The main problem here is that two trains cannot be on the same segment in the same time (even if the segment is long). Our idea is to find the path for train A. Then block all the segments that train A crosses in the time it crosses them before we try to solve the path for train B. The question is how to block the segments. Should we use barriers ??? they do not have time limit (as far as I know). Should we use Historic traffic or Live traffic? How do we translate the information about the route of train A into one of these ways before we solve train B. It is clear that we will need code but any hint will help. Thanks Mody
... View more
11-13-2012
09:24 PM
|
0
|
7
|
1312
|
|
POST
|
I could not find PythonWin on 10.1 installation DVD �?? is it there? In the help (http://resources.arcgis.com/en/help/main/10.1/0021/002100000021000000.htm) you have a link but I could not find it there too. In other topic in the help: http://resources.arcgis.com/en/help/main/10.1/0021/002100000022000000.htm the buttons of PythonWin is used. Where can I get it from and should I do this? Thanks
... View more
10-24-2012
10:54 PM
|
0
|
1
|
513
|
|
POST
|
I have similar problem when running script tools not within desktop (stand alone application). The PointToLine is a script tool. Are you running from stand alone application? Can you run other (not script) tools. Can you run it (using code) within desktop? Mody
... View more
10-22-2012
10:41 PM
|
0
|
0
|
2173
|
|
POST
|
Hi All We are trying to run system tools that are really a python scripts from Desktop 10.1 and get an error about wrong paramaters. We are trying two methods: IGeoProcessor pgp = new GeoProcessor(); IVariantArray parameter = new VarArrayClass(); parameter.Add(@"c:\temp\ForRT.gdb\people"); parameter.Add(@"c:\temp\ForRT.gdb\people_point_line"); pgp.Execute("PointsToLine_management", parameter , null); or: Geoprocessor GP = new Geoprocessor(); PointsToLine pointsToLine = new PointsToLine(); pointsToLine.Input_Features = @"C:\temp\ForRT.gdb\people"; pointsToLine.Output_Feature_Class = @"C:\temp\ForRT.gdb\people_PointsToLine"; GP.Execute( pointsToLine, null); Both ways gives the same error. Can anybody help? Thanks Mody
... View more
09-11-2012
09:49 PM
|
0
|
1
|
2922
|
|
POST
|
Hi This is the example: http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/0001/0001000002r6000000.htm I do not think it changed from 10.0 Have Fun Mody
... View more
08-27-2012
10:55 PM
|
0
|
0
|
732
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-17-2025 06:35 AM | |
| 2 | 07-21-2025 10:13 PM | |
| 2 | 06-15-2025 12:55 AM | |
| 1 | 01-22-2018 02:51 AM | |
| 1 | 05-10-2025 10:06 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|