New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update tutorial with correct cell output #1685
base: master
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@@ -84,16 +84,16 @@ | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting this error:
--------------------------------------------------------------------------- Exception Traceback (most recent call last) ~/Job/repos/geosaurus/src/arcgis/gis/__init__.py in _hydrate(self) 18742 try: > 18743 self._refresh() 18744 ~/Job/repos/geosaurus/src/arcgis/gis/__init__.py in _refresh(self) 18716 else: > 18717 raise e 18718 ~/Job/repos/geosaurus/src/arcgis/gis/__init__.py in _refresh(self) 18705 else: > 18706 dictdata = self._con.post( 18707 self.url, params ~/Job/repos/geosaurus/src/arcgis/gis/_impl/_con/_connection.py in post(self, path, params, files, **kwargs) 1525 return resp -> 1526 return self._handle_response( 1527 resp=resp, ~/Job/repos/geosaurus/src/arcgis/gis/_impl/_con/_connection.py in _handle_response(self, resp, file_name, out_path, try_json, force_bytes, ignore_error_key) 1000 errorcode = data["error"]["code"] if "code" in data["error"] else 0 -> 1001 self._handle_json_error(data["error"], errorcode) 1002 return data ~/Job/repos/geosaurus/src/arcgis/gis/_impl/_con/_connection.py in _handle_json_error(self, error, errorcode) 1023 errormessage = errormessage + "\n(Error Code: " + str(errorcode) + ")" -> 1024 raise Exception(errormessage) 1025 Exception: User does not have permissions to access 'washingtoncounty.mapserver'. (Error Code: 403) During handling of the above exception, another exception occurred: Exception Traceback (most recent call last) /var/folders/x2/p8wq0fyj2z37bm9vgf8zbhn80000gp/T/ipykernel_94456/3310369137.py in <module> ----> 1 parcel_fabric_flc = FeatureLayerCollection(service_urls["FeatureServer"], gis) 2 version_management_server = parcel_fabric_flc.versions 3 4 new_version_name = "merge_version_1" 5 ~/Job/repos/geosaurus/src/arcgis/features/layer.py in __init__(self, url, gis) 4331 4332 try: -> 4333 if self.properties.syncEnabled: 4334 self.replicas = SyncManager(self) 4335 except AttributeError: ~/Job/repos/geosaurus/src/arcgis/gis/__init__.py in properties(self) 18727 return self._lazy_properties 18728 else: > 18729 self._hydrate() 18730 return self._lazy_properties 18731 ~/Job/repos/geosaurus/src/arcgis/gis/__init__.py in _hydrate(self) 18764 # try as a public server 18765 self._lazy_token = None > 18766 self._refresh() 18767 18768 except HTTPError as httperror: ~/Job/repos/geosaurus/src/arcgis/gis/__init__.py in _refresh(self) 18715 dictdata = self._con.get(self.url, params) 18716 else: > 18717 raise e 18718 18719 self._lazy_properties = _mixins.PropertyMap(dictdata) ~/Job/repos/geosaurus/src/arcgis/gis/__init__.py in _refresh(self) 18704 ) 18705 else: > 18706 dictdata = self._con.post( 18707 self.url, params 18708 ) # , token=self._lazy_token) ~/Job/repos/geosaurus/src/arcgis/gis/_impl/_con/_connection.py in post(self, path, params, files, **kwargs) 1524 if return_raw_response: 1525 return resp -> 1526 return self._handle_response( 1527 resp=resp, 1528 out_path=out_path, ~/Job/repos/geosaurus/src/arcgis/gis/_impl/_con/_connection.py in _handle_response(self, resp, file_name, out_path, try_json, force_bytes, ignore_error_key) 999 return data 1000 errorcode = data["error"]["code"] if "code" in data["error"] else 0 -> 1001 self._handle_json_error(data["error"], errorcode) 1002 return data 1003 else: ~/Job/repos/geosaurus/src/arcgis/gis/_impl/_con/_connection.py in _handle_json_error(self, error, errorcode) 1022 1023 errormessage = errormessage + "\n(Error Code: " + str(errorcode) + ")" -> 1024 raise Exception(errormessage) 1025 1026 def post_multipart( Exception: User does not have permissions to access 'washingtoncounty.mapserver'. (Error Code: 403)
Reply via ReviewNB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jyaistMap I don't have control over the enterprise. The services are wiped on some interval. This is fine, I can republish, however, now, the users are no longer able to connect to the server and create content.
@@ -84,16 +84,16 @@ | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The maps are not showing up in the guide. Can you republish this guide...but with map cells, you have to do the following
- Insert a blank code cell below the map, and run map.take_screenshot().
- replace the map.take_screenshot() code with the code that rendered the map, in this case
map = gis.map("Keowns, WI")
map.draw(parcels_subset)
map.zoom_to_layer(parcels_subset)
map
- delete the original map cell
- See this doc how to embed map images in notebooks wiki and let me know if you have questions.
Reply via ReviewNB
Update the parcel fabric "merge" tutorial to get rid of the
unable to resume service session
error. The hosted feature service uses Postgres which was hitting a case issue creating asession_id
.Checklist
Please go through each entry in the below checklist and mark an 'X' if that condition has been met. Every entry should be marked with an 'X' to be get the Pull Request approved.
import
s are in the first cell?arcgis
imports? Note that in some cases, for samples, it is a good idea to keep the imports next to where they are used, particularly for uncommonly used features that we want to highlight.GIS
object instantiations are one of the following?gis = GIS()
gis = GIS('home')
orgis = GIS('pro')
gis = GIS(profile="your_online_portal")
gis = GIS(profile="your_enterprise_portal")
./misc/setup.py
and/or./misc/teardown.py
?api_data_owner
user?api_data_owner
account and change the notebook to first download and unpack the files.<img src="base64str_here">
instead of<img src="https://some.url">
? All map widgets contain a static image preview? (Callmapview_inst.take_screenshot()
to do so)os.path.join()
? (Instead ofr"\foo\bar"
,os.path.join(os.path.sep, "foo", "bar")
, etc.)Export Training Data Using Deep Learning
tool published on geosaurus org (api data owner account) and added in the notebook usinggis.content.get
function?gis.content.get
function? Note: This includes providing test raster and trained model.