POST
|
I encountered the same problem, and I found that the images, once georeferenced, can be exported and the "no data value" set to 0 to fix the issue. (I haven't tried leaving it blank, but I'd assume that works as well) FYI, my office runs a variety of Arc versions, from 10.1 to 9.3, all on machines running Windows XP. We had the issue of the older 9.3 machines not being able to load in images georeferenced by 10.1 or 10.0 machines from a network drive. Thank you for the fix suggestion!
... View more
02-15-2013
04:38 AM
|
0
|
0
|
1385
|
POST
|
Also, be sure to set all output parameters as output in the parameters under the "Direction" field below the parameter list. The Data Types can be a bother to get straight, but tweaking these may solve errors generated by running your tool with parameters. I almost wonder if it isn't easier to test any scripts without parameters and then go back to add them in. So back to the original question: you could have a user specify a text file (text files are an option in the parameters tab, so I assume that it works) userinputtextfile = arcpy.GetParameterAsText(0) output = open('gnis.csv', "a") for line in userinputtextfile line=line.replace("|", ",") output.write(line) output.close() That should fix your input issue, however the output will be slightly different, something slightly different, like: userinputtextfile = arcpy.GetParameterAsText(0) outputcsv = arcpy.GetParameterAsText(1) output = open(outputcsv, "a") for line in userinputtextfile line=line.replace("|", ",") output.write(line) output.close() I likely violated some python language parameter, but you get the idea. Also, I think the suggestions I made might be specific to Arc 10.x, so please take both factors into consideration when editing your code.
... View more
06-13-2012
07:25 AM
|
0
|
0
|
1451
|
POST
|
Ok, I have figured it out now. To do this you need to do two things: Firstly the python code you want is: xvariable = arcpy.GetParameterAsText(0) yvariable = arcpy.GetParameterAsText(1) etc. If you pull up the help file for "get parameters as text", you will get this code snippet: -----(Code copies a feature class {infeatureclass} to a location {outlocation}; very straight forward)---------------------- import arcpy from arcpy import env import os # Set the input workspace, get the feature class name to copy # and the output location. # env.workspace = arcpy.GetParameterAsText(0) inFeatureClass = arcpy.GetParameterAsText(1) outLocation = arcpy.GetParameterAsText(2) outFeatureClass = outLocation + os.sep + os.path.basename(inFeatureClass) # Copy feature class to output location # print "running line: arcpy.Copy_management(inFeatureClass, outFeatureClass)" arcpy.Copy_management(inFeatureClass, outFeatureClass) ---------- However this is not all, because you have to set the parameters for the script. So far as I can tell the only way that python distinguishes between which text is supposed to go where is from the order of the parameters, designated by those numbers in parenthesis after "getparameterastext". To set up parameters for a script: after adding it to your custom toolbox right click it and select the parameters tab. Here you can put a name for each parameter in the left column which it will appear in the tool box before running, and after you can select the data type in the right column, which (*I believe) limits the type of input data to match your desired script. There are many types, so be careful. I'm still learning, but it appears that the order is what determines which user input field corresponds to, meaning that in the sample script the top parameter in the parameters tab would correspond to environment workspace (env.workspace = arcpy.GetParameterAsText(0)). I may yet have more to add to this in the near future. It strikes me as strange that this wasn't easier to figure out.
... View more
06-13-2012
05:50 AM
|
0
|
0
|
1451
|
POST
|
I think this link might elaborate more on your question: http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/e7d06ae9-a6d1-4248-a7a3-9d5f375f088c.htm Apparently it's all in the tutorials mentioned above, but those can be difficult to navigate at times. I'm working on the same problem, and I'll post more as I learn.
... View more
06-12-2012
11:10 AM
|
0
|
0
|
1451
|
POST
|
to update: I was getting a confirmed signal after experimenting with GPS controller and using TSIP briefly. This worked until I reset the unit from GPS controller, after which I received error code 5: COM port is in use by another application.
... View more
04-08-2011
09:30 AM
|
0
|
0
|
536
|
POST
|
I'm having a similar problem with ArcPad 8 SP4. I'm using an Xplore Tablet PC connected via Bluetooth to a Trimble Pro XH GPS unit. I ran into the "port in use by another application" error and resolved that with the Service pack 4 update. Now, although I can get a fix with my GPS controller, I cannot get my ArcPad software to connect. So far I've tried the following: Disabled ActiveSync - (necessary for error code 5) Disabled other background processes that might be connecting with the GPS. - (necessary to end error code 5) GPS priority Extension - no effect I'm testing the 20min. suggestion mentioned above, and also switching to TSIP protocol. Is that the default protocol for Trimble units? Before I was using the GPS controller to set the Trimble units to NMEA with no better luck.
... View more
04-08-2011
08:01 AM
|
0
|
0
|
536
|
POST
|
Service pack 4 has moved me from being unable to recognize the GPS to not being able to receive data from the GPS. I no longer receive error 5, and I can get my GPS to function with my GPS Controller software. I have experienced no difference using the priority script. On my desktop I experienced Error code 5 while running Microsoft ActiveSync background processes, and disabling those along with all other sync and GPS related processes allowed me to get data to transfer. I still have problems, but at least I am no longer receiving error code 5.
... View more
04-08-2011
06:36 AM
|
0
|
0
|
436
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|