|
DOC
|
Hi Erica, Glad this could help. I have a feeling the rename field tool that this depends on has a degree of instability. I have actually corrupted a few files using rename field or delete field excessively (why I copy features before doing huge changes or make changes in other software like pandas/excel). As stated before in the post, I am no longer supporting this tool, so I am glad it is still working as is (this tool continues to get wide use, so I might try to see what can be done on the stability end, but this is a lower priority for me). David
... View more
04-01-2018
10:25 AM
|
0
|
0
|
3496
|
|
POST
|
I realize this is old, but I am working with this now in pro. I thought I would share my code sample, and report that within the ArcGIS Pro interface itself I am finding garbage collection issues related to image exports at the scale of 1000 images. aprx = mp.ArcGISProject(project)
layout = aprx.listLayouts(layout_name)[0]
map_frame = layout.listElements("MAPFRAME_ELEMENT")[0] # Use First one
PLM.arc_print("Working with layout {0}".format(layout.name))
field_tuple = ("SHAPE@"PLM.arc_print("Starting image export. Check if images are blank. If they are, the Map Frame Projection "
"should be set to match the projection of the labeled feature class.")
with arcpy.da.SearchCursor(in_features, field_tuple) as curs:
for row in curs:
counter += 1
shape = row[0]
image_name = str(base_name) + "_" + str(counter) + ".jpg"
image_path = os.path.join(output_folder, image_name)
extent = shape.extent
map_frame.panToExtent(extent)
if counter % 100 == 0:
PLM.arc_print("Exporting JPEG at feature number {0}.".format(counter))
layout.exportToJPEG(image_path) Running something like this outside of ArcGIS Pro seems to work best, but maybe this will be helpful for someone trying to automate these workflows.
... View more
02-22-2018
10:12 AM
|
1
|
0
|
3330
|
|
POST
|
Can you provide more information about your graphics card? I would try editing the view and light settings. What happens when you open a blank scene and draw in it?
... View more
02-15-2018
03:20 PM
|
0
|
0
|
1780
|
|
POST
|
Hi Alan, This is an old thread, but still and awesome one. I remember being told that something like this was ill advised, but I think you showed pretty well here that it could have some serious applications (visual abstraction etc). I would love to see the scene / rules if you can get them to work again. Glad to have you in the fold.
... View more
02-08-2018
04:31 PM
|
1
|
0
|
2232
|
|
POST
|
I actually think these are really helpful tools. Beyond what others have been saying here, these tools helps clean up model builder calcs to two tools rather than 20. Sequential Add/Calc fields lead to general model elongation, and this can make models difficult to read at a glance.
... View more
01-29-2018
07:32 AM
|
0
|
1
|
1678
|
|
POST
|
Hi Brooks, Your questions are timely. I am working on a set of tools for network analysis/smart location database generation that I want to opensource at some point in 2018. I am working with Google Datalab to work with NetworkX (Vs 1.5.0), Geopandas, and Pandana to get a workflow taking data processed & edited in ArcGIS into pandana/networkx graphs. Questions I am interested in answering rest with accessibility analysis and how different graph indexes can be used to determine an edges importance to overall network connectivity (as part of a prioritization analysis). For the time being I am contemplating pandana/networkx for the task outside of ArcGIS (the speed of pandana queries is part of the reason). I will have some code samples later, but I have been referring to SEMCOG code that provides some examples on converting NetworkX (import shapefile) graphs to Pandana networks. Hope you find this helpful. If you want to collaborate on this, also willing to talk about that. Thanks, David
... View more
12-27-2017
12:46 PM
|
0
|
0
|
3496
|
|
POST
|
Eric Wittner Hi Devin and Bill, (Adding Eric for Future Discussion) This brings up a generally challenge with the corner shapes. The CS rule does not have curb ramps because the code required to do them correctly would be hundreds of lines. There are generally two types of curb ramps, diagonal and directional, and in an ideal world, they would be used based on the crosswalk settings of all legs on an approach. Intershape communication is just starting to take shape in CE, so maybe this type of interaction will be increasingly feasible. While the time I have dedicated to this problem is limited, there are a few challenges with the current start shape that made this difficult for me in the past: 1. We only have indexes and shapes generated by the shapes. This is a problem because the complexity of the start shape is an adjustable shape parameter. Do you assume 2, 4, or 6 or more shapes that you need to work with in CGA? 2. Programming for adjustable curb radii. How do you know where to place a curb ramp when curb radii adjustments in theory adjust start location? 3. Different start shapes (crossings) have different sidewalk shape generation. It is clear sometimes that the sidewalk valency can provide different signals of positioning based on 4. Hard to coordinate with Crosswalk- this relates to intershape communication. 5. Shape controls: adding a curb ramp ideally would involve either an inserted object or a pure shape translation. Figuring out which shapes need to be removed to enable that is difficult. There is not "erase" or "clip" geometry function in CGA per se. That said, there might be more we can do for the case Devin is looking at. I will take a look this weekend, but generally Devin I would assume a stable shape complexity and try the following: Component splits that join the entire shape together rather than keep entire shapes. There is some functionality supporting this. This gets you a little more stable shape (in theory? not tested). Try replacing the corner entirely with an inserted disk with some type of centroid that would match the curb radius. This is basically an approach I have thought about with curb extensions, if you can't trust the geometry, create your own. Using the new inner rect functionality will be helpful here. Try creating shape OVER the sidewalk. I actually did this with sharrows. Sharrows in the CS street rule are basically extruded shapes that are raised like...an inch or so above the pavement (see sharrowHeight parameter). A similar approach might be justified here. If any of these work let me know...I need to give this attention at some point.
... View more
12-22-2017
09:40 AM
|
1
|
0
|
2671
|
|
POST
|
Hi Jesse, Maybe we can have a discussion about overpasses for wildlife and what that would look like. Maybe a rule outside the street rule is appropriate to think about (thinking about elongated arch -something like they are talking about for the I-90). Do you think this should be built directly into the rule? At this time, I might actually advise against that. Underpasses might also be easier as separate shapes, but I would like to know what you are thinking. I second Jesse on merge lanes, path connections. Generally this is outside of the scope of what I can deal with in my spare time as I maintain the rule, and generally I think has more to do with how start shapes are dealt with in CE/available UV texture spaces. If streets are given a rewrite, it is a consideration to review. David
... View more
12-20-2017
09:57 AM
|
1
|
0
|
5903
|
|
POST
|
I realize this is a little old, but I did write a variant of spatial join for the use case you are discussing. It can integrate into model builder workflows and the python sample is there. ArcNumerical-Tools/NumericalSpatialJoin.py at master · Holisticnature/ArcNumerical-Tools · GitHub Let me know if you have any questions.
... View more
12-08-2017
01:48 PM
|
0
|
0
|
2329
|
|
POST
|
Hi Jesse, If you have a CS Rule question you want me to review, just tag me with David Wasserman or you can post to the https://community.esri.com/message/443977 page. Glad you found a solution. David
... View more
11-28-2017
04:53 PM
|
0
|
0
|
926
|
|
POST
|
Hey Leilei, I would actually suggest installing NetworkX and using their centrality metrics, is the easiest open source alternative. They have shapefile import/export. I think in the long term Pandana might provide more support these types of metrics. Hope all is well. David
... View more
11-28-2017
04:04 PM
|
1
|
2
|
3496
|
|
POST
|
I realize this is a very old thread, but I have been increasingly looking for something like this toolbox to identify low stress bicycle network bottlenecks. I see the toolbox is only supported up to 10.2 and I have a few questions. 1. Is this toolbox still maintained? asevtsuk do you have any plans to distribute through Github? 2. The license on the toolbox is a creative commons license that is pretty restrictive (no commercial use). Will this be changed in the future?
... View more
11-06-2017
11:32 AM
|
0
|
4
|
3496
|
|
POST
|
I have struggled with this as well. Generally, my way around this was to set the streetWidth attributes in python in GIS then import into CityEngine, but my focus was creating hundreds of cross sections. In a Street Rule, I don't think it is currently possible to have a CGA parameter set a shape parameter (as much as I wish it was possible). In most urban planning use cases it is less annoying because we typically assume we have to keep the ROW constant (so changing sidewalk and street width is a more intentional action). If your use case is in entertainment, you could write a python script that reacts to your 'width' attribute by setting the streets to match that width. The python examples for setAttribute provide some good code samples. This however would require running your script in the background or when you want to change all your widths. Not great, but a "solution".
... View more
10-26-2017
04:35 PM
|
0
|
0
|
1595
|
|
POST
|
Hi Kristian, Just spit balling ideas here, but do you get close to the results you want if you use a setback function, and then have the setbacks taper up/roof shed up to the middle portion you want to model? Then the setbacks become a method of controlling the slope at each point along the road. For context, I had to do something similar for making ramps onto Raised Bike Lanes on a street shape, and this (with some comp/shape manipulation) worked for me. David
... View more
10-26-2017
02:29 PM
|
0
|
1
|
1465
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-07-2024 02:16 PM | |
| 1 | 05-15-2022 12:21 PM | |
| 1 | 08-27-2016 11:03 AM | |
| 1 | 12-19-2021 01:10 PM | |
| 1 | 06-12-2020 03:29 PM |