|
POST
|
I just tried running 'Geotagged photos to points' tool in the Photos toolset on a folder of jpegs, but got a long list of error messages, culminating in 'Import Error: no module named numpy'. Reading the documentation and sample python scripts, there is no mention of needing to import numpy. Numpy is not imported in the actual script for the tool either. The script does import ExifUtils, but I can't find documentation on that to see if it requires numpy. So my question is, is numpy required even though not explicitly mentioned?
... View more
03-03-2016
01:16 PM
|
0
|
7
|
4991
|
|
POST
|
Thanks Melita. The CAD data displays ~ 2500 miles west, slightly south (don't recall by how much -visibly so, but not nearly as far). Creating a world file ran into the same crash problem referenced in the patch Kyle referred to. I ended up modifying the projection file used by the reference data (State Plane) using the method described in Margaret Maher's book 'Lining Up Data in ArcGIS' for non-rotated local coordinates.
... View more
12-30-2015
07:00 AM
|
2
|
0
|
1957
|
|
POST
|
Thanks Kyle, Looks helpful. I'll ask IT to install this (no local copy of Arc, running of a server).
... View more
12-29-2015
10:05 AM
|
1
|
0
|
1957
|
|
POST
|
I received a .dwg file of a county drain from an engineering firm that doesn't display in the correct location (it's very far to the west). In the past, I've georeferenced these types of files and converted them to shapefiles. I can convert them to shapefiles, but they still display in the wrong location. When I try to georeference the CAD polyline, ArcMap crashes and closes every time with the 'a serious application error' message when I try to add links. Fit to display works ok. I can't get much information from the engineering firm. They did try converting it to a shapefile on their end, but somethings is wrong with the result. None of the files will open. Based on measuring corresponding features in both the reference data and the CAD file, my guess is that the CAD units are inches, while the GIS data is in State Plane international feet. Running ArcMap Advanced 10.3.1 over a VDI connection, Windows 7, 64 bit. Any ideas on how to fix this? Thanks. Update - I did get it to line up by a trial and error process of customizing a projection file, but would still like to solve the georeferencing issue.
... View more
12-29-2015
08:30 AM
|
0
|
5
|
4609
|
|
POST
|
I believe you're supposed to pass in the character you want to remove to the strip() function. In your case, field.strip(' '). Note that this won't work on numeric fields, but they won't have blank spaces anyway.
... View more
12-29-2015
08:18 AM
|
0
|
6
|
2317
|
|
POST
|
I'm going to guess that setNo in expression needs to be formatted somehow. It may just be seen as a string as is.
... View more
10-28-2015
12:08 PM
|
1
|
1
|
3903
|
|
POST
|
If you're using the 'with' syntax for your cursors, and you are, you don't need del cursor, as Darren pointed out. The cursor will automatically be deleted when the 'with' block is exited.
... View more
10-23-2015
05:50 AM
|
0
|
1
|
1313
|
|
POST
|
Here you go.Didn't see an Advanced Editor on the direct message box.
... View more
10-12-2015
08:16 AM
|
0
|
2
|
855
|
|
POST
|
I don't see a way to upload files, either in this box or thr message box. Only options are images or video. I suppose I could copy and paste the code, might be a little long though.
... View more
10-12-2015
05:34 AM
|
0
|
4
|
2871
|
|
POST
|
Sure, I'll share my script. I have two versions, one as a plain script tool, one as a python toolbox. I'm not sure how to post or send it, though, other than as an attachment to a post here.
... View more
10-09-2015
12:02 PM
|
0
|
6
|
2871
|
|
POST
|
Thanks Rebecca. The icons are showing up today (??), I'll check them out. When you update the addin, you may want to check the tooltip for 2 - Inventory. There are a couple of typos.
... View more
10-09-2015
05:40 AM
|
0
|
8
|
2871
|
|
POST
|
Rebecca, I'm able to use the tools from the toolbox, but the toolbar doesn't appear properly (image below). The tools themselves don't from there either, so it doesn't seem like links to the icon images being broken is the problem. Any ideas? Thanks
... View more
10-08-2015
01:09 PM
|
0
|
10
|
2871
|
|
POST
|
I have a python toolbox which crawls directories, or optionally a single mxd, and writes out various properties of the layers in them to a csv file, mostly interested in the data source. This works great, except...,. I check for group layers to skip those. The tool does skip top level group layers, but not group layers nested in other group layers. How can I skip those? I originally set a default location and file name for the output csv file, which the user can change. This works if the file doesn't already exist, but if it does, that parameter gets a big red X when the tool is run. The file is set to 'w', so I assumed it would just overwrite the existing file. Is it possible to do what I thought would happen? In the self.description in the __init__ function, I'd like to break the text on different lines and paragraphs. But no matter how many \n's I add, the tool ignores them when run, and collapses the text into one block. Is there a way to accomplish this? Thanks, relevant code below. for mxd_path in mxd_list:
try:
mxd = arcpy.mapping.MapDocument(mxd_path)
dflist = arcpy.mapping.ListDataFrames(mxd)
for df in dflist:
for lyr in arcpy.mapping.ListLayers(mxd, '', df):
if not lyr.isGroupLayer:
nm = lyr.name
ds = '-- X --'
if lyr.supports('dataSource'):
ds = lyr.dataSource
lyr_attributes = [mxd_path, nm, ds]
writer.writerow(lyr_attributes)
else:
if not lyr.isGroupLayer:
arcpy.AddMessage('\nLayer {0} does not support the dataSource property'.format(nm))
unsupported.append(nm)
lngnm = lyr.longName
except Exception as e:
arcpy.AddError('EXCEPTION: {0}\t{1}\t{2}'.format(mxd_path, lngnm, e))
continue
writer.writerow([''])
del mxd
... View more
10-07-2015
09:43 AM
|
0
|
13
|
6318
|
|
POST
|
This has never been a problem for me, but on the Items tab of Legend Properties you can Select All and then set your font. This doesn't set the font automatically, but at least you can add layers without changing fonts until you need to print or publish.
... View more
09-11-2015
07:41 AM
|
0
|
0
|
960
|
| Title | Kudos | Posted |
|---|---|---|
| 6 | 08-22-2019 07:41 AM | |
| 1 | 05-05-2014 04:30 AM | |
| 1 | 08-15-2018 06:23 AM | |
| 3 | 08-06-2018 07:31 AM | |
| 1 | 03-30-2012 08:38 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-12-2021
01:00 PM
|