|
POST
|
You cannot change values with a SearchCursor, only access them. You would need an UpdateCursor if you were setting values.
... View more
08-14-2015
11:09 AM
|
1
|
0
|
3241
|
|
POST
|
Old thread on topic Georeferencing in ArcGIS pro According to the post, only georeferencing that can be done is via geoprocessing tools. Vinay Viswambharan, any updates on this?
... View more
08-13-2015
01:41 PM
|
0
|
3
|
2009
|
|
POST
|
There are some problems with hyperlinks on Geonet that still are not fixed yet. Just google search DataDrivenPages (arcpy.mapping) and it should pull it up in ESRI help. Here is an example for you import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Project\ParcelAtlas.mxd")
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = pageNum
print "Exporting page {0} of {1}".format(str(mxd.dataDrivenPages.currentPageID), str(mxd.dataDrivenPages.pageCount))
arcpy.mapping.ExportToPDF(mxd, r"C:\Project\OutPut\ParcelAtlas_Page" + str(pageNum) + ".png")
del mxd
... View more
08-13-2015
01:24 PM
|
1
|
1
|
3227
|
|
POST
|
A pattern matching tool to me sounds a bit farfetched considering most of your stock global imagery is taken from overhead view, while one taken by hand from a plane is likely to be oblique. Combine that with the amount of area that has imagery coverage and the fact that places can change greatly over time, it could be like finding a needle in a haystack for a pattern matching tool. Crowdsourcing could be a good way to try and have someone identify where a picture was taken if they know an approximate area the plane was over when it was taken. Got a link to the photo?
... View more
08-12-2015
01:45 PM
|
2
|
1
|
3168
|
|
POST
|
Sites like FlightStats keep track of flight stats, paths, locations in time, etc. If the picture had a time stamp it might be possible to corroborate with the flight tracking record to get an approximate location of where the picture would have been taken, then corroborated in Google Earth or something similar. If they knew their flight information, they should be able to get the flight path information.
... View more
08-12-2015
01:41 PM
|
2
|
0
|
3168
|
|
POST
|
if you use python as a parser for the field calculator it should be as simple as: DoubleField = float(!TextField!) should convert your string values to floats, as long as the string is composed on only numbers and decimals.
... View more
08-12-2015
12:33 PM
|
1
|
0
|
1049
|
|
POST
|
Under the formatted text tab when editting text labels, you can control the character spacing and the character width of characters in labels or other text. I don't believe you can directly control the height, but playing with the character width, character spacing, word spacing, and font size, you might be able to get closer to what you want.
... View more
08-11-2015
09:36 AM
|
1
|
0
|
818
|
|
BLOG
|
Wally Kempf, you didn't post any attachment. Might want to try again.
... View more
08-07-2015
11:36 AM
|
0
|
0
|
12873
|
|
POST
|
The changes are fairly minor, just a new title bar thats a picture element now instead of a graphic element and map surround element, and the dataframe x,y locations have been adjusted slightly. I'm actually not sure if you can copy dataframes, but I could just copy all the layers and add them to the other map document dataframe.
... View more
08-07-2015
11:03 AM
|
0
|
0
|
1022
|
|
POST
|
Alright GeoNet I need some input on a project. I have 2400 or so map documents that all followed an old style template that was being used for our map documents. We have devised a new template that have some different layout elements than the last one(PictureElements instead of some GraphicElements or MapSurroundElements), which all the old map documents should be moved over to. There was an automated process for generating the maps, but even with the automation all the maps would need some edits and tweaks, so thats 2400 maps to re-edit if I just reproduce them using the script with the new templates. Since I really don't want to hand edit some 2400 documents again, wanted some input on how best to accomplish this. The easiest way to handle this would be if I could: A.) Add new layout elements with python to the existing map documents, but thats not possible without ArcObjects as I recall, or B.) If I could copy layout elements from one map document to another, which again I don't believe is possible(please let me know if so). Since I think neither of those options are available, would it be best to use the access the new templates via python then just copy the dataframes from the existing map documents, copying the existing extents, and re-doing the other elements that stay the same on the each map, then saving these new map documents? Does this sound like a good way to proceed, or does anyone know of any other good solutions for something like this? Thanks in advance! Ian
... View more
08-07-2015
10:43 AM
|
0
|
2
|
3325
|
|
POST
|
Jake should probably help you out but I can take a look at it in a little bit. For future reference, posting code in code blocks in Geonet makes it significantly easier to read. See Posting Code blocks in the new GeoNet for help on that. Also, you should be able to run Python 2.X and 3.X on the same computer, and I'm guessing the only reason you are using 3.4 is because you are running ArcGIS Pro? You should be able to run Pro and ArcGIS 10.3 on the same computer and use the Python 2.7 version of his tool.
... View more
08-07-2015
08:52 AM
|
0
|
2
|
1966
|
|
POST
|
According to the help, you can switch workspace types with replaceDataSource. The third parameter is the dataset name to be replaced. "A string that represents the name of the dataset the way it appears in the new workspace (not the name of the layer in the TOC). If dataset_name is not provided, the replaceDataSource method will attempt to replace the dataset by finding a table with a the same name as the layer's current dataset property." So yes you would need to provide the script with the databasename and schema for replaceDataSource to work properly.
... View more
08-06-2015
11:37 AM
|
0
|
0
|
4011
|
|
POST
|
That would mean that there are no map documents in the filepath you gave. Also: arcpy.env.workspace = ws = "C:\Users\00177153\Desktop\ArcPy" Should just be: arcpy.env.workspace = "C:\Users\00177153\Desktop\ArcPy" However, if there are no mxds in that directory, then you will have no items in your list to export, hence the error.
... View more
08-06-2015
08:18 AM
|
0
|
3
|
3152
|
|
POST
|
There would seem to be a problem with your where clause. Joshua Bixby makes a good point about using python string formatting in this thread Python - Select by attributes query issue. I would suggest you take a look at make sure your expression is working properly. Further reference on python string formatting can be found here: 7.1. string — Common string operations — Python 2.7.10 documentation
... View more
08-05-2015
12:19 PM
|
0
|
0
|
3199
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-22-2017 08:58 AM | |
| 1 | 10-05-2015 05:43 AM | |
| 1 | 05-08-2015 07:03 AM | |
| 1 | 10-20-2015 02:20 PM | |
| 1 | 10-05-2015 05:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|