|
POST
|
Is there any way to pass username and password from my login page and writing the code for portal login in my application itself ? Need this urgently. Kindly help.
... View more
08-27-2017
11:59 PM
|
0
|
2
|
4830
|
|
POST
|
Do we have any tool or widget available or api's to read local kml file instead of from some URL? I desperately need it it. Couldn't find the reference anywhere. Kindly help. Regards, Akshay Loya
... View more
08-24-2017
02:20 AM
|
0
|
2
|
4909
|
|
POST
|
Hi Derek, I know about this home page but somehow portal for arcgis is behind our firewall right. So we want our users to see our logo and banner on login page. This login we are also using in our web app builder application. In that case I have to change the login look and feel.
... View more
08-23-2017
12:18 AM
|
2
|
0
|
10010
|
|
POST
|
I've portal for Arcgis 10.5 (behind the firewall). I have to customize the login page with the client's company logo, banner and all those. How can I do this. Any work around ?
... View more
08-22-2017
11:01 AM
|
2
|
39
|
31262
|
|
POST
|
Yes I have done that. I guess I've to include Z value also while creating feature class.
... View more
07-27-2017
04:50 AM
|
0
|
0
|
1310
|
|
POST
|
Hi, I've a point feature class published which I was using in my 2-D application. I'm trying to develop 3D application and configuring 3DFx widget. But when I'm trying to add visualization field, there are no fields in the dropdown and not able use the tool. Can someone please help me to understand where exactly I'm going wrong. Thanks in advance.
... View more
07-20-2017
09:52 AM
|
0
|
2
|
1675
|
|
POST
|
Hi, Firstly I know flex is really old but our client is in no mood to switch to new technology. He just wants to keep it on flex as of now. I'd developed an application using ArcGIS API for flex few years back. It has login functionality. Now whenever user presses F5, application is logout. I want to restrict this. Please help me with the code urgently. Thanks in advance.
... View more
07-03-2017
05:54 AM
|
0
|
0
|
2346
|
|
POST
|
Hi, I've a Home Page which has two buttons say (Explore and Participate). If User clicks on Explore , web app builder application should open with Explore widget and in case user clicks on Participate then Participate widget should open. How can we do this? Regards, Akshay
... View more
04-24-2017
11:42 PM
|
0
|
1
|
1171
|
|
POST
|
Refer this code instead: import arcpy import math import os import numpy as np from numpy import trapz arcpy.env.overwriteOutput = True fc = r'D:/PTWork/GIS_RIVER/23_elevation.shp' fld_memo = 'TxtMemo' fc_river = r'D:/PTWork/GIS_RIVER/RB_23.shp' fc_out = r'D:/PTWork/GIS_RIVER/RiverBank1.shp' fld_id = 'LineID' id_format = 'CS-{}' tolerance = 350 dist = 100 # distance, in units of projection, to extend the line on each end flds = ('OID@', 'SHAPE@', fld_memo) lst_data = [[r[0], r[1], float(r[2])] for r in arcpy.da.SearchCursor(fc, flds)] # create output featureclass sr = arcpy.Describe(fc).spatialReference ws, fc_name = os.path.split(fc_out) arcpy.CreateFeatureclass_management(ws, fc_name, "POLYLINE", None, None, "ENABLED", sr) arcpy.AddField_management(fc_out, fld_id, "TEXT", None, None, 25) # insert cursor flds = ('SHAPE@', fld_id) cnt_id = 0 with arcpy.da.InsertCursor(fc_out, flds) as curs: lst_lines = [] lst_pnts = [] for i in range(1, len(lst_data)): print("i:{}".format(i)) lst_cur = lst_data lst_prev = lst_data[i-1] pntg_cur = lst_cur[1] pntg_prev = lst_prev[1] dist = pntg_prev.distanceTo(pntg_cur) if dist <= tolerance: # add to existing list pnt = pntg_cur.firstPoint z = lst_cur[2] pnt.Z = z lst_pnts.append(pnt) else: print(" - create and store line and add point to new list...") # create and store line and add point to new list if len(lst_pnts) > 1: polyline = arcpy.Polyline(arcpy.Array(lst_pnts), sr, True, False) lst_lines.append(polyline) cnt_id += 1 line_id = id_format.format(cnt_id) fc_line = arcpy.MakeFeatureLayer_management(polyline, "fc_line") fc_poly = arcpy.MakeFeatureLayer_management(fc_river, "fc_poly") with arcpy.da.SearchCursor(fc_poly, "SHAPE@") as scur: for poly, in scur: boundary = poly.boundary() arcpy.SelectLayerByLocation_management(fc_line, "WITHIN", poly) with arcpy.da.SearchCursor(fc_line, "SHAPE@") as ucur: for line, in ucur: arr, = line.getPart() SR = line.spatialReference p1, p2 = arr[:2] angle = math.atan2(p2.Y - p1.Y, p2.X - p1.X) p = arcpy.Point(p1.X - dist * math.cos(angle), p1.Y - dist * math.sin(angle)) arr.insert(0, p) pn1, pn = arr[-2:] angle = math.atan2(pn.Y - pn1.Y, pn.X - pn1.X) p = arcpy.Point(pn.X + dist * math.cos(angle), pn.Y + dist * math.sin(angle)) arr.append(p) line = arcpy.Polyline(arr, SR) line = line.cut(boundary)[1] curs.insertRow((line, line_id)) else: # not enough points to create line pass pnt = pntg_cur.firstPoint z = lst_cur[2] pnt.Z = z lst_pnts = [pnt]
... View more
04-10-2017
10:13 AM
|
0
|
0
|
5024
|
|
POST
|
Refer this code instead: import arcpy import math import os import numpy as np from numpy import trapz arcpy.env.overwriteOutput = True fc = r'D:/PTWork/GIS_RIVER/23_elevation.shp' fld_memo = 'TxtMemo' fc_river = r'D:/PTWork/GIS_RIVER/RB_23.shp' fc_out = r'D:/PTWork/GIS_RIVER/RiverBank1.shp' fld_id = 'LineID' id_format = 'CS-{}' tolerance = 350 dist = 100 # distance, in units of projection, to extend the line on each end flds = ('OID@', 'SHAPE@', fld_memo) lst_data = [[r[0], r[1], float(r[2])] for r in arcpy.da.SearchCursor(fc, flds)] # create output featureclass sr = arcpy.Describe(fc).spatialReference ws, fc_name = os.path.split(fc_out) arcpy.CreateFeatureclass_management(ws, fc_name, "POLYLINE", None, None, "ENABLED", sr) arcpy.AddField_management(fc_out, fld_id, "TEXT", None, None, 25) # insert cursor flds = ('SHAPE@', fld_id) cnt_id = 0 with arcpy.da.InsertCursor(fc_out, flds) as curs: lst_lines = [] lst_pnts = [] for i in range(1, len(lst_data)): print("i:{}".format(i)) lst_cur = lst_data lst_prev = lst_data[i-1] pntg_cur = lst_cur[1] pntg_prev = lst_prev[1] dist = pntg_prev.distanceTo(pntg_cur) if dist <= tolerance: # add to existing list pnt = pntg_cur.firstPoint z = lst_cur[2] pnt.Z = z lst_pnts.append(pnt) else: print(" - create and store line and add point to new list...") # create and store line and add point to new list if len(lst_pnts) > 1: polyline = arcpy.Polyline(arcpy.Array(lst_pnts), sr, True, False) lst_lines.append(polyline) cnt_id += 1 line_id = id_format.format(cnt_id) fc_line = arcpy.MakeFeatureLayer_management(polyline, "fc_line") fc_poly = arcpy.MakeFeatureLayer_management(fc_river, "fc_poly") with arcpy.da.SearchCursor(fc_poly, "SHAPE@") as scur: for poly, in scur: boundary = poly.boundary() arcpy.SelectLayerByLocation_management(fc_line, "WITHIN", poly) with arcpy.da.SearchCursor(fc_line, "SHAPE@") as ucur: for line, in ucur: arr, = line.getPart() SR = line.spatialReference p1, p2 = arr[:2] angle = math.atan2(p2.Y - p1.Y, p2.X - p1.X) p = arcpy.Point(p1.X - dist * math.cos(angle), p1.Y - dist * math.sin(angle)) arr.insert(0, p) pn1, pn = arr[-2:] angle = math.atan2(pn.Y - pn1.Y, pn.X - pn1.X) p = arcpy.Point(pn.X + dist * math.cos(angle), pn.Y + dist * math.sin(angle)) arr.append(p) line = arcpy.Polyline(arr, SR) line = line.cut(boundary)[1] curs.insertRow((line, line_id)) else: # not enough points to create line pass pnt = pntg_cur.firstPoint z = lst_cur[2] pnt.Z = z lst_pnts = [pnt]
... View more
04-10-2017
09:53 AM
|
0
|
1
|
5024
|
|
POST
|
Getting the following error when I'm building the tool: My code for your reference : import arcpy,math fc_line = r'd:/PTWork/GIS_RIVER/RiverBank.shp' fc_line = arcpy.MakeFeatureLayer_management(fc_line, "fc_line") fc_poly = r'd:/PTWork/GIS_RIVER/RB_23.shp' fc_poly = arcpy.MakeFeatureLayer_management(fc_poly, "fc_poly") with arcpy.da.SearchCursor(fc_poly, "SHAPE@") as scur: for poly, in scur: boundary = poly.boundary() arcpy.SelectLayerByLocation_management(fc_line, "WITHIN", poly) lst_value =[] with arcpy.da.UpdateCursor(fc_line, "SHAPE@") as ucur: for line, in ucur: arr, = line.getPart() SR = line.spatialReference p1, p2 = arr[:2] angle = math.atan2(p2.Y - p1.Y, p2.X - p1.X) p = arcpy.Point(p1.X - dist * math.cos(angle), p1.Y - dist * math.sin(angle)) arr.insert(0, p) pn1, pn = arr[-2:] angle = math.atan2(pn.Y - pn1.Y, pn.X - pn1.X) p = arcpy.Point(pn.X + dist * math.cos(angle), pn.Y + dist * math.sin(angle)) arr.append(p) line = arcpy.Polyline(arr, SR) line = line.cut(boundary)[1] ucur.updateRow([line])
... View more
04-10-2017
09:26 AM
|
0
|
5
|
5025
|
|
POST
|
Hi, I've some set of points which I'm joining to make a line. Refer the Picture below. The problem I'm facing is there are no points(elevation points) on the polygon (River Bank). Is there any way of extending the line to the polygon?
... View more
04-09-2017
07:55 AM
|
0
|
9
|
6675
|
|
POST
|
Hi, any idea on how I can join the last points to the polygon (So that it touches the river bank). Secondly now I've elevation point details and width of the cross section line, how can I calculate area under each cross section.
... View more
04-07-2017
04:15 AM
|
0
|
0
|
1898
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-01-2018 06:19 PM | |
| 1 | 08-03-2022 10:17 PM | |
| 1 | 01-11-2018 07:40 AM | |
| 1 | 01-11-2018 06:12 AM | |
| 1 | 08-28-2017 02:59 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-26-2023
01:44 PM
|