POST
|
Putting a single value in (parens) doesn't turn it into a tuple. >>> path=("C:/Users/fazeel/Desktop/ExampleCase/LeicesterCity_Leeds") >>> type(path) <class 'str'> You'd need to add a comma to get that: >>> path=("C:/Users/fazeel/Desktop/ExampleCase/LeicesterCity_Leeds",) >>> type(path) <class 'tuple'>
... View more
11-12-2014
09:45 AM
|
1
|
1
|
38
|
POST
|
The error message says it all. An UPDATE statement doesn’t return rows. You can execute() without calling fetchall() .
... View more
10-31-2014
11:20 AM
|
0
|
1
|
308
|
POST
|
Yes. You'd do parameters[3].valueAsText = "returnvalue".
... View more
10-29-2014
01:41 PM
|
0
|
2
|
31
|
POST
|
Get rid of that whole part at the top of your script where you create the sr and set the environment. It'll only get executed once and may get clobbered by anything else. Instead set it on the point:
ptGeometry = arcpy.PointGeometry(inpoint, arcpy.SpatialReference(4326))
... View more
10-29-2014
09:50 AM
|
0
|
4
|
31
|
POST
|
arcpy mostly just wraps arcgisscripting in a Python-programmer-friendly way. Like Dan said, arcpy.da cursors are way faster. Otherwise any speed improvements you'd see in arcpy (I'm not aware of too many, aside from a few specific geoprocessing tools that now benchmark better) will also apply to arcgisscripting.
... View more
10-29-2014
09:40 AM
|
1
|
0
|
9
|
POST
|
You probably don't need to bother with the .EmptyClipboard() call at all, I'd assume SetClipboardData would just overwrite it if needed. Also make sure you correctly case CloseClipboard() in your code, it's closeClipboard() in your source right now.
... View more
10-22-2014
11:36 AM
|
0
|
0
|
37
|
POST
|
That is probably the problem. You installed Python after installing ArcGIS? You've probably messed up your installation now, you may want to uninstall both and reinstall just ArcGIS. As a hack, you may be able to run C:\Python27\ArcGIS10.1\python.exe right now. If it won't import arcpy, then you'll need to do the reinstallation first. But python.exe will live in C:\Python27\ArcGIS10.1\, not C:\Python27\ after you've installed ArcGIS.
... View more
10-21-2014
04:32 PM
|
1
|
0
|
43
|
POST
|
Is ArcGIS installed on your machine? Which version? Did you install Python yourself?
... View more
10-21-2014
02:06 PM
|
0
|
3
|
43
|
POST
|
This was initially intended to be just for printing out, I never really expected people to look at this thing on a computer screen, so I didn't even think of links. On that note, I can't even add links as the markup language doesn't support it and the scheme for links to online help topics changes often enough from version to version that it'd be way more maintenance for me just to keep on top of it. You'll need to ungroup the elements in your PDF editor. Edit in Illustrator if Adobe Pro isn't doing it. I don't think there are any restrictions set on the PDF. I was also able to import both the PDF and the SVG into Inkscape (a free vector graphics editor) and manipulate it that way.
... View more
10-18-2014
11:53 AM
|
0
|
1
|
51
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|