BLOG
|
Hi @ZacharySutherby ,@MillerDerek , This blog post is really helpful. I have tried this workflow from ArcGIS Online to ArcGIS Online and it works Perfectly. I have tried the Clone full Survey Folder from ArcGIS Online to ArcGIS Enterprise and also from ArcGIS Enterprise to ArcGIS Enterprise. In both cases, I get "The Survey does not exist or is not accessible". Is there any work around to fix this? Please suggest. Thanks, Krish
... View more
06-02-2021
03:15 AM
|
0
|
0
|
5236
|
POST
|
Hi @Anonymous User , Thanks for your response! 🙂 I have checked the RasterAnalysis REST end point and it is running. I'm using ArcGIS Image Server 10.8.1 Thanks, Krish
... View more
01-15-2021
01:23 AM
|
0
|
1
|
900
|
POST
|
Hi @MehdiPira1 , I was getting result in ArcGIS Pro using Sentinel Images but same thing is not happening using ArcGIS Python API if I use Sentinel Imagery available in Living Atlas. However, I have managed to extract burnt areas using Landsat Imagery available in Living Atlas Thanks, Krish
... View more
01-11-2021
03:25 AM
|
0
|
0
|
1315
|
POST
|
Hi All, I'm trying to use the sample - California wildfires 2017 - Thomas Fire analysis on my AOI and I'm able to extract the burnt areas as shown below: But when trying to save it, I'm getting below error: ---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
<ipython-input-28-f2cc7de7a07e> in <module>
----> 1 persisted_fire_output = burnt_areas.save()
/opt/conda/lib/python3.6/site-packages/arcgis/raster/_layer.py in save(self, output_name, for_viz, process_as_multidimensional, build_transpose, gis, future, **kwargs)
3458 gr_output = _save_ra(self._fnra,output_name=output_name, other_outputs=self._other_outputs, gis=g,future=future, **kwargs)
3459 else:
-> 3460 gr_output = generate_raster(self._fnra, output_name=output_name, process_as_multidimensional=process_as_multidimensional, build_transpose=build_transpose, gis=g, future=future, **kwargs)
3461 except Exception:
3462 if layer_extent_set:
/opt/conda/lib/python3.6/site-packages/arcgis/raster/analytics.py in generate_raster(raster_function, function_arguments, output_raster_properties, output_name, process_as_multidimensional, build_transpose, context, gis, future, **kwargs)
844 context=context,
845 future=future,
--> 846 **kwargs)
847
848 def convert_feature_to_raster(input_feature,
/opt/conda/lib/python3.6/site-packages/arcgis/_impl/tools.py in generate_raster(self, raster_function, function_arguments, output_raster_properties, output_name, context, future, **kwargs)
7514 function_arguments=function_arguments,
7515 output_raster_properties=output_raster_properties,
-> 7516 context=context, gis=self._gis, future=True)
7517 gpjob._is_ra = True
7518 gpjob._item_properties = True
<string> in generate_raster(raster_function, output_name, function_arguments, output_raster_properties, context, gis, future)
/opt/conda/lib/python3.6/site-packages/arcgis/geoprocessing/_support.py in _execute_gp_tool(gis, task_name, params, param_db, return_values, use_async, url, webtool, add_token, return_messages, future)
388 job_info = gptool._con.post(submit_url, gp_params)
389 else:
--> 390 job_info = gptool._con.post(submit_url, gp_params)
391 job_id = job_info['jobId']
392 if future:
/opt/conda/lib/python3.6/site-packages/arcgis/gis/_impl/_con/_connection.py in post(self, path, params, files, **kwargs)
708 file_name=file_name,
709 try_json=try_json,
--> 710 force_bytes=kwargs.pop('force_bytes', False))
711 #----------------------------------------------------------------------
712 def put(self, url, params=None, files=None, **kwargs):
/opt/conda/lib/python3.6/site-packages/arcgis/gis/_impl/_con/_connection.py in _handle_response(self, resp, file_name, out_path, try_json, force_bytes)
495 raise Exception(resp['error'])
496 else:
--> 497 data = resp.json()
498 #if 'error' in data:
499 #raise Exception(data['error'])
/opt/conda/lib/python3.6/site-packages/requests/models.py in json(self, **kwargs)
896 # used.
897 pass
--> 898 return complexjson.loads(self.text, **kwargs)
899
900 @property
/opt/conda/lib/python3.6/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw)
523 parse_constant is None and object_pairs_hook is None
524 and not use_decimal and not kw):
--> 525 return _default_decoder.decode(s)
526 if cls is None:
527 cls = JSONDecoder
/opt/conda/lib/python3.6/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3)
368 if _PY3 and isinstance(s, bytes):
369 s = str(s, self.encoding)
--> 370 obj, end = self.raw_decode(s)
371 end = _w(s, end).end()
372 if end != len(s):
/opt/conda/lib/python3.6/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3)
398 elif ord0 == 0xef and s[idx:idx + 3] == '\xef\xbb\xbf':
399 idx += 3
--> 400 return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0) Any idea on how to fix this error? @RohitSingh2 Thanks, Krish
... View more
01-11-2021
03:23 AM
|
0
|
3
|
971
|
IDEA
|
Hi @patrickb , Yes, you are right. Polygons can very in size. The idea is when I select any Admin Level Boundaries from Category Selector or a List, the polygon should be properly zoomed in to cover the map. Please let me know if you need more clarification. Thanks! 🙂 Regards, Krish
... View more
12-12-2020
09:53 AM
|
0
|
0
|
1447
|
POST
|
Hi @MehdiPira1 , Did you get a chance to check on this? Thanks, Krish
... View more
12-10-2020
02:04 AM
|
0
|
0
|
1422
|
POST
|
Hi @MehdiPira1 , I have taken the formula from below site: https://developers.arcgis.com/python/sample-notebooks/wildfire-analysis-using-sentinel-2-imagery/ I have used below formula also but I don't get any desire results: "(b5 - b7) / (b5 + b7+1000)" I have also visualized the midfire image and I see the burnt areas Thanks, Krish
... View more
12-08-2020
11:46 PM
|
0
|
2
|
1509
|
POST
|
Hi @BrandonA_CDPH , If you have to create in Web Designer, you need to start from Scratch. Please see the documentation below: https://doc.arcgis.com/en/survey123/browser/create-surveys/publishsurvey.htm Thanks, Krish
... View more
12-08-2020
08:29 PM
|
1
|
1
|
1708
|
POST
|
Hi Everyone, I'm trying to use California wildfires 2017 - Thomas Fire analysis Sample provided in ArcGIS Python API Samples. I have used sentinel imagery to do the same analysis but I always end up getting black imagery (All 0s). Can you please suggest where I'm doing wrong? import arcgis
from arcgis import *
from arcgis.mapping import MapImageLayer
gis = GIS(profile="krishna_dev")
#Sentinel2
sentinel_item = gis.content.search('title:Sentinel2', 'Imagery Layer', outside_org=True)[0]
sentinel = sentinel_item.layers[0]
sentinel_item
aoi = {'spatialReference': {'latestWkid': 3857, 'wkid': 102100}, 'type': 'extent',
'xmax': 9028482.969, 'xmin': 8908018.212, 'ymax': 2478700.211, 'ymin': 2248166.133}
arcgis.env.analysis_extent = {'xmax': 9028482.969, 'xmin': 8908018.212, 'ymax': 2478700.211, 'ymin': 2248166.133,
"spatialReference":{"wkid":102100,"latestWkid":3857}}
sentinel.extent = aoi
import pandas as pd
from datetime import datetime
selected = sentinel.filter_by(where="(Category = 1)",
time=[datetime(2020, 4, 3), datetime(2020, 4, 15)],
geometry=arcgis.geometry.filters.intersects(aoi))
df = selected.query(out_fields="acquisitiondate, name, cloudcover",
order_by_fields="acquisitiondate").sdf
df['acquisitiondate'] = pd.to_datetime(df['acquisitiondate'], unit='ms')
df.tail()
prefire = sentinel.filter_by('OBJECTID in ( 10127407, 10187367)') # 2020-04-03
prefire = prefire.blend()
midfire = sentinel.filter_by('OBJECTID in (10304749, 10304746)') # 2020-04-13
midfire = midfire.blend()
from arcgis.raster.functions import *
extracted_band = extract_band(midfire, [13,12,4])
extracted_band_prefire = extract_band(prefire, [13,12,4])
nbr_prefire = band_arithmetic(prefire, "(b9 - b13) / (b9 + b13) + 2000")
nbr_postfire = band_arithmetic(midfire, "(b9 - b13) / (b9 + b13) + 2000")
nbr_diff = nbr_prefire - nbr_postfir
nbr_diff
burnt_areas = colormap(remap(nbr_diff,
input_ranges=[0.1, 0.27, # low severity
0.27, 0.44, # medium severity
0.44, 0.66, # moderate severity
0.66, 1.00], # high severity burn
output_values=[1, 2, 3, 4],
no_data_ranges=[-1, 0.1], astype='u8'),
colormap=[[4, 0xFF, 0xC3, 0], [3, 0xFA, 0x8E, 0], [2, 0xF2, 0x55, 0], [1, 0xE6, 0, 0]])
burnt_areas Thanks, Krish
... View more
12-08-2020
08:24 PM
|
0
|
5
|
1544
|
POST
|
Hi @DanPatterson , Updated the post with code! Thanks, Krish
... View more
12-08-2020
08:23 PM
|
0
|
0
|
736
|
POST
|
Hi @DanPatterson , I attached the entire notebook in the zip file. Thanks, Krish
... View more
12-08-2020
04:42 AM
|
0
|
0
|
753
|
POST
|
Yes. If you are not performing any mathematical functions on those fields, it is best to use these fields as Text/String. Hope this helps. Thanks, Krish
... View more
12-08-2020
01:22 AM
|
1
|
0
|
1127
|
POST
|
Please see below sample if it works for you: https://developers.arcgis.com/labs/javascript/display-point-line-and-polygon-graphics/ Thanks, Krish
... View more
12-08-2020
01:08 AM
|
0
|
0
|
786
|
POST
|
I think you can convert that .xlsx or .csv files as Feature Services and use Survey123 Connect to Publish Survey123 form by Selecting Feature Service option as below. Thanks, Krish
... View more
12-08-2020
01:07 AM
|
0
|
0
|
1106
|
POST
|
You can download the latest version from below URL: https://www.esri.com/en-us/arcgis/products/arcgis-survey123/resources?rmedium=www_esri_com_EtoF&rsource=/en-us/arcgis/products/survey123/resources Thanks, Krish
... View more
12-08-2020
01:04 AM
|
0
|
1
|
634
|
Title | Kudos | Posted |
---|---|---|
1 | 11-16-2021 03:44 AM | |
1 | 08-21-2019 10:49 PM | |
1 | 12-08-2020 08:29 PM | |
1 | 12-08-2020 01:22 AM | |
1 | 06-04-2017 08:38 AM |
Online Status |
Offline
|
Date Last Visited |
01-11-2024
03:54 PM
|