POST
|
What is the workflow for adding hosted imagery layer items from a portal to a local mosaic dataset, and then sharing the mosaic dataset on the same portal? I need to share the source data as both individual imagery layer as well as collectively through a single item, and I want to avoid having to store two copies of each source raster in the data store in order to accomplish this. Here are a couple of things I've tried: 1. Using the Add Rasters to Mosaic Dataset tool, I was able to select the portal items after setting the "raster type" parameter to "image service". The tool ran without any errors or warnings. However, nothing was added to the mosaic dataset (the footprint table was still empty). It seems like this should work... 2. For experimental purposes only, I also tried adding the source rasters of the items, which are CRF files in the portal's raster data store, directly to the local mosaic dataset over the network using UNC paths. This actually succeeded. However, after sharing the mosaic dataset to the portal, the resulting imagery layer was unable to access the imagery and would only display the checkerboard pattern you see when the data are inaccessible. Also, the Analyze Mosaic Dataset tool failed to run on the mosaic dataset with a "failed to analyze <mosaic dataset name>" error. Thanks for any suggestions!
... View more
04-04-2017
03:56 PM
|
0
|
1
|
1339
|
POST
|
That works. Thanks again! my_featureset = my_flyr.query(where="state='WY'") from arcgis.features import FeatureCollection my_fc = FeatureCollection(my_featureset.to_dict()) from arcgis.features.analyze_patterns import interpolate_points interpolated_points = interpolate_points(my_fc, field='GHI')
... View more
03-31-2017
05:24 PM
|
0
|
1
|
1384
|
POST
|
Thanks Rohit the quick response!. Would it be possible to construct an in-memory feature layer object from a FeatureSet to use as the tool input? If not, can you suggest any alternatives for passing in a subset of points from a feature layer to the tool that does not involve creating a new feature layer item?
... View more
03-31-2017
12:40 PM
|
0
|
3
|
1384
|
POST
|
The API guide for interpolate_points for the input_layer parameter mentions "see Feature Input in documentation". Where do I find that documentation? More specifically, I'm trying to figure out if I can use featureset as the input layer? I'm currently getting this error: ---------------------------------------------------------------------------Exception Traceback (most recent call last)<ipython-input-52-ba1e10e3e46c> in <module>() 1 from arcgis.features.analyze_patterns import interpolate_points----> 2 interpolated_sites = interpolate_points(solardatasites_fset, field='jul_ghi') C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\analyze_patterns.py in interpolate_points(input_layer, field, interpolate_option, output_prediction_error, classification_type, num_classes, class_breaks, bounding_polygon_layer, predict_at_point_layer, output_name, context, gis) 209 predict_at_point_layer, 210 output_name,--> 211 context)C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\tools.py in interpolate_points(self, input_layer, field, interpolate_option, output_prediction_error, classification_type, num_classes, class_breaks, bounding_polygon_layer, predict_at_point_layer, output_name, context) 1322 params = {} 1323 -> 1324 params["inputLayer"] = super()._feature_input(input_layer) 1325 params["field"] = field 1326 if interpolate_option is not None: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\tools.py in _feature_input(self, input_layer) 381 input_param = {"url": input_layer_url } 382 else:--> 383 raise Exception("Invalid format of input layer. url string, feature service Item, feature service instance or dict supported") 384 385 return input_param Exception: Invalid format of input layer. url string, feature service Item, feature service instance or dict supported
... View more
03-31-2017
11:05 AM
|
0
|
5
|
1811
|