Replies: 5 comments 1 reply
-
I just tested it on my computer, and it worked without any problem. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I still have the problem too, both in my laptop and workstation. I have
installed geemap 0.8.13 on these computers.
…---------------------------------------------------------------------------EEException
Traceback (most recent call
last)<ipython-input-2-87c8e2b0c03c> in <module> 1 Map =
geemap.Map(basemap='SATELLITE',center=[20,105], zoom=7) 2 shpfile
= geemap.shp_to_ee('E:/Test.shp')----> 3
Map.addLayer(shpfile,{},'Plots') 4 Map.centerObject(shpfile,15)
5 Map
C:\ProgramData\Anaconda3\lib\site-packages\geemap\geemap.py in
add_ee_layer(self, ee_object, vis_params, name, shown, opacity) 1305
raise Exception(e) 1306 -> 1307 map_id_dict
= ee.Image(image).getMapId(vis_params) 1308 tile_layer =
TileLayer( 1309
url=map_id_dict["tile_fetcher"].url_format,
C:\ProgramData\Anaconda3\lib\site-packages\ee\image.py in
getMapId(self, vis_params) 129 vis_image, request =
self._apply_visualization(vis_params) 130 request['image'] =
vis_image--> 131 response = data.getMapId(request) 132
response['image'] = self 133 return response
C:\ProgramData\Anaconda3\lib\site-packages\ee\data.py in
getMapId(params) 559 request = { 560 'expression':-->
561 serializer.encode(params['image'], for_cloud_api=True),
562 'fileFormat': 563
_cloud_api_utils.convert_to_image_file_format(params.get('format')),
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
encode(obj, is_compound, for_cloud_api) 286 """ 287
serializer = Serializer(is_compound, for_cloud_api=for_cloud_api)-->
288 return serializer._encode(obj) # pylint:
disable=protected-access 289 290
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
_encode(self, obj) 72 """ 73 if
self._for_cloud_api:---> 74 return
self._encode_for_cloud_api(obj) 75 value =
self._encode_value(obj) 76 if self._is_compound:
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
_encode_for_cloud_api(self, obj) 90 def
_encode_for_cloud_api(self, obj): 91 """Encodes an object as
an Expression or quasi-Expression."""---> 92 value =
self._encode_cloud_object(obj) 93 if self._is_compound: 94
# Wrap the scopes and final value into an Expression.
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
_encode_cloud_object(self, obj) 213 elif isinstance(obj,
encodable.Encodable): 214 # Some objects know how to encode
themselves.--> 215 result =
obj.encode_cloud_value(self._encode_cloud_object) 216 elif
isinstance(obj, (list, tuple)): 217 # Lists are encoded
recursively.
C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in
encode_cloud_value(self, encoder) 137 value =
self.args[name] 138 if value is not None:--> 139
encoded_args[name] = {'valueReference': encoder(value)} 140
invocation['arguments'] = encoded_args 141 return
{'functionInvocationValue': invocation}
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
_encode_cloud_object(self, obj) 213 elif isinstance(obj,
encodable.Encodable): 214 # Some objects know how to encode
themselves.--> 215 result =
obj.encode_cloud_value(self._encode_cloud_object) 216 elif
isinstance(obj, (list, tuple)): 217 # Lists are encoded
recursively.
C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in
encode_cloud_value(self, encoder) 137 value =
self.args[name] 138 if value is not None:--> 139
encoded_args[name] = {'valueReference': encoder(value)} 140
invocation['arguments'] = encoded_args 141 return
{'functionInvocationValue': invocation}
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
_encode_cloud_object(self, obj) 213 elif isinstance(obj,
encodable.Encodable): 214 # Some objects know how to encode
themselves.--> 215 result =
obj.encode_cloud_value(self._encode_cloud_object) 216 elif
isinstance(obj, (list, tuple)): 217 # Lists are encoded
recursively.
C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in
encode_cloud_value(self, encoder) 137 value =
self.args[name] 138 if value is not None:--> 139
encoded_args[name] = {'valueReference': encoder(value)} 140
invocation['arguments'] = encoded_args 141 return
{'functionInvocationValue': invocation}
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
_encode_cloud_object(self, obj) 213 elif isinstance(obj,
encodable.Encodable): 214 # Some objects know how to encode
themselves.--> 215 result =
obj.encode_cloud_value(self._encode_cloud_object) 216 elif
isinstance(obj, (list, tuple)): 217 # Lists are encoded
recursively.
C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in
encode_cloud_value(self, encoder) 137 value =
self.args[name] 138 if value is not None:--> 139
encoded_args[name] = {'valueReference': encoder(value)} 140
invocation['arguments'] = encoded_args 141 return
{'functionInvocationValue': invocation}
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
_encode_cloud_object(self, obj) 219 result = { 220
'arrayValue': {--> 221 'values': [{ 222
'valueReference': self._encode_cloud_object(i) 223
} for i in obj]
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
<listcomp>(.0) 220 'arrayValue': { 221
'values': [{--> 222 'valueReference':
self._encode_cloud_object(i) 223 } for i in obj]
224 }
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
_encode_cloud_object(self, obj) 213 elif isinstance(obj,
encodable.Encodable): 214 # Some objects know how to encode
themselves.--> 215 result =
obj.encode_cloud_value(self._encode_cloud_object) 216 elif
isinstance(obj, (list, tuple)): 217 # Lists are encoded
recursively.
C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in
encode_cloud_value(self, encoder) 137 value =
self.args[name] 138 if value is not None:--> 139
encoded_args[name] = {'valueReference': encoder(value)} 140
invocation['arguments'] = encoded_args 141 return
{'functionInvocationValue': invocation}
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
_encode_cloud_object(self, obj) 240 result = { 241
'dictionaryValue': {--> 242 'values': { 243
key: { 244
'valueReference': self._encode_cloud_object(obj[key])
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
<dictcomp>(.0) 242 'values': { 243
key: {--> 244 'valueReference':
self._encode_cloud_object(obj[key]) 245 } for
key in sorted(obj) 246 }
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in
_encode_cloud_object(self, obj) 257 } 258 else:-->
259 raise ee_exception.EEException('Can\'t encode object: %s' %
obj) 260 261 if self._is_compound:
EEException: Can't encode object: b'
'
On Sat, Mar 27, 2021 at 4:03 AM Qiusheng Wu ***@***.***> wrote:
I just tested it on my computer, and it worked without any problem.
<https://camo.githubusercontent.com/d9f927d9911644af4753f1b70f68375770e5dbbf68beeb3d98105bb153ab5b48/68747470733a2f2f692e696d6775722e636f6d2f4c6e72784546372e706e67>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#386 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE5J3HUCI7TIVHDLZCVCTRDTFTSAZANCNFSM4Z22RQSA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
After I deleted the last column of the attribute named 'Notes', which have
null values, it works!
[image: image.png]
…On Sat, Mar 27, 2021 at 8:25 AM Jack Chen ***@***.***> wrote:
I still have the problem too, both in my laptop and workstation. I have
installed geemap 0.8.13 on these computers.
---------------------------------------------------------------------------EEException Traceback (most recent call last)<ipython-input-2-87c8e2b0c03c> in <module> 1 Map = geemap.Map(basemap='SATELLITE',center=[20,105], zoom=7) 2 shpfile = geemap.shp_to_ee('E:/Test.shp')----> 3 Map.addLayer(shpfile,{},'Plots') 4 Map.centerObject(shpfile,15) 5 Map
C:\ProgramData\Anaconda3\lib\site-packages\geemap\geemap.py in add_ee_layer(self, ee_object, vis_params, name, shown, opacity) 1305 raise Exception(e) 1306 -> 1307 map_id_dict = ee.Image(image).getMapId(vis_params) 1308 tile_layer = TileLayer( 1309 url=map_id_dict["tile_fetcher"].url_format,
C:\ProgramData\Anaconda3\lib\site-packages\ee\image.py in getMapId(self, vis_params) 129 vis_image, request = self._apply_visualization(vis_params) 130 request['image'] = vis_image--> 131 response = data.getMapId(request) 132 response['image'] = self 133 return response
C:\ProgramData\Anaconda3\lib\site-packages\ee\data.py in getMapId(params) 559 request = { 560 'expression':--> 561 serializer.encode(params['image'], for_cloud_api=True), 562 'fileFormat': 563 _cloud_api_utils.convert_to_image_file_format(params.get('format')),
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in encode(obj, is_compound, for_cloud_api) 286 """ 287 serializer = Serializer(is_compound, for_cloud_api=for_cloud_api)--> 288 return serializer._encode(obj) # pylint: disable=protected-access 289 290
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode(self, obj) 72 """ 73 if self._for_cloud_api:---> 74 return self._encode_for_cloud_api(obj) 75 value = self._encode_value(obj) 76 if self._is_compound:
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_for_cloud_api(self, obj) 90 def _encode_for_cloud_api(self, obj): 91 """Encodes an object as an Expression or quasi-Expression."""---> 92 value = self._encode_cloud_object(obj) 93 if self._is_compound: 94 # Wrap the scopes and final value into an Expression.
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 213 elif isinstance(obj, encodable.Encodable): 214 # Some objects know how to encode themselves.--> 215 result = obj.encode_cloud_value(self._encode_cloud_object) 216 elif isinstance(obj, (list, tuple)): 217 # Lists are encoded recursively.
C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in encode_cloud_value(self, encoder) 137 value = self.args[name] 138 if value is not None:--> 139 encoded_args[name] = {'valueReference': encoder(value)} 140 invocation['arguments'] = encoded_args 141 return {'functionInvocationValue': invocation}
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 213 elif isinstance(obj, encodable.Encodable): 214 # Some objects know how to encode themselves.--> 215 result = obj.encode_cloud_value(self._encode_cloud_object) 216 elif isinstance(obj, (list, tuple)): 217 # Lists are encoded recursively.
C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in encode_cloud_value(self, encoder) 137 value = self.args[name] 138 if value is not None:--> 139 encoded_args[name] = {'valueReference': encoder(value)} 140 invocation['arguments'] = encoded_args 141 return {'functionInvocationValue': invocation}
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 213 elif isinstance(obj, encodable.Encodable): 214 # Some objects know how to encode themselves.--> 215 result = obj.encode_cloud_value(self._encode_cloud_object) 216 elif isinstance(obj, (list, tuple)): 217 # Lists are encoded recursively.
C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in encode_cloud_value(self, encoder) 137 value = self.args[name] 138 if value is not None:--> 139 encoded_args[name] = {'valueReference': encoder(value)} 140 invocation['arguments'] = encoded_args 141 return {'functionInvocationValue': invocation}
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 213 elif isinstance(obj, encodable.Encodable): 214 # Some objects know how to encode themselves.--> 215 result = obj.encode_cloud_value(self._encode_cloud_object) 216 elif isinstance(obj, (list, tuple)): 217 # Lists are encoded recursively.
C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in encode_cloud_value(self, encoder) 137 value = self.args[name] 138 if value is not None:--> 139 encoded_args[name] = {'valueReference': encoder(value)} 140 invocation['arguments'] = encoded_args 141 return {'functionInvocationValue': invocation}
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 219 result = { 220 'arrayValue': {--> 221 'values': [{ 222 'valueReference': self._encode_cloud_object(i) 223 } for i in obj]
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in <listcomp>(.0) 220 'arrayValue': { 221 'values': [{--> 222 'valueReference': self._encode_cloud_object(i) 223 } for i in obj] 224 }
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 213 elif isinstance(obj, encodable.Encodable): 214 # Some objects know how to encode themselves.--> 215 result = obj.encode_cloud_value(self._encode_cloud_object) 216 elif isinstance(obj, (list, tuple)): 217 # Lists are encoded recursively.
C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in encode_cloud_value(self, encoder) 137 value = self.args[name] 138 if value is not None:--> 139 encoded_args[name] = {'valueReference': encoder(value)} 140 invocation['arguments'] = encoded_args 141 return {'functionInvocationValue': invocation}
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 240 result = { 241 'dictionaryValue': {--> 242 'values': { 243 key: { 244 'valueReference': self._encode_cloud_object(obj[key])
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in <dictcomp>(.0) 242 'values': { 243 key: {--> 244 'valueReference': self._encode_cloud_object(obj[key]) 245 } for key in sorted(obj) 246 }
C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 257 } 258 else:--> 259 raise ee_exception.EEException('Can\'t encode object: %s' % obj) 260 261 if self._is_compound:
EEException: Can't encode object: b' '
On Sat, Mar 27, 2021 at 4:03 AM Qiusheng Wu ***@***.***>
wrote:
> I just tested it on my computer, and it worked without any problem.
>
>
> <https://camo.githubusercontent.com/d9f927d9911644af4753f1b70f68375770e5dbbf68beeb3d98105bb153ab5b48/68747470733a2f2f692e696d6775722e636f6d2f4c6e72784546372e706e67>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#386 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AE5J3HUCI7TIVHDLZCVCTRDTFTSAZANCNFSM4Z22RQSA>
> .
>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
You may see these messages in Gmail, where the script layout for this
thread looks better than Github.
…On Sat, Mar 27, 2021 at 8:29 AM Jack Chen ***@***.***> wrote:
After I deleted the last column of the attribute named 'Notes', which have
null values, it works!
[image: image.png]
On Sat, Mar 27, 2021 at 8:25 AM Jack Chen ***@***.***> wrote:
> I still have the problem too, both in my laptop and workstation. I have
> installed geemap 0.8.13 on these computers.
>
> ---------------------------------------------------------------------------EEException Traceback (most recent call last)<ipython-input-2-87c8e2b0c03c> in <module> 1 Map = geemap.Map(basemap='SATELLITE',center=[20,105], zoom=7) 2 shpfile = geemap.shp_to_ee('E:/Test.shp')----> 3 Map.addLayer(shpfile,{},'Plots') 4 Map.centerObject(shpfile,15) 5 Map
> C:\ProgramData\Anaconda3\lib\site-packages\geemap\geemap.py in add_ee_layer(self, ee_object, vis_params, name, shown, opacity) 1305 raise Exception(e) 1306 -> 1307 map_id_dict = ee.Image(image).getMapId(vis_params) 1308 tile_layer = TileLayer( 1309 url=map_id_dict["tile_fetcher"].url_format,
> C:\ProgramData\Anaconda3\lib\site-packages\ee\image.py in getMapId(self, vis_params) 129 vis_image, request = self._apply_visualization(vis_params) 130 request['image'] = vis_image--> 131 response = data.getMapId(request) 132 response['image'] = self 133 return response
> C:\ProgramData\Anaconda3\lib\site-packages\ee\data.py in getMapId(params) 559 request = { 560 'expression':--> 561 serializer.encode(params['image'], for_cloud_api=True), 562 'fileFormat': 563 _cloud_api_utils.convert_to_image_file_format(params.get('format')),
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in encode(obj, is_compound, for_cloud_api) 286 """ 287 serializer = Serializer(is_compound, for_cloud_api=for_cloud_api)--> 288 return serializer._encode(obj) # pylint: disable=protected-access 289 290
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode(self, obj) 72 """ 73 if self._for_cloud_api:---> 74 return self._encode_for_cloud_api(obj) 75 value = self._encode_value(obj) 76 if self._is_compound:
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_for_cloud_api(self, obj) 90 def _encode_for_cloud_api(self, obj): 91 """Encodes an object as an Expression or quasi-Expression."""---> 92 value = self._encode_cloud_object(obj) 93 if self._is_compound: 94 # Wrap the scopes and final value into an Expression.
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 213 elif isinstance(obj, encodable.Encodable): 214 # Some objects know how to encode themselves.--> 215 result = obj.encode_cloud_value(self._encode_cloud_object) 216 elif isinstance(obj, (list, tuple)): 217 # Lists are encoded recursively.
> C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in encode_cloud_value(self, encoder) 137 value = self.args[name] 138 if value is not None:--> 139 encoded_args[name] = {'valueReference': encoder(value)} 140 invocation['arguments'] = encoded_args 141 return {'functionInvocationValue': invocation}
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 213 elif isinstance(obj, encodable.Encodable): 214 # Some objects know how to encode themselves.--> 215 result = obj.encode_cloud_value(self._encode_cloud_object) 216 elif isinstance(obj, (list, tuple)): 217 # Lists are encoded recursively.
> C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in encode_cloud_value(self, encoder) 137 value = self.args[name] 138 if value is not None:--> 139 encoded_args[name] = {'valueReference': encoder(value)} 140 invocation['arguments'] = encoded_args 141 return {'functionInvocationValue': invocation}
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 213 elif isinstance(obj, encodable.Encodable): 214 # Some objects know how to encode themselves.--> 215 result = obj.encode_cloud_value(self._encode_cloud_object) 216 elif isinstance(obj, (list, tuple)): 217 # Lists are encoded recursively.
> C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in encode_cloud_value(self, encoder) 137 value = self.args[name] 138 if value is not None:--> 139 encoded_args[name] = {'valueReference': encoder(value)} 140 invocation['arguments'] = encoded_args 141 return {'functionInvocationValue': invocation}
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 213 elif isinstance(obj, encodable.Encodable): 214 # Some objects know how to encode themselves.--> 215 result = obj.encode_cloud_value(self._encode_cloud_object) 216 elif isinstance(obj, (list, tuple)): 217 # Lists are encoded recursively.
> C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in encode_cloud_value(self, encoder) 137 value = self.args[name] 138 if value is not None:--> 139 encoded_args[name] = {'valueReference': encoder(value)} 140 invocation['arguments'] = encoded_args 141 return {'functionInvocationValue': invocation}
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 219 result = { 220 'arrayValue': {--> 221 'values': [{ 222 'valueReference': self._encode_cloud_object(i) 223 } for i in obj]
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in <listcomp>(.0) 220 'arrayValue': { 221 'values': [{--> 222 'valueReference': self._encode_cloud_object(i) 223 } for i in obj] 224 }
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 213 elif isinstance(obj, encodable.Encodable): 214 # Some objects know how to encode themselves.--> 215 result = obj.encode_cloud_value(self._encode_cloud_object) 216 elif isinstance(obj, (list, tuple)): 217 # Lists are encoded recursively.
> C:\ProgramData\Anaconda3\lib\site-packages\ee\computedobject.py in encode_cloud_value(self, encoder) 137 value = self.args[name] 138 if value is not None:--> 139 encoded_args[name] = {'valueReference': encoder(value)} 140 invocation['arguments'] = encoded_args 141 return {'functionInvocationValue': invocation}
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 240 result = { 241 'dictionaryValue': {--> 242 'values': { 243 key: { 244 'valueReference': self._encode_cloud_object(obj[key])
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in <dictcomp>(.0) 242 'values': { 243 key: {--> 244 'valueReference': self._encode_cloud_object(obj[key]) 245 } for key in sorted(obj) 246 }
> C:\ProgramData\Anaconda3\lib\site-packages\ee\serializer.py in _encode_cloud_object(self, obj) 257 } 258 else:--> 259 raise ee_exception.EEException('Can\'t encode object: %s' % obj) 260 261 if self._is_compound:
> EEException: Can't encode object: b' '
>
>
>
>
> On Sat, Mar 27, 2021 at 4:03 AM Qiusheng Wu ***@***.***>
> wrote:
>
>> I just tested it on my computer, and it worked without any problem.
>>
>>
>> <https://camo.githubusercontent.com/d9f927d9911644af4753f1b70f68375770e5dbbf68beeb3d98105bb153ab5b48/68747470733a2f2f692e696d6775722e636f6d2f4c6e72784546372e706e67>
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#386 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AE5J3HUCI7TIVHDLZCVCTRDTFTSAZANCNFSM4Z22RQSA>
>> .
>>
>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I have tried but it is still not fixed. I may try to avoid null attribute
if I can not find the solution
…On Sat, Mar 27, 2021 at 8:45 AM Qiusheng Wu ***@***.***> wrote:
I cannot reproduce the error. The script works fine on both my Windows and
Linux computers. I guess the error is caused by the non-Unicode character
encoding in your Windows. You might need to change it to UTF-8. See
https://stackoverflow.com/a/57134096
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#386 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE5J3HWRP4SY2WVP3K7ITD3TFUTDXANCNFSM4Z22RQSA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Dr. Wu,
It reports 'EEException: Can't encode object: b' ', and here is the script and test file.
work_dir = 'E:/' shpfile = geemap.shp_to_ee(os.path.join(work_dir,'Test.shp')) Map.addLayer(shpfile,{},'Plots') Map.centerObject(shpfile,16) Map
Test.zip
Beta Was this translation helpful? Give feedback.
All reactions