Skip to content

Commit

Permalink
updated v0.3.3
Browse files Browse the repository at this point in the history
- Added fix for handling no data in manifests while uploading.
  • Loading branch information
samapriya committed Oct 30, 2019
1 parent accdaba commit 4ebcd1f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ optional arguments:
```
# Changelog

### v0.3.3
- Added fix for handling no data in manifests while uploading.

### v0.3.2
- Fixed issue with selsetup.

Expand Down
2 changes: 1 addition & 1 deletion geeup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = 'Samapriya Roy'
__email__ = '[email protected]'
__version__ = '0.3.2'
__version__ = '0.3.3'
5 changes: 4 additions & 1 deletion geeup/batch_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ def upload(user, source_path, destination_path, metadata_path=None, nodata_value
# j['id']=destination_path+'/'+line["id_no"]
# j['tilesets'][0]['sources'][0]['primaryPath']=gsid
json_data = json.dumps(j)
main_payload={"id": asset_full_path,"tilesets": [{"sources": [{"primaryPath": gsid,"additionalPaths": []}]}],"properties": j,"missingData": {"value": nodata_value}}
if nodata_value is not None:
main_payload={"id": asset_full_path,"tilesets": [{"sources": [{"primaryPath": gsid,"additionalPaths": []}]}],"properties": j,"missingData":{"value":nodata_value}}
else:
main_payload={"id": asset_full_path,"tilesets": [{"sources": [{"primaryPath": gsid,"additionalPaths": []}]}],"properties": j}
with open(os.path.join(lp,'data.json'), 'w') as outfile:
json.dump(main_payload, outfile)
subprocess.call("earthengine --no-use_cloud_api upload image --manifest "+'"'+os.path.join(lp,'data.json')+'"',shell=True)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def readme():

setuptools.setup(
name="geeup",
version="0.3.2",
version="0.3.3",
packages=find_packages(),
url="https://github.com/samapriya/geeup",
install_requires=[
Expand Down

0 comments on commit 4ebcd1f

Please sign in to comment.