eodms-sgdot / eodms-cli

The EODMS CLI Python script is used to search, order and download imagery from the Earth Observation Data Management System using the REST API service.
Other
28 stars 8 forks source link

Receiving Error "name 'wkt' is not defined" #5

Closed keballantyne closed 3 years ago

keballantyne commented 3 years ago

Receiving the following error:

ERROR: 
Traceback (most recent call last):
  File "eodms-orderdownload.py", line 864, in main
    search_orderDownload(params)
  File "eodms-orderdownload.py", line 328, in search_orderDownload
    query_imgs = eodms_query.query_records()
  File "/emi/proc/rcm/eodms-rapi-orderdownload-main/utils/utils.py", line 1350, in query_records
    self.aoi_feats = eodms_geo.get_features()
  File "/emi/proc/rcm/eodms-rapi-orderdownload-main/utils/geo.py", line 332, in get_features
    wkt_feat = wkt.dumps(json_geom, decimals=3)
NameError: name 'wkt' is not defined
keballantyne commented 3 years ago

The 'wkt' variable is imported from the geomet Python package. Added an import statement for geomet to the geo.py script (also updated README to notify users they need to install the geomet package).