POST
|
Can I ask you what you mean by "WITH attribution" and "WITHOUT attribution"? I'm having a heckuva time with relates in ArcGIS Online.
... View more
01-07-2016
01:15 PM
|
0
|
1
|
368
|
POST
|
Web AppBuilder might work fine for creating a basic viewing app or story map but I have not had a good experience with trying to create a useful app for editing.
... View more
10-14-2015
11:43 AM
|
0
|
0
|
587
|
POST
|
I'm going to mark this as correct as it appears to be the case. I'll ask this: does anyone know when this functionality may be supported?
... View more
10-14-2015
06:21 AM
|
0
|
4
|
1160
|
POST
|
I created a feature service with a related table as in the blog post on Related Tables - Exploring New Ways to use Collector for ArcGIS. Can you add related records using the edit widget in an app built with Web AppBuilder or can you only add related records using Collector?
... View more
10-13-2015
02:12 PM
|
0
|
6
|
5260
|
POST
|
Thanks. Rebecca's post helped a lot. I got it working by following her advice in step 3 h (hint 2) to include the full computer name... including the domain. computername.domain
... View more
04-22-2015
02:16 PM
|
0
|
1
|
770
|
POST
|
GeoNet! Let me try again... In the "Getting Started" guide, it says to add yourmachinename while on AGS Online the example given is server port (Geonet will not let me put the formatting in here!). I tried with just my machine name and get the HTTP 400 Bad Request page. I tried with my machine name and 3344 as the port and still get the HTTP 400 Bad Request page. Suggestions? Thanks.
... View more
04-22-2015
01:02 PM
|
0
|
3
|
770
|
POST
|
I'm trying to set up Web AppBuilder Developer Edition and I'm running into some trouble. I am following the "Getting Started" guide. Everything goes well until I get to the Provide App ID for Web AppBuilder section. I follow the steps to retrieve an App ID but when I paste my App ID into Web AppBuilder, I get a HTTP 400 Bad Request page. The only thing that is not clear to me when setting up the App ID is the instructions for setting the Redirect URI. In the "Getting Started" guide for Web AppBuilder Developer, it says to add http://[yourmachinename] and https://[yourmachinename] but on AGS Online the example given is http://<server>[:po
... View more
04-22-2015
12:40 PM
|
0
|
4
|
4376
|
POST
|
Ok. I read about labels and hosted feature services so you can ignore my questions on labels. I should stick to asking one question anyway. My remaining question deals with how attributes are formatted in the Edit Widget. It seems like there is no way to control how attributes are displayed when editing even though they are configured in the web map. Am I missing something?
... View more
04-08-2015
06:25 AM
|
1
|
0
|
587
|
POST
|
I have a point layer that I want to edit only the attributes. I set my point layer up in ArcMap and published to a hosted feature service. I set labels up in the map. Why didn't the labels come over in the service? In ArcGIS Online, I created a web map with my point feature service. I set labels up in the web map. I created a web app using Web AppBuilder and my web map and added the Edit Widget. I launched the application, clicked the edit widget and clicked a point. It grabbed the label. I could make all kinds of changes to the label but I could not edit the point attributes. Why? Also, I set the attribute fields up how I wanted them in the web map but had to reconfigure the attributes in the Edit Widget in the web app. Why? I removed the labels in my web map and selected a point using the Edit Widget in my web app. The attributes do not respect the configuration I set in the web map (i.e. numeric values have decimal places and/or commas in the web app but not the web map) and I do not see anywhere to configure them in the Edit Widget or web app?
... View more
04-07-2015
03:55 PM
|
0
|
3
|
4483
|
POST
|
Copy the layer in the Table of Contents, add a definition query to the copy of subset you want to map, and set ddp to run from that layer.
... View more
09-19-2014
05:26 AM
|
5
|
0
|
154
|
POST
|
Thanks for the suggestion but it did not work. I created the polygon object first as you suggested. I also created the point object and then added the coordinates similar to the way I did in the arcgisscripting example. That didn't work either. It seems weird to me that this works using arcgisscripting but not arcpy.
... View more
09-05-2014
05:25 AM
|
0
|
1
|
1332
|
POST
|
I was creating polygons via a python script when I noticed that rows in the table were being inserted but some of the actual polygon shapes were missing. I had just rewritten this 9.3.1 python script to work with arcpy and version 10+. I ran the 9.3.1 script and all polygon shapes were complete. I opened ArcMap 10.2.1 and manually entered the new code into the Python window: >>> import arcpy >>> array = arcpy.Array() >>> array.add(arcpy.Point(-92.09936200, 46.73024000)) >>> array.add(arcpy.Point(-92.09936200, 46.73137900)) >>> array.add(arcpy.Point(-92.09782100, 46.73137900)) >>> array.add(arcpy.Point(-92.09782100, 46.73024000)) >>> array.add(arcpy.Point(-92.09936200, 46.73024000)) >>> cur = arcpy.da.InsertCursor("onecall_poly", ["SHAPE@"]) >>> cur.insertRow([arcpy.Polygon(array)]) 0L >>> array.removeAll() >>> del array, cur This created a row in the feature class table but did not create a polygon. I then typed the following code into the Python window: >>> import arcgisscripting >>> gp = arcgisscripting.create(9.3) >>> array = gp.createobject("Array") >>> pnt = gp.createobject("Point") >>> pnt.x = -92.09936200 >>> pnt.y = 46.73024000 >>> array.add(pnt) >>> pnt.x = -92.09936200 >>> pnt.y = 46.73137900 >>> array.add(pnt) >>> pnt.x = -92.09782100 >>> pnt.y = 46.73137900 >>> array.add(pnt) >>> pnt.x = -92.09782100 >>> pnt.y = 46.73024000 >>> array.add(pnt) >>> pnt.x = -92.09936200 >>> pnt.y = 46.73024000 >>> array.add(pnt) >>> cur = gp.insertcursor("onecall_poly") >>> feat = cur.newrow() >>> feat.shape = array >>> cur.insertrow(feat) >>> array.removeall() >>> del cur, array This created the table record and the polygon feature. Am I doing something wrong? Why doesn't the new code work? In the help it says that "All geometries are validated before they are written to a feature class." What does 0L mean after the insertRow command in my first example?
... View more
09-04-2014
01:50 PM
|
0
|
7
|
6747
|
POST
|
I get the following error when using the arcpy.mapping ListBookmarks function in a script: Traceback (most recent call last): File "X:\Temp\Tools\MXD_Bookmarks_to_Polygon.py", line 28, in <module> for bkmk in arcpy.mapping.ListBookmarks(mxd): File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\mapping.py", line 1448, in ListBookmarks for data_frame in dfs] AttributeError: 'NoneType' object has no attribute 'bookmarks' Failed to execute (MXDBookmarkstoPolygon). Upon closer inspection of the mxd I was running the code on, I found that there were multiple data frames with the same name and also the same bookmarks. The code works for sure on mxds with one data frame. Is this a bug or should I be implementing some means to catch that condition? Here is the code. It is modified from example 3 of this help article. import arcpy, os, string
# Input list of MXDs
mxdList = string.split(arcpy.GetParameterAsText(0), ";")
# A template feature class that contains the attribute schema
# Including a "Name" field to store the bookmark name
template = arcpy.GetParameterAsText(1)
#Loop through each MXD in the list, export bookmarks to shapefile
for mxdPath in mxdList:
mxd = arcpy.mapping.MapDocument(mxdPath)
shpPath = mxdPath[:-4] + "_ply.shp"
if arcpy.Exists(shpPath):
arcpy.Delete_management(shpPath)
arcpy.CreateFeatureclass_management(os.path.dirname(shpPath),
os.path.basename(shpPath),
"POLYGON", template,
spatial_reference=template)
cur = arcpy.da.InsertCursor(shpPath, ["SHAPE@", "Name"])
array = arcpy.Array()
#Check to see if the list is empty (if there are no bookmarks)
testmxd = arcpy.mapping.ListBookmarks(mxd)
if not testmxd:
arcpy.Delete_management(shpPath)
arcpy.AddMessage("No bookmarks in " + os.path.basename(mxdPath))
else:
for bkmk in arcpy.mapping.ListBookmarks(mxd):
array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMin))
array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMax))
array.add(arcpy.Point(bkmk.extent.XMax, bkmk.extent.YMax))
array.add(arcpy.Point(bkmk.extent.XMax, bkmk.extent.YMin))
# To close the polygon, add the first point again
array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMin))
cur.insertRow([arcpy.Polygon(array), bkmk.name])
array.removeAll()
arcpy.AddMessage("Bookmark polygons created for " + os.path.basename(mxdPath))
... View more
03-20-2014
06:15 AM
|
0
|
0
|
303
|
POST
|
I didn't really modify the code. I just set the output feature class to a shapefile instead of a feature class in a FGDB. import arcpy, os
# The map with the bookmarks
mxd = arcpy.mapping.MapDocument(r"C:\Project\Counties.mxd")
# The output feature class to be created -
# This feature class will store the bookmarks as features
outFC = r'C:\Project\Counties_Bookmarks.shp'
# A template feature class that contains the attribute schema
# Including a "Name" field to store the bookmark name
template = r'C:\Project\Counties.gdb\Template'
if arcpy.Exists(outFC):
arcpy.Delete_management(outFC)
arcpy.CreateFeatureclass_management(os.path.dirname(outFC),
os.path.basename(outFC),
"POLYGON", template,
spatial_reference=template)
cur = arcpy.da.InsertCursor(outFC, ["SHAPE@", "Name"])
array = arcpy.Array()
for bkmk in arcpy.mapping.ListBookmarks(mxd):
array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMin))
array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMax))
array.add(arcpy.Point(bkmk.extent.XMax, bkmk.extent.YMax))
array.add(arcpy.Point(bkmk.extent.XMax, bkmk.extent.YMin))
# To close the polygon, add the first point again
array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMin))
cur.insertRow([arcpy.Polygon(array), bkmk.name])
array.removeAll()
... View more
03-19-2014
10:54 AM
|
0
|
0
|
566
|
Title | Kudos | Posted |
---|---|---|
1 | 04-08-2015 06:25 AM | |
5 | 09-19-2014 05:26 AM |
Online Status |
Offline
|
Date Last Visited |
02-16-2023
03:09 PM
|