POST
|
The AGO web map that I have created and is being used on an external web page appears to be shifted too far to the south (see attached image). Notice that the tip of Florida and Texas are cut off. I have tried setting the map extent under settings in AGO but to no avail. Also, the zoom in/out widget is not showing. And ideas?? Thanks, Jim Fritz
... View more
04-23-2019
06:33 AM
|
0
|
1
|
246
|
POST
|
Greetings, Is it possible to zoom to set map extents in a web map by clicking on a polygon (in this case a state, see image below)? In this web map it would be great if by clicking on a state it would then zoom to the extent that would be set around the star clusters shown. Thanks, Jim F.
... View more
01-18-2019
07:09 AM
|
0
|
0
|
258
|
POST
|
Thanks Darren and Dan. It came down to incorrect indentation. Problem solved!
... View more
11-30-2018
01:55 PM
|
0
|
0
|
777
|
POST
|
Would that be coded like this? ..... ...... pt_count = 1 print (pt_count) or print("pt_count") thanks, Jim
... View more
11-30-2018
11:28 AM
|
0
|
0
|
777
|
POST
|
Thanks, I'll double-check the indentation issues when pasting in the code to the python window.
... View more
11-30-2018
11:13 AM
|
0
|
3
|
2034
|
POST
|
Darren, Here's the latest results using the original script. Seems the print functions are working up to "print (angB)" and then nothing is returned. Any ideas?
... View more
11-30-2018
08:02 AM
|
0
|
5
|
777
|
POST
|
Darren, Disregard the last response. Print statements seem correct. Going back to original script now. Thanks, Jim
... View more
11-30-2018
07:32 AM
|
0
|
0
|
777
|
POST
|
Darren, I used the code above and as you can see above nothing is printed. The feature class appears normal (a polyline) with 111 segments. Not sure what is going on here. Thanks, Jim
... View more
11-30-2018
07:28 AM
|
0
|
1
|
1257
|
POST
|
Darrin, Just to make sure I understand the "no pnts in part, or no parts in row[0] " is in reference to the multi-part polyline layer (Z77_UTM13splitatpoint)?? Thanks, Jim
... View more
11-29-2018
12:35 PM
|
0
|
9
|
1257
|
POST
|
Hmm, just noticed that prior to running script there was attribute field called "angle" and populated from some earlier tinkering. I just deleted it so I will re-run the script. I really appreciate the help! I see that the script does work so just have to keep plugging away at it. I don't have much more time today but will pick up again tomorrow. Regards, Jim
... View more
11-29-2018
12:26 PM
|
0
|
0
|
1257
|
POST
|
Darren, Note nothing returned. Thanks for the help!! Jim
... View more
11-29-2018
12:00 PM
|
0
|
12
|
1257
|
POST
|
Darrin, Thanks, I will try the print statement remedy. Also, can the input "lines" layer be either a dissolved polyline feature or a multi-part polyline feature? Jim
... View more
11-29-2018
10:25 AM
|
0
|
1
|
1257
|
POST
|
After running the script below the "point" layer that is created does not have any features and of course no angles calculated. Any ideas on why this might be would be appreciated. Thanks, Jim import math
02.... sr = arcpy.Describe("Z77").spatialReference
03.... arcpy.CreateFeatureclass_management('in_memory','points',"POINT",spatial_reference=sr)
04.... arcpy.AddField_management('points','Angle',"DOUBLE")
05.... insCur = arcpy.da.InsertCursor("points",('SHAPE@','Angle'))
06.... with arcpy.da.SearchCursor("Z77",["SHAPE@"]) as cursor:
07.... for row in cursor:
08.... for part in row[0]:
09.... pt_count = 1
10.... for pnt in part:
11.... pnt = arcpy.PointGeometry(pnt,sr)
12.... if pt_count > 1:
13.... if pt_count >2:
14.... distAB = oneBack.distanceTo(twoBack)
15.... distBC = pnt.distanceTo(oneBack)
16.... distAC = pnt.distanceTo(twoBack)
17.... angB = math.degrees(math.acos((((distAB*distAB)+(distBC*distBC))-(distAC*distAC))/(2*distAB*distBC)))
18.... insCur.insertRow((oneBack,angB))
19.... twoBack = oneBack
20.... oneBack = pnt
21.... pt_count += 1
22.... del insCur
... View more
11-29-2018
09:50 AM
|
0
|
16
|
2293
|
POST
|
Re-thinking what is needed is not necessarily the point receiving the incidence angle but instead assigning the polyline layer an attribute with the value of the difference between adjacent vector angles. So, in the example above, without doing the math it appears that the incidence angle would be nearly 90 degrees. (The angle measurements appear to be from the X-axis.) Once that value is computed a query showing which vectors have an incidence angle greater than or equal to 30 degrees could be made. Any thoughts about the math needed to compute this value would be appreciated. High school geometry re-visited!
... View more
11-27-2018
09:18 AM
|
0
|
0
|
676
|
POST
|
OK, that's the first part of my original question: how to assign the incidence angle between adjacent vectors to the point in-between both?
... View more
11-27-2018
07:51 AM
|
0
|
1
|
676
|
Title | Kudos | Posted |
---|---|---|
1 | 08-24-2018 08:48 AM | |
2 | 11-16-2018 07:17 AM | |
1 | 10-29-2018 09:11 AM | |
1 | 07-26-2013 09:41 AM | |
1 | 08-25-2014 01:34 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|