|
POST
|
Looking at your code it looks like you are not giving the full path to your file geodatabase. You set the string targetworkspacepath to simply "melaka.gdb" but where is it? Is it c:\temp or c:\gis\db? I think you need to provide the full path something like c:\temp\melaka.gdb Duncan
... View more
11-17-2011
01:01 AM
|
0
|
0
|
811
|
|
POST
|
Aaron, I dabbled in developing a geoprocessing tool a few years ago in 9.3 as a way of teaching myself. Didn't get very far! I have some vague memory that I had to "pack" my parameters. Look at the IGPUtilities interface and PackGPValue method? Just an idea... Duncan
... View more
11-16-2011
07:39 AM
|
0
|
0
|
592
|
|
POST
|
Michelle, My toolbox in my opinion is not a good place to store anything as it's in my documents which is a directory on the computer so if that blows up you loose the lot! I would recommend you create a folder in the projects folder and call it something simple like GeoProcessing. Then unzip the zip folder into it and you will have your toolbox and the python script in it. You can then use the catalog window in arcmap to navigate to that folder then you'll see the toolbox, navigate into that for the script tool and at that point you will probably want to go into it properties to ensure the python script it's point to is the one in that folder and not my computer! Duncan
... View more
11-15-2011
04:46 AM
|
0
|
0
|
654
|
|
POST
|
Michelle, It looks like you got confused and removed the wrong parameter from the wrong thing. I have corrected this and uploaded the script and toolbox in a single zip file. You may need to repoint the toolbox to point to the python script as it may have picked up the location where I stored it on my machine. As you'll see it's not your script that was wrong but the toolbox interface. You were introducing an 8th input which was never used, but your python script only had 7 parameters and it was looking at the table when it really wanted your field. Duncan
... View more
11-15-2011
12:12 AM
|
0
|
0
|
654
|
|
POST
|
Michelle, Well I think your problem is that your Script is taking 7 inputs but your toolbox interface is asking for 8! You need to set select SRF grid to be of type FeatureLayer and have it loaded in arcmap so you can select it from the drop down. Delete your 7th parameter which is asking for a table, you don't need this as this is output table from your sql query. Finally for your input Selected Join Field "CellID1" set Obtained from to nothing and set it's default value to CellID1. Duncan
... View more
11-14-2011
07:22 AM
|
0
|
0
|
2199
|
|
POST
|
Rebecca, Well you could convert all combination of points into polylines using the Points To Line tool. If you are using model builder then you would probably have a master model with an feature iterator calling a sub-model which builds the polylines. Again I think this would be easier as a python script. Then you could create a model that loops for each line, rasterizes it using the polyline to raster tool (so only 1 polyline at a time) and use the zonal statistics tool to get the sum of the cells under your rasterized polyline. Duncan
... View more
11-14-2011
05:35 AM
|
0
|
0
|
2855
|
|
POST
|
Rebecca, I'm not so familiar with the type of analysis you are talking (I don't do too much grid analysis). So this is my understanding. You have a cost layer distance to river. You have point 1 and it is intersecting a cell that is 1 mile from a river, point 2 is on another cell that is 4 miles from a river. So the value you are interested is the difference between these 2 points, which is 3 and then you repeat this analysis for all combinations of points (your 68 points)? If I have understood this correct then you could use the tool Extract Multi Values to Points. This would get all your cost values for each point in 1 hit. You could then use a feature selection iterator to loop through your data doing the pairwise difference (I'm assuming you are ArcGIS 10)? If you can program in Python it may be easier to do the looping in that? Duncan
... View more
11-14-2011
12:38 AM
|
0
|
0
|
2855
|
|
POST
|
I spotted the Android App on the ESRI news feed and tried to download it. I have an HTC wildfire phone which is running the minimum OS that the application requires but it refused to install. I contacted the email address on their homepage and they have not bothered to reply, not brilliant customer support... I will look out for this Panasonic device, sounds good.
... View more
11-13-2011
11:53 PM
|
0
|
0
|
2540
|
|
POST
|
Andrew, May be your solution is some combination of the describe object, more info here. You could try using the dataElementType property? This bit of python will give you all the data element types as long as they are not in a grouplayer. mxd = arcpy.mapping.MapDocument("CURRENT")
l = arcpy.mapping.ListLayers(mxd)
for al in l:
d = arcpy.Describe(al)
print d.dataelementtype Duncan
... View more
11-11-2011
07:06 AM
|
0
|
0
|
1235
|
|
POST
|
Rebecca, It may help others to help you if you draw what you are trying to ask and upload it. You start off talking about points then end up talking about selected cells, so what are you actually talking about?
... View more
11-11-2011
06:27 AM
|
0
|
0
|
2855
|
|
POST
|
Thomas, If you are happy to convert your models into Python code then you could take advantage of multi-core processors as described in this blog. It does mean you will have to stop working in the model builder environment. Duncan
... View more
11-11-2011
06:17 AM
|
0
|
2
|
2795
|
|
POST
|
Hello, I wanted to bump this thread up to the top to find out what the latest is? There is nothing on the ArcPad blog about the future of Arcpad. I know mobile 7 is a very different beast and that Arcpad seems to be tied to hardware development (Trimble etc..) so I was wondering what ESRI were envisaging for ArcPad? I don't follow mobile development too closely but modern mobile OS seem to be all about gestures and fluffy looking "apps" ,a scenario I can't see working if one is trying to capture detailed geometries. So if ArcPad is tied to hardware and big companies like Trimble or Magellan are not moving towards such OS then does this mean ArcPad is "stuck" at mobile 6.5 and we should NOT be running out to buy the latest hardware? Duncan
... View more
11-11-2011
05:05 AM
|
0
|
0
|
2540
|
|
POST
|
Michelle, I downloaded your toolbox and had a look at it. In your initial thread you said that it would not even run the table select part of Python. This bit I have tested only. The parameter setting for your "Output selected data" was incorrect. It's direction was set to input this should be an Output. This allowed that section of code to execute correctly even with the text file (my idea of dBase was a red herring). This bit of code now generates a table based upon your sql expression which should join to your featureclass. Duncan
... View more
11-09-2011
01:15 AM
|
0
|
0
|
2199
|
|
POST
|
Michelle, You upload data/toolboxes by zipping them up first... Your sample of data (Wost_Test) is this originally a text file? Convert it to a dbf first. Duncan
... View more
11-08-2011
07:19 AM
|
0
|
0
|
2199
|
|
POST
|
Tom, Don't have a grid file name long than 8 characters. Duncan
... View more
11-08-2011
06:53 AM
|
0
|
0
|
1049
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-03-2026 07:31 AM | |
| 3 | 06-29-2026 05:17 AM | |
| 1 | 02-15-2023 05:45 AM | |
| 1 | 06-16-2026 02:37 AM | |
| 1 | 06-15-2026 08:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|