|
POST
|
A two step process: -Use something like Make XY Event Layer tool or Add Data from XY Data -Once you have this as a layer, reproject it into your projection of interest. You may have to insert a step between those of "defining your projection" as WGS84 but I suspect you can go right to the final projection.
... View more
07-08-2010
11:57 AM
|
0
|
0
|
327
|
|
POST
|
Holm, Thanks for providing that - it clears up my understanding of the question. The information I originally providing you with wont work in this situation. Unfortunately the LIST doesn't provide the %n%. Additionally you can't control the output name with the input name via the inline variable with a list in the manner I proposed. (my apologies, I'm confusing functionality between 931 and 10). The %n% count is only available with SERIES and with the Iterators built into ArcGIS 10. It may only be possible to accomplish this with a script. I'll have to look into it a little more.
... View more
06-25-2010
12:51 PM
|
0
|
0
|
1135
|
|
POST
|
Could you post your model or the picture of your model?
... View more
06-25-2010
10:35 AM
|
0
|
0
|
1135
|
|
POST
|
I'd have to see your model to be able to give you the exact syntax, but the basic idea is every "circle" part of ModelBuilder (the input/outputs) can be referenced via the name you set. So, lets say you have copy features and it looks like this in the ModelBuilder window: InputFeatures -- Copy Features -- OutputFeatures If you are iterating over a bunch of FeatureClasses you already know about the "n". So you can set the output to: %InputFeatures%_%n% Which should give you something like: roads -> roads_1 lakes -> lakes_2 rivers -> rivers_3 This help topic does a good job of explaining inline variables: http://webhelp.esri.com/arcgisdesktop/9.3/body.cfm?tocVisable=1&ID=857&TopicName=In-line%20variable%20substitution
... View more
06-25-2010
07:58 AM
|
0
|
0
|
1135
|
|
POST
|
Hopefully this gets you started: Expression: calc ( !percentage! ) Code Block: cumulative = 0
def calc(invalue):
global cumulative
cumulative = invalue + cumulative
return cumulative
... View more
06-22-2010
09:23 AM
|
0
|
0
|
632
|
|
POST
|
Steve, I'm not sure where you're going wrong exactly? Do you need Python syntax for time?
import time
print time.strftime("%Y/%m/%d %H:%M:%S", time.localtime())
Will give: 2010/06/11 11:34:14 Can you bring this into your calc script?
... View more
06-16-2010
09:59 AM
|
0
|
0
|
363
|
|
POST
|
Josh, Changing the output path to: %scratchworkspace%\scratch.gdb\InfoPoints_Freqency should get around the already exist error. The %scratchworkspace% tells ArcGIS Server to handle the output, ensuring that nothing is overwritten (or nothing is attempted to be overwrote). Your results will get created at: C:\arcgisserver\arcgisjobs\<service name>\<unique id>\scratch\scratch.gdb\InfoPoints_Frequency You're probably already onto this, but the example here shows how results are returned to the client within the JavaScript API from a similar operation http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/gp_zonalstats.html
... View more
06-10-2010
11:33 AM
|
0
|
0
|
870
|
|
POST
|
Thanks Josh, that narrows it down a bunch. It's probably an issue in the model itself. Could you please attach the TBX and I'll take a look?
... View more
06-10-2010
08:09 AM
|
0
|
0
|
870
|
|
POST
|
Josh, You mentioned your client being a "web client", can you give more details on this? A web app developed through the ADF, a javascript application, something else?
... View more
06-09-2010
03:42 PM
|
0
|
0
|
870
|
|
POST
|
James, Its a little tricky to pin point exactly what went wrong, but you provided a great explanation. A couple things for you to check and be sure of: -make sure you set relative paths within your model properties -I'd suggest using %scratchworkspace%\tableoutput as the output (or substitute tableoutput with your results name, but use %scratchworkspace%) -Your comment on bringing the model/map over to the AGS machine - do you have desktop there? If so you can just re-run it for a quick test (if not, no problem), just ensure you drag over everything (easiest if kept in the same folder): ---tbx ---mxd ---output data ---data used as reference for the featureset -and the sde data: sde.sde.option_1a - is this coming right from SDE, (featureclass) or is it pulling from the map (feature layer)? If its the featureclass you may want to make a copy of the SDE connection string (.sde file), and save it to your working directory. Then reference it from that path - not from the SDE Connection node. Like I said, I'm unsure exactly where its failing, but any one of the above things could just fix it. Hopefully this moves you forward.
... View more
06-08-2010
08:02 AM
|
0
|
0
|
2800
|
|
POST
|
If your list is static you can write out a value list. http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=792&pid=786&topicname=Managing_parameters (see screen shot) I haven't tried to do this as a dynamic list at run time via python. It could be worth a try. However if the list is static, I'd simply use the value list to save the overhead of reading the records everytime and creating a list.
... View more
06-03-2010
01:31 PM
|
0
|
0
|
643
|
|
POST
|
Ted, I'm not sure what you're referring to. Can you provide some more information? What toolboxes - system ones, custom ones...? Are you performing a copy operation and it's failing?
... View more
06-01-2010
10:02 AM
|
0
|
0
|
550
|
|
POST
|
Try this: http://resources.esri.com/geoprocessing/index.cfm?fa=codeGalleryDetails&scriptID=15945 So popular it was included as a tool in 10.
... View more
05-27-2010
09:07 AM
|
0
|
0
|
1231
|
|
POST
|
Hello, Is it failing immediately, or after some time of attempting processing? Approximately how many records are you buffering? Are the features inside a fGDB, shapefile, SDE... or?
... View more
05-18-2010
02:58 PM
|
0
|
0
|
3959
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2023 06:37 AM | |
| 1 | 09-18-2025 07:07 AM | |
| 2 | 09-18-2025 06:52 AM | |
| 1 | 03-23-2023 12:07 PM | |
| 1 | 10-21-2024 12:40 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-30-2025
06:25 AM
|