|
POST
|
Hi Jamie Lambert Are you referring to the Site (now renamed as Initiative) Title or Site name? I just tried creating a new Initiative, and the only restriction I see is the 4 character for the name. Can you check to see if you already have a group in your AGOL with the same site name? As described in Site configuration, Content is added to your site using ArcGIS Online groups. If you're not familiar with groups, they are a way to organize content like datasets, documents, web maps, and other ArcGIS Online itemslike web maps, surveys, and documents. When you create a new site, a group is generated for you called <Your site's name> Content. You can use this group to organize the content you want to share on your site.
... View more
08-26-2019
02:16 AM
|
0
|
0
|
3330
|
|
POST
|
Hi Nic Ensor, Do you see any more information / logging in the Job Status tab? How big are the TIFFS? I would recommend attempting publishing with just 1 TIFF to see if it works.
... View more
08-25-2019
10:01 PM
|
0
|
2
|
1066
|
|
POST
|
joe rodmey There are a couple of ways to achieve this. If it's an once off calculatation, you can either: 1) Make a ArcGIS REST API call to Query Attachments to get the json response and count the elements: e.g. https://services.myserver.com/OrgID/ArcGIS/rest/services/light-inventory/FeatureServer/0/queryAttachments Query Attachments (Feature Service/Layer)—ArcGIS REST API: Services Directory | ArcGIS for Developers and paste the json in a json viewer like this: JSON Editor Online - view, edit and format JSON online You can view the array and get the element count. OR 2) Run a python script to query the feature layer. The following script downloads the attachments, takes a total file-size count as well as total number of attachments: Github Source You can also trim it down so it only returns the count and not download the attachments. The variable of interest is "downloadCounter" Provide the username, password, and feature layer id in the following lines: import logging, os, re, datetime
from IPython.display import display
from arcgis.gis import GIS
''' ********************** SCRIPT CONFIGURATION START ********************** '''
#What is the ID of the Feature Layer you want to download attachments from?
FeatureLayerId = '092d075f4b3a40f78cf1329b20b0d5e7'
#What are your ArcGIS Enterprise/ArcGIS Online credentials? This is case sensitive.
PortalUserName = ''
PortalPassword = ''
PortalUrl = 'https://www.arcgis.com' Hope that helps. Derrick
... View more
08-22-2019
09:25 AM
|
1
|
4
|
5681
|
|
POST
|
Hi Brad Oleson, Just had a brief look at your code, and couldn't help but notice the following bit: I know it sounds counter-intuitive, but keep the block of code for editing short; Try to plan the layout and looping structures – find out what information you need to collect at the start of the script, add this information to dictionaries with custom classes instead of opening the cursor and then reading and performing operations on the values within the block. You should see some performance optimisation from this change. Also, I would probably use a config file to store those column names. Lastly, using "with" statement should release the cursor from memory reliably; you shouldn't need to delete the cursor again. Hope that helps.
... View more
08-14-2019
09:21 PM
|
0
|
0
|
992
|
|
POST
|
Nah, once max record count is reached, it will display the first 2000 and then you get a yellow exclamation triangle. It shouldn't break the query or prevent it from drawing.
... View more
08-01-2019
05:03 AM
|
0
|
1
|
710
|
|
POST
|
Swakeert Jain I tried adding your layer to a blank map on AGOL and then hit the zoom to. It broke the map; my pan and zoom stopped working. This leads me to think that the extent for the layer is incorrect? Can you check if this is the extent specified is correct? I don't have access to desktop/pro atm, so I can't check those points.
... View more
08-01-2019
04:59 AM
|
0
|
0
|
3215
|
|
POST
|
hmm, i had a look at your other layer which drew fine, similar syntax. I would try fixing the result count first.
... View more
08-01-2019
01:53 AM
|
0
|
2
|
3215
|
|
POST
|
Swakeert Jain, if you query it via the REST endpoint, it returns 0 results. The drawing info parameter looks suspect too: It appears that the substitution did not work and there are quite a few escape characters present: {\nvalue = $feature[fieldNames];\nif(value \u003e 0) {\nif(value \u003e maxValue) {\nmaxValue = value;\nmaxValueField = fieldNames;\n}\nelse if (value == maxValue) {\nmaxValueField = null;\n}\n}\n}\nreturn maxValueField;\n","valueExpressionTitle":"Predominant Category","uniqueValueInfos":[{"value":"F2017_DB_KEY_1","label":"2017 DataBase Key 1","symbol":{"color":[175,0,110],"outline":{"color":
... View more
08-01-2019
01:49 AM
|
0
|
3
|
3215
|
|
POST
|
Hi Swakeert Jain, The Feature Service you have linked do not contain any features. Codepen is returning 200 for all the queries.
... View more
07-31-2019
07:54 PM
|
0
|
5
|
3215
|
|
POST
|
Hi Lakshmanan Venkatesan, AFAIK, import / export only works when the machine name is the same. Keep the web adaptors names the same. The other thing you may want to consider is your SSL certs (if not using wildcard and/or on different domain); if you have registered them with Portal/Server, and they are now different, you will need to change them. Regards, Derrick
... View more
07-31-2019
07:47 PM
|
0
|
0
|
1588
|
|
POST
|
Hi Vitor Ribeiro, If you know the extent, you can call .update(item_properties={'extent': extent}) https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#item
... View more
07-31-2019
07:29 PM
|
1
|
2
|
3768
|
|
POST
|
Hi Lakshmanan Venkatesan, If your new VM has a different machine name and ip address, you can proceed with what you have suggested. And have your alias point to the new VM once you have migrated your content and tested your new setup. Pros would include: Keeping your current setup running for BAU. Having access to your existing portal/services directory would make live a lot easier when doing the migration; you will have a point of reference. Any mistake you make wont affect your current environment. The migration process is going to be tricky. Good luck 😃 Regards, Derrick
... View more
07-31-2019
02:04 AM
|
0
|
1
|
1588
|
|
POST
|
Hi Swakeert Jain, There could be a couple of reasons, Coordinates may be flipped Invalid extent Invalid coordinate system Can you share your code snippet and your custom definition so that I can have a look at it? Regards, Derrick
... View more
07-30-2019
08:11 PM
|
0
|
0
|
3215
|
|
POST
|
Hi Vitor Ribeiro, You should be able to grab the extent from the layer object that is returned from a search: Here's a sample code: from arcgis.gis import GIS gis = GIS("https://ABC.maps.arcgis.com", "USERNAME", "PASSWORD") search_result = gis.content.search('title:LayerOfInterest', item_type = 'Feature Service') if len(search_result) > 0: layer = search_result[0] #assuming we want the first layer. print(layer.extent) Attached is a screenshot of the code running on my AGOL with the results displayed in the output. Hope that helps.
... View more
07-30-2019
07:57 PM
|
1
|
4
|
3768
|
|
POST
|
Hi yoc kee, You shouldn't need to if the password to that db account hasn't changed.
... View more
07-28-2019
10:22 PM
|
0
|
0
|
6937
|
| Title | Kudos | Posted |
|---|---|---|
| 8 | 01-20-2021 10:36 PM | |
| 1 | 07-26-2019 02:03 AM | |
| 2 | 08-08-2021 10:40 PM | |
| 2 | 03-10-2021 07:16 PM | |
| 1 | 01-26-2021 09:53 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-31-2025
10:42 PM
|