|
POST
|
My guess is that the tool is opening off-screen. When you open the XY tool, look very closely at the edges of your screen for a sliver of new window that you may be able to drag back. Also, see this article for possible fixes to older versions - changing resolution to show more desktop area sounds promising. Otherwise, I suggest connecting to a dual monitor and dragging the window back to the center of ArcMap.
... View more
02-15-2015
09:24 AM
|
0
|
0
|
6200
|
|
POST
|
Off the top, it should be arcpy.env.overwriteOutput = True (no quotes) and setting inPointFeatures = "fc" literally sets the variable to the string "fc" and is never used.
... View more
02-14-2015
07:21 PM
|
0
|
1
|
1642
|
|
BLOG
|
Here is my list of things to try when having a random ArcGIS problem: Restart ArcGIS Restart computer If problem seems map-related: Delete Normal.mxt, found in install folder. For me: C:\Users\{USERNAME}\AppData\Roaming\ESRI\Desktop10.2\ArcMap\Templates Copy mxd to new map document If problem seems data-related Rebuild spatial index. If shapefile, save to GDB feature class. If GDB feature class, save to shapefile.
... View more
02-13-2015
04:45 PM
|
1
|
8
|
4122
|
|
POST
|
Regarding values of 1-100+: referring to this help page, it tells you that the Image Analysis NDVI button applies two function NDVI and Colormap. following onto the NDVI function page, it explains why the values are positive - to fit in an 8-bit raster (0-255). You can scale the values 0 -> 255 to -1 -> 1, using a formula like: ((value/255) * 2) - 1
... View more
02-13-2015
12:06 PM
|
1
|
2
|
5473
|
|
POST
|
Is it a display problem, or data problem? If you click with the Identify tool, does it return sensible numbers, or a constant value? If sensible, it's a display problem and you should Calculate Statistics. If a constant value, you have made an error running the tool, or your data are not what you think they are.
... View more
02-13-2015
11:55 AM
|
1
|
0
|
922
|
|
POST
|
If you're going to go to all that trouble, why not: 1.) Add a new field, with new name 2.) Calculate from old field to new field For what it's worth, the free version of ETGeoWizards has the Rename Field tool.
... View more
02-13-2015
11:48 AM
|
0
|
0
|
3096
|
|
BLOG
|
This is a great list of Best Practices When Using Excel Files with ArcGIS. In my experience, the problem is almost always to do with field names. Remove all characters, except alphanumeric and underscore. Field names must start with a letter. Keep field names short.
... View more
02-13-2015
11:41 AM
|
0
|
0
|
782
|
|
BLOG
|
This question almost always boils down to knowing the difference between Defining a Projection and Projecting Data. Define Projection Your data was created using some coordinate system. The data itself knows those coordinates, however, the file may not know what coordinate system it is supposed to use. Use Define Projection to tell the data (which, in turn, tells ArcMap) what coordinate system to use. Define Projection is used to assign a known coordinate system to an unknown coordinate system. Project If you want to switch projections for some reason (e.g. to lessen certain inherent projection-specific bias), use the Project tool. Project is used to assign a different known coordinate system to data (that has a known coordinate system)
... View more
02-13-2015
10:01 AM
|
0
|
0
|
949
|
|
POST
|
In your second script (the glob script), what is the output of "print shapefile' inside the loop? Does it list anything? If so, do you notice anything out of the ordinary?
... View more
02-12-2015
05:12 PM
|
0
|
0
|
11021
|
|
POST
|
Can you provide a picture of the problem? Also, please provide the exact syntax of your delimited labels.
... View more
02-12-2015
11:42 AM
|
0
|
2
|
1689
|
|
POST
|
Hard to say exactly what the problem is - there are lots of fancy things you can do in ArcMap that mess up PDF export. But, the workaround may be to export to JPG, then convert the JPG to PDF in your PDF software, as attached. You may need to bump up the resolution in your JPG.
... View more
02-11-2015
04:05 PM
|
0
|
0
|
3697
|
|
POST
|
Have you considered hiding all code from your users by using your script as a script tool? http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001500000006000000.htm Then it's a matter of getting your users to enter parameters via the tool dialog, and accessing those parameters with arcpy.GetParameterAsText().
... View more
02-11-2015
01:38 PM
|
2
|
0
|
2235
|
|
POST
|
Not that this answers the question why the file is M aware, but the issue seems to be in saving to a shapefile. If you run the code saving to an 'in_memory' feature class, it is PolygonZ.
... View more
02-10-2015
09:00 AM
|
1
|
1
|
2369
|
|
POST
|
Here's how you can automate this with arcpy geometry objects: >>> import math
>>> length = 100000
>>> lines = []
>>> degrees = 5
>>> with arcpy.da.SearchCursor("YOUR_POINT_LAYER_NAME_HERE","SHAPE@") as cursor:
... for row in cursor:
... for i in range(360/degrees):
... dx = math.cos(math.radians(i*degrees))*length
... dy = math.sin(math.radians(i*degrees))*length
... startPoint = row[0].centroid
... endPoint = arcpy.Point(row[0].centroid.X+dx,row[0].centroid.Y+dy)
... line = arcpy.Polyline(arcpy.Array([startPoint,endPoint]))
... lines.append(line)
...
>>> arcpy.CopyFeatures_management(lines,'in_memory\lines') edit: I just read the point about limiting between 180 and 360. This can be incorporated into the above script.
... View more
02-09-2015
01:56 PM
|
3
|
0
|
1729
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-30-2013 02:22 PM | |
| 1 | 04-12-2011 11:19 AM | |
| 1 | 09-17-2021 09:43 AM | |
| 1 | 04-04-2012 12:05 PM | |
| 2 | 07-16-2020 11:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-15-2023
12:11 AM
|