POST
|
Edit: It worked. At first I thought it didn't but after I reloaded the file the AngleMin column had the correct values. Thanks!
... View more
01-19-2017
01:42 PM
|
0
|
0
|
996
|
POST
|
Hi, I wanted to share my progress in case it's useful to someone in the future. I also have a question because I can't understand why one step is not working. I calculated the angle of the two feature classes using the following code I found online and which uses the !shape! and the field calculator: # Pre-Loci Script Code
import math
def GetGeographicalDegrees(shape):
radian = math.atan2(shape.lastpoint.y - shape.firstpoint.y,
shape.lastpoint.x - shape.firstpoint.x)
radian = radian - (math.pi /2 ) # turn minus 90°
if (radian > 0):
degrees = 360 - ( radian * 360) / ( 2 * math.pi )
else:
degrees = 360 - ((2* math.pi + radian ) * 360) / ( 2 * math.pi )
return degrees
# angle =
GetGeographicalDegrees( !SHAPE! ) Now both line features have an angle field and after the spatial join (join one to many – within a distance of XXm) I created a new field that has the difference between angles (AngleDif): abs(!AngleArcs! - !AngleSegments!) Next using the python console I used code I found as an answer to a simular problem, which needed to find for every field A with the same value the minimum value of field B: import arcpy
fc = "C:\\Dropbox\\NewThesis\\databases\\Final.gdb\\ArcosSolSombra_VGA2M_Segments"
data = [row for row in arcpy.da.SearchCursor(fc, ["TARGET_FID", "AngleDif"])]
import collections
ddict = collections.defaultdict(list)
for x,y in data:
ddict[x].append(y)
minvals = dict((key, min(ddict[key])) for key in ddict.keys())
with arcpy.da.UpdateCursor(fc, ["TARGET_FID", "AngleMin"]) as rows:
for row in rows:
row[1] = minvals[row[0]]
The problem I had here is after getting the minvals list the updatecursor is not writing anything in the AngleMin field. To finish I'll create and calculate a field to identify when AngleMin is equal to AngleDif. I know this solution isn't very elegant but as I mentioned before I didn't practice enough after I learnt a bit of Python and now I barely remember anything.
... View more
01-19-2017
09:33 AM
|
1
|
2
|
996
|
POST
|
Thanks Clinton and Dan! As soon as I try the functions I'll come back with more detailed feedback. Happy Holidays!
... View more
12-24-2016
04:05 AM
|
0
|
0
|
996
|
POST
|
Hi, Is it possible to spacial join a line feature set to another line feature set by proximity (closest) AND angle (ignoring all lines that have an angle/direction difference higher than X)? From what I read about the Spacial Join Tool it seems it can only do the first, but wanted to check with those with more ArcGIS experience. If it's indeed not possible, I 'm having doubts what the best solution would be: 1- Join each line with all that are within a certain distance (keeping the angle field of all) and then calculate which one has the most similar angle - but since I want to know the closest line that's in a certain angle interval in relation to the target line, I think this could give me the wrong results (especially as the distance radius increases) 2- Make and merge several Spacial Joins (closest) filtering the target feature ( angle=n ) and join feature ( angle=n+-x ) and just chose a x and go from n=0 to n=359? But I don't how to code this. Cheers
... View more
12-20-2016
08:38 AM
|
0
|
6
|
2374
|
POST
|
I'm bumping this thread just to add that I think this result might be caused by the "Drainage enforcement process". At this time I don't have the possibility and time to redo the model and test it. It was unfortunate that I din't notice this detail/option before or, if I did, I didn't correlate it with this "issue". This information might be useful if somebody is noticing the same thing.
... View more
05-10-2016
05:13 AM
|
0
|
1
|
480
|
POST
|
Thanks for the reply. I was getting the warning followed by another saying it couldn't find a route. I thought they were connected but then I discovered that it was a restriction that had a wrong value and was prohibiting several arcs. But it was your reply that made me double check all restrictions. Thankfully everything seems to be working now... phew! Cheers
... View more
04-26-2016
01:14 PM
|
0
|
0
|
701
|
POST
|
Hi, I've created my network database and it worked fine for all the service areas I needed to create, but when I tried to create some routes I started having some problems. Every location I add gives me this message as soon as I solve it: "Location "Graphic Pick X" in "Stops" is on a soft-restricted network element." I tried googling what's a soft-restricted network element but had no luck. How can I fix this? What adicional info is required to understand my issue? Cheers
... View more
04-26-2016
11:22 AM
|
1
|
2
|
5207
|
POST
|
This methodology didn't have the results I wanted but with additional steps it might work. With the Intersect 3D Line With Multipatch I can get the lines that touch the Shadow Volume surface (it doesn't output the ones that are inside the Shadow Volume but don't touch the surface. I can cut those lines at the output intersection points. Then I can use Inside 3D to these lines and I'll get the lines inside the Shadow Volume and touch the surface (already cut) and Inside 3D to the original lines to get the ones inside that don't touch the surface. Unfortunately the Create Sun Shadow Volume can't have as secondary input the terrain. I tried to cut the Sun Shadow Volume at the terrain by intersecting it with a extrusion between the terrain and a plane above the buildings to then use multipatch footprint... but I always get errors with the Intersection 3D, always. I even tried with smaller volumes. I could later use the resulting polygons instead of all the lines I'm creating with the above process.
... View more
02-20-2016
07:46 AM
|
0
|
0
|
635
|
POST
|
I just read about the Intersect 3D Line With Multipatch so in the next days I'll try to test the workflow. Creating buildings in AutoCAD -> Sketch Up -> ArcGIS -> Create Sun Shadow Volume -> Intercept with the polylines I have.
... View more
02-12-2016
03:39 PM
|
0
|
1
|
635
|
POST
|
Hi, I created a network database where each arc has three time fields. Time from one direction, from the other direction and then the worse of the two. My original plan was using the third field when creating service areas. But then I realized it doesn't work, because I'm just assuming for each arc the worst time where I should be assuming the worst time for the sum of the arcs in each direction. In your opinion what is the best way of combining away from and towards facility service areas? What I'll try to do now is just intercepting away from and towards service areas for each break, but this just doesn't feel *right*. Cheers
... View more
02-12-2016
03:25 PM
|
0
|
0
|
1717
|
POST
|
Thanks for the reply. In the Sun Shadow Volume: - To confirm if I understood correctly, I need to use the 3d buildings and the terrain right? - The terrain can be in a raster layer or should I model it in a different feature? To simplify and dividing it into steps, what I need to do: 1a- Create sun polygons and shade polygons from the sun shadow raster/multipatch. or 1b- Intercept polylines with the shade part of the raster/multipatch and do a second intercept with the sun part. and 2- Store in the polylines I already have in which polygon(or polyline group) they are the most. If they are >50% inside the sun polygon I'd store 1, otherwise 0.
... View more
02-12-2016
03:06 PM
|
0
|
3
|
635
|
POST
|
Hi, Can I - using shadow volumes - interpolate its values in polylines? (Like we interpolate z values from topography) I have 3d polylines and I'll model the buildings, can I using these inputs store somehow the shadow/sun in every polyline? I also have the raster topography layer and can create a terrain surface if this would allow me to have a sort of raster sun shadow layer that could be used to interpolate sun shadow values on polylines. I'm still a bit confused about the Sun Shadow Volume tool and I'm not that experienced with ArcGIS so I'm just speculating. Cheers
... View more
02-12-2016
01:23 PM
|
0
|
5
|
2544
|
POST
|
I edited my post adding more screenshots. With that kind of modelling I don't know how much can I trust TopoToRaster. I have counted at least four instances where this "buggy" values appear.
... View more
01-25-2016
04:58 AM
|
0
|
2
|
480
|
POST
|
Hi, I've been creating some raster from topo files but in some places I get weird valleys where there shouldn't be any. I've attached two screenshots, one with the inputs I've been using with the tool topotoraster and another trying to explain the problem. In the picture: - The two bottom points have the same elevation - Both the top ones have higher elevation than the bottom ones - All points have an elevation between the lines that surround them (and these lines have a 1m elevation difference) - The difference in grey show the valley - As a result my arcs get slopes where they shouldn't be one (in red) Not in the picture: - Bellow that area there is nothing suggesting such a valley Did this happen to anybody before? What can be making that? Edit: two more pictures, one with the elevations of the four points. Another with better colors in the terrain, from 87m elevation to 88m, each color representing 10cm. Cheers, Júlio
... View more
01-22-2016
10:35 AM
|
0
|
4
|
4010
|
POST
|
I'm using ArcMap 10.3.1 and I wanted to ask if this is possible. I want to represent lines in the following way: - Color gradient using the a slope field - Override that color for a certain value in a different field (for example stairs or sidewalk width) Can I do this without needing to change my slope field and adding a value to represent stairs/etc? I know I can just duplicate the layer and use different symbology. But in all instances of ArcMap I used it doesn't really look good having duplicated lines with the same width (even with the top one wider) and different colors. Something in the way they are rendered (I haven't tried to see how these maps are exported). So if this could be done it would have a much better result. I hope I put this on the right Place.
... View more
01-22-2016
08:10 AM
|
0
|
1
|
1900
|
Title | Kudos | Posted |
---|---|---|
1 | 04-26-2016 11:22 AM | |
1 | 01-19-2017 09:33 AM | |
1 | 01-17-2016 08:44 AM | |
1 | 01-14-2016 08:24 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|