|
POST
|
Try this for your select statement: arcpy.SelectLayerByAttribute_management("counties_edited_datamergetest", "NEW_SELECTION", "'" + str(species) + "' > 0 " )
... View more
04-05-2012
02:25 PM
|
0
|
0
|
1442
|
|
POST
|
I've searched our internal database and asked a couple people - we dont have any known issues logged for a crash in this regards. Can you confirm you're using 10.0? Also, is the crash consistently reproducible? If it is, can you write out the steps you do where it crashes? If we can reproduce the crash, we can fix it (and of course want to fix it)
... View more
04-02-2012
11:05 AM
|
0
|
0
|
4877
|
|
POST
|
I guess not for "create help" But "document tool" finds it. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001500000014000000.htm "Help" is such a generic word through the whole help/doc system 🙂
... View more
04-02-2012
07:43 AM
|
0
|
0
|
4877
|
|
POST
|
For sure this can be done with inline variables. High level help: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002w0000001t000000 Inline vars in Modelbuilder: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Examples_of_inline_model_variable_substitution/002w0000005w000000/ Example 3 from the above topic pretty much does exactly what you want. Create a variable, then use the inline variable in your select statement.
... View more
03-22-2012
07:48 AM
|
0
|
0
|
801
|
|
POST
|
I'm sure someone will jump in here and correct me if I'm wrong - but it might be that Google maps cannot support icons inside a KMZ. Its a simple web client, where Google earth and ArcGIS Explorer are full clients. From what I've read, Google Maps supports Icons inside of KML. (all the doc I read on Maps explains KML, not KMZ specifically). https://developers.google.com/kml/documentation/kmlelementsinmaps KML icon tags point to files on the internet. (http://.../myIcon.png). With a KMZ file the icons and images get embedded inside. I haven't read one way or the other if Maps can or cannot use icons or files inside a KMZ. Sorry, I realize this doesn't give you an answer. Until I can read something or see a KMZ with an icon that Maps can use, Im not sure its possible.
... View more
03-14-2012
12:41 PM
|
0
|
0
|
3679
|
|
POST
|
As Joe figured out, it sounds like you have data with Z values of either 0 or below the surface of the earth. At the 10.1 release we're added a parameter to the tool to "clamp features to the ground" - basically it will override your Zvalues. For now, you could try: Run the Create Feature Class tool (make sure to keep the Has Z setting DISABLED) Run Copy Features tool with your original feature class and insert into the new feature class. Run Layer to KML on the new featureclass and see how that behaves inside your KML client.
... View more
03-14-2012
10:58 AM
|
0
|
0
|
3679
|
|
POST
|
No, I mean the web application keeps track of whos logged. When the GP Service is called, its the web app that passes the "user name" parameter in. It would be transparent to the user. But I guess that means you having to convince your customer to handle that bit of logic in their web app for you. Again, just an idea - maybe someone else has done something like this and has a better way.
... View more
02-29-2012
06:56 AM
|
0
|
0
|
2413
|
|
POST
|
Just thinking out loud: I assume you have people using it from a web application which they logged into? If thats the case you could add some another parameter to your service, and when its called from the web application (which has authenticated), have the user name passed in under the hood). Or with any sort of web calls, you'll probably already have a token. So, however you got that token, can you some how get/send the account at that time? If you're connecting via Desktop then you may have to look into ways to connect to the security store and do a query there. Its an interesting question, but the answer will probably be driven by your exact workflow. Also; you and Darrin are right - the Python code you have will simply show you the windows account running the Server instance (arcsoc.exe process). The tool which is executing has no knowledge of the GIS Server security, it simply knows it can run because you've already got past authentication.
... View more
02-28-2012
12:43 PM
|
0
|
0
|
2413
|
|
POST
|
I was just made aware this is logged, heres the tracking number: NIM077457 - Raster save errors when using "%scratchworkspace%" in output path. Note - this is not fixed in the pre-release. You'll have to continue using the workaround till final. Sorry for the inconvenience, but big thanks on testing and reporting!
... View more
02-28-2012
11:30 AM
|
0
|
0
|
2281
|
|
POST
|
Actually, this would be better than constructing paths with "+" dstfile = os.path.join(arcpy.env.scratchFolder, "Spline_selec3")
... View more
02-28-2012
06:56 AM
|
0
|
0
|
2281
|
|
POST
|
Its obvious I havent had enough coffee yet... I just assumed this was on the consumption of the GPK. My machine is updating, so I cant test your exact scenario right now, but the following code should work. Notice the line I commented out and replaced with "almost" the same thing.
# Import arcpy module
import arcpy
from arcpy import env
from arcpy.sa import *
# Check out any necessary licenses
arcpy.CheckOutExtension("spatial")
# Local variables:
selection0 = "selection0"
dstfile = arcpy.env.scratchFolder + "Spline_selec3"
#dstfile = "%scratchFolder%\\Spline_selec3"
outSpline = Spline(selection0, "inmval", weight="0.1", number_points=24, spline_type="REGULARIZED")
outSpline.save(dstfile)
... View more
02-28-2012
06:55 AM
|
0
|
0
|
2281
|
|
POST
|
(I'm coming at this from the GP side - not so much the Runtime side) Can you try replacing the %scratchworkspace% variable with %scratchFolder% and re-creating your gpk? We've had issues (and I dont recall when we've fixed them exactly) where inline variables, like scratchworkspace were not being evaluated. Even though scratchFolder is derived from scratchworkspace, they are handled in slightly different ways during the package creation process, thus might be behave differently on consumption.
... View more
02-28-2012
06:42 AM
|
0
|
0
|
2281
|
|
POST
|
Im sure there are better ways to do this, but heres a quick and dirty way:
import urllib2
try:
urllib2.urlopen('http://hsfdsda.com')
except:
print "didnt work"
... View more
02-17-2012
07:09 AM
|
0
|
0
|
457
|
|
POST
|
Glad you got it figured out - I had just created a little script tool and map document to prove what you're trying to do, but came on and see you got it. Cheers!
... View more
02-10-2012
10:59 AM
|
0
|
0
|
2815
|
|
POST
|
Becky, Your note in the code about: --> this won't work service if the service wasn't originally started --> to begin with....would never make the "services" list This is because I did the "list services" in the lazy way. I listed the services from the Services Directory, not from the ADMIN part. The Services Directory only shows services which are running, where the Admin shows stopped and started services. With Jason S. help I sometimes hack my little script a bit. If I get a more robust version, I'll post it up - otherwise what you have is nice. And it should work fine with pre-release. There arent any (to my knowledge) changes to the URL or REST connections.
... View more
02-08-2012
07:55 AM
|
0
|
0
|
2136
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-25-2026 08:25 AM | |
| 1 | 09-29-2025 05:19 AM | |
| 1 | 09-20-2023 06:37 AM | |
| 1 | 09-18-2025 07:07 AM | |
| 3 | 09-18-2025 06:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-25-2026
08:04 AM
|