|
POST
|
Hi Russell Roberts, I've already solved the problem by re generating the cache from AGOL, so I didn't do the sharing from Pro again to see if that would have worked. Anyway, here is the link to the sd file of one of the layers which failed to publish. Thanks.
... View more
07-23-2019
06:08 AM
|
1
|
0
|
2567
|
|
POST
|
Apparently those four Web Scene Layers with errors in the Jobs panel are present in my contents in AGOL. I tried to rebuild the cache for one of them in the item's detail page -> Settings. It failed the first time but it completed the second. Russell Roberts Will present you with the Job ID and time which can be helpful for us to determine any backend issues. One (the last one) failed to revuild the cache. Here is what you are asking for: https://services1.arcgis.com/akSqihORVVxKLgVJ/arcgis/rest/admin/services/bimgis_agol_WSL5/SceneServer/jobs/0bad1b44-6e38…
... View more
07-19-2019
03:51 AM
|
0
|
2
|
2567
|
|
POST
|
I am also facing strange errors while trying to share a web scene from ArcGIS Pro 2.4. The error in the jobs is the following: "Unknown map tile cache creation status returned" This seems to happen only for some Scene Layers in my scene, while others are shared succesfully. Here is a printscreen of my "Job Queue" panel to give you an idea. Those failed-to-publish WSLs (WSL1, 2, 3, 5) are not that different from those which were published succesfully. The WSL5 in particular, is part of a group layer containing the other layers published succesfully (WSL4, 6, 7, 8, 9, 10), which were converted from a IFC with the Data Interoperability together with the failing WSL5. Also, I recall having published this same Scene without problem. Is the Unknown map tile cache creation status returned error related to a network problem? I also recall once in a while having problems in publishing Web Scenes from Pro which were solved by republish the same Scene without modifications after a while.
... View more
07-19-2019
03:29 AM
|
0
|
3
|
2567
|
|
POST
|
Drew Flater Thanks for pointing that out. As I had lot of "dmp"s file in that location referring to the crash of yesterday, I made ArcGIS Pro crash again. It turns out I don't have to run the Quick Import twice to make it crash, but just open the Input parameter twice by clicking the folder button. Here are the steps to reproduce the errror: open the Quick Import click the folder icon as in the image close the dialog and click again the folder icon After 3, ArcGIS Pro stalls a bit and then crashes. As I don't see how to attach it in this anwer, I've attached it in my main question. Regards
... View more
07-19-2019
01:36 AM
|
0
|
0
|
2640
|
|
POST
|
Is there a way I can attach data to my support call? Could not find it. Anyway, this seems to happen regardless of the data, it really seems related to the Quick Import tool itself and the "open folder" button as I said.
... View more
07-18-2019
08:41 AM
|
0
|
1
|
2640
|
|
POST
|
Thanks. Here is the print from the Python window after a succesful run of the Quick Import (looks like yours). Anyway, I included it in the report (I made ArcGIS Pro crash again ). To add one relevant observation after the last crash, it seems it only the Quick Import crashes only if I click on the folder icon of the first parameter, otherwise it runs. I included also this in the crash report.
... View more
07-18-2019
07:41 AM
|
0
|
1
|
2640
|
|
POST
|
It's very frustrating. After installing version 2.4 of ArcGIS Pro and the same version of Data Interoperability, this is what happens: I use the Quick Import and it works fine As long as I try to use the same tool for the second time, ArcGIS Pro crashes It seems this is not linked with the type of data I am converting if this matters (it happens both for IFC and CIVIL3D transformers). Also, if I open an aprx where I have already used the Data Interoperability, it crashes if I try to use it, as it is a matter if the Quick Import is present in the History of the project. The only thing I could do is opening a brand new ArcGIS Pro session and do my conversion once and do the same for each conversion I need. Not ideal since it used to work and I need to convert a lot of files. I also sent the reports of the crash. Is it a recognized BUG? The only thing I could find was Problem: Data Interoperability has incompatibilities when more than one Data Interoperability product is on a single mac… but it only lists solutions for earlier versions. ATTACHMENT I attached the dump file as suggested by Drew Flater
... View more
07-18-2019
04:01 AM
|
0
|
12
|
3702
|
|
POST
|
Replying to myself again, actually the credits consume came from probably accidentally running the code in the example provided in Drive time analysis for opioid epidemic | ArcGIS for Developers as I found a layer named "DriveTimeToClinics_All_<DATETIME>" in my hosted layers. I know how the credits in AGOL works and I probably should have paid more attention on my tests. However, there should be a warning on the credit consumption in the sample or at least a sample that does not consume 300 credits, so that if someone like me is using the sample for testing purpose will not consume all its credits.
... View more
06-24-2019
03:01 AM
|
0
|
0
|
2586
|
|
POST
|
the "estimate=True" which should tell you the credit consumption does not work. Not only it does not work, but it consumes hundreds of credits!!! I only used a feature set with ONE point to do that and I consumed more than .... 300 credits WTF??!! Use the provided code very carefully or you'll blown your credits away!!!
... View more
06-21-2019
06:19 AM
|
0
|
1
|
2586
|
|
POST
|
DISCLAIMER : Use the provided code at your own risk or you'll blown your credits away!!! (see my comment below the answer) Answering myself. It's been tough but I did it. First of all, I have to say the ArcGIS for Pytho documentation is not very good, at least for the create_drive_time_areas function. Anyway, the way I performed DTA analysis with a local FeatureClass was: converting it to a FeatureSet Converting the FeatureSet into a JSON and then into a dict use this dict as input to the create_drive_time_areas function I am going to convert the result of the analysis (now a hosted feature layer in my organizational AGOL account), which is now in the form of a FeatureSet, back to a (in_memory) FeatureClass and do my stuff with arcpy. Before posting the code I have to warn you: as of now, there's no hint in the docs about what should be the format of the input feature of the create_drive_time_areas. From my trial and errors I saw this message Exception: Invalid format of input layer. url string, feature service Item, feature service instance or dict supported the "estimate=True" which should tell you the credit consumption does not work. Failed to execute (EstimateCredits). Below is the code I used (adapted from Drive time analysis for opioid epidemic | ArcGIS for Developers , sorry I don't know how to format the code in this site...). I only left the part where I use the result to perform spatial query with local data (it's up to you but I should have given you enough information so far). import arcgis, arcpy
from datetime import datetime
from arcgis.features import FeatureLayer
import json
USERNAME="YOUR_USERNAME"
PASSWORD="YOUR_PASSWORD"
IN_FC = r"example.gdb\test"
# Create a FeatureSet object and load in_memory feature class
feature_set = arcpy.FeatureSet()
feature_set.load(IN_FC)
# Connect to GIS
from arcgis.gis import GIS
gis = GIS("https://www.arcgis.com", USERNAME, PASSWORD)
feature_json = feature_set.JSON
feature_dict = json.loads(feature_json)
print(feature_dict)
from arcgis.features.use_proximity import create_drive_time_areas
# Generate service areas
result = create_drive_time_areas(feature_dict, [5],
output_name="TEST"+ str(datetime.now().microsecond),
travel_mode="Walking",
overlap_policy='Dissolve')
# Check type of result
type(result)
# Share results for public consumption
result.share(everyone=True)
# Convert it to a FeatureSet
drive_times_all_layer = result.layers[0]
driveAll_features = drive_times_all_layer.query()
print('Total number of rows in the service area (upto 5 mins) dataset: '+ str(len(driveAll_features.features)))
# Get results as a SpatialDataFrame
driveAll = driveAll_features.sdf
driveAll.head()
... View more
06-21-2019
05:46 AM
|
0
|
4
|
2586
|
|
POST
|
I've made some improvements. From the same sample notebook I mentioned in my question, I get that I can store my result in a FeatureSet and do something with it. # Convert it to a FeatureSet
drive_times_all_layer = result.layers[0]
driveAll_features = drive_times_all_layer.query() Maybe the best thing I can do then is saving this FeatureSet in a temporary local FeatureClass like explained in Quick Tips: Consuming Feature Services with Geoprocessing arcpy.CopyFeatures_management(fs, r "c:\local\data.gdb\permits" ) Still need to try it with some actual data though, will keep you up to date with my findings.
... View more
06-21-2019
02:21 AM
|
0
|
0
|
2586
|
|
POST
|
Hello, I am new to the ArcGIS for Python API but I am kind of expert in arcpy. My aim would be to use the ArcGIS for Python API to perform drive-time-areas analysis (DTA) like explained here and then use the result to perform spatial selections with arcpy on some local data (e.g. ShapeFiles or others). My doubts: Do I need to upload all the input data or is there a way to avoid this step? If I have to, is it possible via the API? Will I then be able to use the result from DTA to perform spatial selection with arcpy against local data or do I have to upload the local data/download the result locally? As regards this last point, I guess one thing to handle would be the JSON format of the resulting SHAPE field from DTA. I know that from ArcGIS Pro one can use Feature Layers from AGOL directly to perform this kind of operations, as opposed to ArcMap where one has to make a copy of it. But, what about via a python script? Is there any better option? Thanks in advance for any hints or advice.
... View more
06-21-2019
12:36 AM
|
0
|
6
|
3065
|
|
POST
|
Hell yeah, couldn't agree more! Why is still like this??!!
... View more
05-24-2019
03:48 AM
|
0
|
0
|
3807
|
|
POST
|
Has anybody experienced this problem? Is it a bug? We still have to deal with it...
... View more
05-24-2019
01:49 AM
|
0
|
0
|
5187
|
|
POST
|
I find only python method but i i have found on examples with ArcObject. Thanke you, Roberto
... View more
04-15-2019
09:05 AM
|
0
|
0
|
421
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-23-2018 06:39 AM | |
| 1 | 01-31-2018 06:01 AM | |
| 1 | 10-16-2018 03:42 AM | |
| 1 | 10-24-2019 06:05 AM | |
| 1 | 06-26-2017 03:53 AM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|