POST
|
Hello Randy. Thank you for the response. I am looking to save the attribute data to the exif of the jpeg. I understand that information stored with the image and in the exif is drone collected, but would like to be able to use the related feature class attributes to write in field collected point data to the exif. My test file is a one-to-one relate; but others are one-to-many. I have joined the feature class to the Attachment table but am unable to get beyond this point because you can't export the attach table to a new one and maintain the attachments. I appreciate your help. I hope that makes sense...I feel like I am making circular statements...
... View more
01-24-2019
03:38 PM
|
0
|
0
|
552
|
POST
|
Hello. We have been provided a geodatabase containing a point feature class and related attachments and tables. I have successfully exported the attached images from the geodatabase with the specified naming scheme. However, the question came up about whether it is possible to export attachments from the geodatabase, but this time INCLUDE the pop-up info (i.e., attribute data) in the "properties" of the image file. As an example, say an image of manhole 1_WW currently shows the xy location of the point, but it does not include any of the information that was added to the point feature class such as type, diameter, depth, etc, all of which are in the attribute table of the point. I appreciate your help. Thank you. Here is the script I used: import arcpy from arcpy import da import os inTable = arcpy.GetParameterAsText(0) fileLocation = arcpy.GetParameterAsText(1) with da.SearchCursor(inTable, ['DATA', 'ATT_NAME', 'REL_GLOBALID']) as cursor: for item in cursor: attachment = item[0] filenum = "ATT" + str(item[2]) + "_" filename = filenum + str(item[1]) open(fileLocation + os.sep + filename, 'wb').write(attachment.tobytes())
... View more
01-23-2019
03:17 PM
|
0
|
5
|
713
|
POST
|
Hello. I wonder if anyone else has experienced this weird occurrence. I have a feature class in my main "Layers" Data Frame. Somehow, the feature class copied over to one of my other Data Frames, and now seems to lock or control the feature class within my main Layers Data Frame. So, for example, if I try to remove the layer from the second Data Frame, it is removed also from the main... Ideas on how and why this happens? Thanks.
... View more
12-06-2017
12:39 PM
|
0
|
1
|
382
|
POST
|
Hello everyone. Well, it turns out the the StreamStats ended up working which saved me TONS of time. I think I must've been trying to use the application as they were finalizing v4 development because the last day I tried using it everything came together. I appreciate everyone's help and input. Thanks!
... View more
09-01-2017
11:14 AM
|
0
|
0
|
982
|
POST
|
Thank you! I'll definitely look into these... and ask questions if I have any
... View more
08-15-2017
01:59 PM
|
0
|
0
|
982
|
POST
|
We can't get the information we need from USGS StreamStats, or I would have used it. We need ditches as well and the only waterway included in the StreamStats tool is a major canal, non other features. The client has requested acres of watershed from the points of intersection between the waterway and associated line work.
... View more
08-15-2017
01:13 PM
|
0
|
0
|
982
|
POST
|
Hello. I need to calculate acreage of upstream watershed boundaries from points of intersection between a proposed alignment and surface waters. I have never used the ArcHydro tools and was pointed to the from the USGS StreamStats site and was wondering the best method for getting this information. I appreciate any help - just a point in the right direction to get me started. I am using ArcGIS 10.4 Thank you!
... View more
08-14-2017
01:17 PM
|
0
|
6
|
1415
|
POST
|
Hello Matt, there are lots of great comments on your topic - good question! For making feature classes easier to identify or find, we use the ISO codes. So for example, i18_CalTrans_MjrHwy_15, where the i18 (transportation ISO), CalTrans (author of data), MjrHwy (subject), 15 (year of publication). And then, if additional resources/information are needed, you can create a dictionary/catalog of your data which would include metadata and use restrictions. Good luck and be sure to provide your method (if not proprietary, of course). Perhaps break it down by usage type instead (this is extremely simplified). Publish (read-only, non-versioned) Edit (versioned workspace) The Publish data would be highly-available data that is not affected by versioning/editing overhead and easily consumed by data viewers and probably a better option if you intend to publish services off of the data. The edit data would only be available to editors and internal applications that require edit and/or versioned processes. You'd need to have some extract-load processes in place to move data between the two environments, but you'd de-couple the versioning/editing from the published data for enterprise usage. This way db admin tasks that require more involved/time consuming processes will not affect published, widely used data). Good luck and be sure to provide your method (if not proprietary, of course). Crystal,.
... View more
01-21-2016
11:43 AM
|
0
|
0
|
1040
|
POST
|
Hello and Happy Holidays all. I have been working on a Web Map Journal that uses a single floating panel with about 20 "pages" containing images. I am able to add hyperlinks and actions, however, I would really like to be able to include not just a hyperlink, but also an active comparison map within the panel. When I try to save the Web Map after adding the Comparison Application map into the panel I get an error saying it can't save, but the application is active within the panel. Does anyone have any idea as to why I can add the comparison map application to the panel, but then am not able to save it? I appreciate any help! Happy Christmas, Crystal
... View more
12-23-2015
11:12 AM
|
0
|
1
|
2741
|
POST
|
Happy Holidays all! So, this issue has not been resolved. We have a programmer working on the process - utilizing other code to see if it will work. We have yet to get any resolution. ESRI did put some effort into finding a solution, but to no avail. So... we are waiting to see what our programmer comes up with - to be honest, I have little hope it will work, as I have gone through and manually updated the data sources for more than 400 map documents since Sept. Sorry for not having a solution, but wanted to give an update anyway. Happy Christmas and New Year!
... View more
12-23-2015
10:59 AM
|
0
|
1
|
350
|
POST
|
UPDATE: So, there apparently is known (though not-well documents) issues with arcpy and the replaceDataSource from one workspace to an SDE Workspace. ESRI customer support is trying to figure out the cause and perhaps answer. So... this issue has not been solved for replacing all Data Sources within to start with, a single mxd. I have been able to get a single feature class to update, sometimes, until it stops working... weird issues. Anyway, here is the code that does work... sometimes: >>> #import arcpython module >>> import arcpy >>> #define mapdocument >>> mxd = arcpy.mapping.MapDocument (r"CURRENT") >>> #ListLayers function to update DataSource >>> for lyr in arcpy.mapping.ListLayers(mxd): ... if lyr.supports ("DATASOURCE"): ... if lyr.dataSource == r"full fc file path": ... lyr.replaceDataSource (r"Database Connections\connection name.sde", "SDE_WORKSPACE", "name.sde.SDE.newFCname") ... lyr.name = "FC name in TOC" ... del mxd So, good luck and happy GIS-ing.
... View more
08-19-2015
01:24 PM
|
0
|
2
|
350
|
POST
|
Hello Michael. I have run some updated code. The first 3 layers were updated however, everything else after only had the lyr.name within TOC updated, where the actual properties of the data still shows the original data source. I am not sure why. I tried just updating single layers at a time, and I got the same result. I find it strange that their are no syntax errors and that the datasource is correct (since it's changing the name in the TOC), but not actually updating the properties. Any comments/ideas are much appreciated. Thank you, Crystal Bowles Example of portion of code attached:
... View more
08-12-2015
11:11 AM
|
0
|
0
|
350
|
POST
|
Hello Ian. So, I have been troubleshooting the reason for my now WAY simplified code (I've gone to trying to get just 1 feature class w/in 1 mxd) runs, but the data source does not get updated. This is the code (I have gone to just trying to get the data source to change between geodatabases because I was getting no where with SDE): mapdoc = arcpy.mapping.MapDocument (r"Y:\HCP\_Template_HCP_Portrait_11x17_20120710.mxd") lyr in arcpy.mapping.ListBrokenDataSources (mapdoc): ... if lyr.supports ("DATASOURCE"): ... if lyr.dataSource == r"Y:\00726_11_BDCP\data\BDCP_BaseMap2.gdb\ICF_Cities": ... lyr.replaceDataSource (r"T:\WGI-38\GIS_33_00\GISRequest_11F\Deliverable_10F\MGT096_13\GISFiles\BDCP_EIRS_HCP_15.gdb", "FILEGDB_WORKSPACE", "i13_BDCP_Cities_09") ... mapdoc.saveACopy (r"Y:\HCP\_Template_HCP_Portrait_11x17_20120710s.mxd") As I said, the code runs, no errors, but none of the data is updated in the new or current mxd. Any ideas why this might be happening? I appreciate everyone's help.
... View more
08-05-2015
01:31 PM
|
0
|
2
|
1366
|
POST
|
Thank you, Ian. I am currently working on a map-to-map basis, since yes, as you mentioned, each one contains different layers. I will certainly try yours. I had seen a similar post to yours on another site, but this one certainly seems easier to understand. Thank you for your help. Will let you know how it works. Crystal.
... View more
07-31-2015
04:09 PM
|
0
|
5
|
1366
|
POST
|
Hello all. We have a large task of replacing datasources for MANY feature classes and rasters (we received data from a consultant, and in order to place the data on the Client's enterprise server, all data has to conform to schema requirements). I have saved all of the data in their respective receptacles on the enterprise SDE environment. Now, I need to change the datasources within each of the mxds - this means every feature class in every mxd has to be relinked to the new name and location on the SDE. I want to do this with Python - naturally, otherwise task is beyond tedious. So, I have my list of broken links, I have a table with name and location crosswalk for reference. I am not at all a Python guru and could really use some help in figuring out what the error below means (I feel like it has something to do with the enterprise SDE connection properties, but honestly don't know, especially since it is referencing my storage properties): I have my broken list already, so am referencing that: >>> for lyr in brokenlist: ... if lyr.supports ("DATASOURCE"): ... if lyr.dataSource == "Y:\00726_11_BDCP\data\DHCCP_ENG_Rev10b\DHCCP_Eng_Rev10b.gdb\Option_Point_Features": ... lyr.replaceDataSource ("Y:\00726_11_BDCP\data\DHCCP_ENG_Rev10b\DHCCP_Eng_Rev10b.gdb\Option_Point_Features", "SDE_WORKSPACE", "C:\Users\cbowles\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog\dhccp_eng.SDE.ER10b_Option_Point_Features") ... mapdoc.save () ... del mapdoc Runtime error Traceback (most recent call last): File "<string>", line 5, in <module> File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\utils.py", line 181, in fn_ return fn(*args, **kw) File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\_mapping.py", line 801, in save return convertArcObjectToPythonObject(self._arc_object.save(*gp_fixargs((), True))) IOError: MapDocObject: Unable to save. Check to make sure you have write access to the specified file and that there is enough space on the storage device to hold your document. I appreciate all helpful comments. Thanks, Crystal
... View more
07-31-2015
03:13 PM
|
0
|
13
|
6273
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|