|
POST
|
Using Python you could check each Polygon Geometry and check to see if it is multipart or not. I don't think in a feature class property or layer property itself there is any way to access whether the feature is multipart or not(Someone correct me if I'm wrong here). http://pro.arcgis.com/en/pro-app/arcpy/classes/polygon.htm http://gis.stackexchange.com/questions/43943/how-to-filter-out-multipart-polygons-and-then-buffer
... View more
02-02-2017
07:45 AM
|
2
|
0
|
12792
|
|
POST
|
This has been covered fairly extensively before. https://community.esri.com/thread/120044
... View more
01-31-2017
09:39 AM
|
0
|
1
|
1892
|
|
POST
|
First Dave Matthews, now Jerry Garcia, what distinguished guests today. Anyways, I don't think that combining a large number of small features into a small number of large features will do you much in terms of performance for drawing your features. The features resulting geometry would end up being just as dense as it already is, just in a smaller number of features. If you did want to condense down the number of features in your table, you could always do a Dissolve based on the elevation value of the contour lines, so you only have records for each individual elevation value. However, the tool does warn about making datasets that are too large and complex which can cause processing issue. If you are mainly using the contours for display on a map, you could probably use the Simplify Lines Tool from the Cartography Toolbox to reduce the size of your feature while maintaining a degree of spatial accuracy(for contours I would probably use the Bend Simplify Algorithm). This would create a new feature that you could have for map purposes while maintaining a full accuracy contour dataset. Any more details about what you are wishing to do would be useful.
... View more
01-31-2017
08:49 AM
|
1
|
1
|
1455
|
|
POST
|
Have you looked at using cursors to pull the values of each value of each field you need in a row to check see if it is greater than 0? https://pro.arcgis.com/en/pro-app/arcpy/data-access/updatecursor-class.htm
... View more
01-27-2017
03:07 PM
|
1
|
0
|
4564
|
|
POST
|
Have you tried zooming into to smaller area? In my first example it showed no points because I was zoomed out to far, if you zoom in it will usually show start showing some of your points. If the points are truly in the dataset, then you should be able to create a DSM from them, even if the points aren't showing on the display.
... View more
01-27-2017
03:01 PM
|
0
|
0
|
2438
|
|
POST
|
Here is a screenshot for what mine looks like. Can you check your layer properties and see how many points the dataset says it has? Also when you created your LAS Dataset, what was your process for creating it? I usually create an empty LAS Dataset in the Catalog, then add my .las file to them(Add Files to LAS Dataset Too)l, instead of adding them when I create my LAS Dataset.
... View more
01-27-2017
02:26 PM
|
0
|
2
|
2438
|
|
POST
|
Did you bring the .las file directly in, or did you create a LAS Dataset? Have you made any LAS Dataset Layers, or just the LAS Dataset? Does it show the red Bounding Box of the LAS Dataset extent? What percentage of points does it say it is trying to show in the TOC? Many time if you have too many points in the current extent, ArcMap will be unable to show all the points and shows none at all. Additionally, have you changed the layer properties at all to subset the points you want to show based on their return values or classification? Screenshots of your problem will help greatly, I will dig around and see if I have any LAS file around I can do screenshots from if you need examples of anything I mentioned.
... View more
01-27-2017
01:59 PM
|
0
|
4
|
2438
|
|
POST
|
Could you please format your code so it is a bit more legible on the forum? https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting
... View more
01-26-2017
01:26 PM
|
0
|
1
|
1335
|
|
POST
|
after you set the values with the cursor for the row, you need to have cursor.updateRow(tmpRow), otherwise it doesn't save the values. Add the following to a new line after the current line 6 with the same indent as line 6: cursor.updateRow(tmpRow) See https://pro.arcgis.com/en/pro-app/arcpy/data-access/updatecursor-class.htm example 1 for another example if needed.
... View more
01-26-2017
05:50 AM
|
1
|
1
|
3646
|
|
POST
|
Actually that is pretty interesting since the name obviously did change when the original link was broken, but when a new valid source path was made it didn't update the name. Obviously if you wanted to change the name property when the imageSource property was changed you could, but good to know for the future. I do more work with the arcpy mapping module than anything else(just had a script finish producing ~3600 map documents) so something for me to keep in mind.
... View more
01-26-2017
05:45 AM
|
0
|
0
|
1510
|
|
POST
|
Not a problem at all. I rarely get to do much coding work at my current job, so I hang around the forums to help people out and keep my python skills sharp.
... View more
01-25-2017
12:01 PM
|
0
|
0
|
1510
|
|
POST
|
Also for future reference if you ever need to find out if picture element source image exists, you can use arcpy.Exists to check. I wasn't sure it works on picture elements, but since JPEGs can be used as a layout element or as a dataset in ArcMap, you can. I used the map document you uploaded and it did return False that the source image file wasn't in existence anymore. It would be fairly easy to adjust the code we already worked on to check all picture elements in your map documents for broken links this way, as opposed to broken data links in your map layers. You could have it write to a text file which ones had broken links to picture elements and which map documents they were in and only work on those. I'm mentioning this since I said earlier you couldn't do this with arcpy but you actually can.
... View more
01-25-2017
12:00 PM
|
0
|
2
|
1510
|
|
POST
|
Okay, so I'm a bit of an idiot, I didn't bother to have the script actually save the map after the changes were made. According to the the print statements the script is changing the source of your image, which is what we wanted, but the map document is not being saved with the changes. Since I originally did this in ArcMap python window, I didn't need to save the map, I just refreshed the view to fix the changes. Just add mxd.save() to line 18 with the same indent as line 11 and that should save the changes......
... View more
01-25-2017
11:36 AM
|
0
|
5
|
2580
|
|
POST
|
The filepath doesn't have to exist, it just had to be the value of the element name in the map drawing. If you looked at the image I posted earlier using the mxd you posted, I used print statements to determine what the actual name of the picture element was in the map drawing. Also I noticed another bug that might be causing the issue, line 13 needs an asterisk on the other side of logo, so it should be: for elem in arcpy.mapping.ListLayoutElements(mxd, "PICTURE_ELEMENT", "*logo*"): If it doesn't have a wildcard on both sides, it might not be pulling any picture elements at all, so it has no elements to even check(Since *logo would only find names ending with logo, instead of *logo* which looks to find names that contain the character string logo). If that doesn't work, could you add a few print statements(even if it does work it helps show what is going on). After line 13, could you add: print "current element name is " + elem.name; print "current element source is " + elem.sourceImage (same indent as line 14 currently). Then after the current line 15 add: print "new element source is " + elem.sourceImage (same indent as line 15 currently)
... View more
01-25-2017
09:34 AM
|
0
|
7
|
2580
|
| 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
|