Visitation and Tourism Model:

Dear users and developers,

I run the InVEST Visitation: Recreation and Tourism model without computing a regression. I tried several times and still got the same error message as below. The AOI I used in the UTM coordinate system. Anyone can help me to solve the problem? I also uploaded the AOI file. (https://drive.google.com/drive/folders/1aoiM8ozidvUCHeSsb2px7sKJvYZ8aDPv?usp=sharing)

Any thoughts on what I could do?
Any help is highly appreciated! Thank you.

Here’s the log file for your reference:

2020-01-12 00:46:56,527 utils.prepare_workspace(109) INFO Writing log messages to /Users/fwy/Desktop/nantou/InVEST-Recreation-Model-log-2020-01-12–00_46_56.txt
2020-01-12 00:46:56,528 model._logged_target(1633) Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.recreation.recmodel_client 3.7.0:
aoi_path /Users/fwy/Desktop/nantou/test_1_1.shp
compute_regression False
end_year 2017
grid_aoi False
n_workers -1
results_suffix
start_year 2016
workspace_dir /Users/fwy/Desktop/nantou

2020-01-12 00:46:56,600 recmodel_client._retrieve_photo_user_days(327) INFO Contacting server, please wait.
2020-01-12 00:46:57,109 recmodel_client._retrieve_photo_user_days(330) INFO Server online, version: 3.3.2:./recserver_cache_2017/76e890d2cf86640e_fast_hash.pickle
2020-01-12 00:46:57,282 recmodel_client._retrieve_photo_user_days(338) INFO Server supports year queries between 2005 and 2017
2020-01-12 00:46:57,283 recmodel_client._retrieve_photo_user_days(357) INFO archiving /Users/fwy/Desktop/nantou/intermediate/aoi.shp
2020-01-12 00:46:57,285 recmodel_client._retrieve_photo_user_days(357) INFO archiving /Users/fwy/Desktop/nantou/intermediate/aoi.shx
2020-01-12 00:46:57,287 recmodel_client._retrieve_photo_user_days(357) INFO archiving /Users/fwy/Desktop/nantou/intermediate/aoi.dbf
2020-01-12 00:46:57,288 recmodel_client._retrieve_photo_user_days(365) INFO Please wait for server to calculate PUD…
2020-01-12 00:46:59,410 Task.add_task(636) ERROR Something went wrong when adding task photo-user-day-calculation (1), terminating taskgraph.
Traceback (most recent call last):
File “/Users/jenkins/workspace/natcap/invest/env/lib/python2.7/site-packages/taskgraph/Task.py”, line 602, in add_task
File “/Users/jenkins/workspace/natcap/invest/env/lib/python2.7/site-packages/taskgraph/Task.py”, line 1068, in _call
File “/Users/jenkins/workspace/natcap/invest/env/lib/python2.7/site-packages/natcap/invest/recreation/recmodel_client.py”, line 370, in _retrieve_photo_user_days
File “/usr/local/lib/python2.7/site-packages/Pyro4/core.py”, line 171, in call
File “/usr/local/lib/python2.7/site-packages/Pyro4/core.py”, line 426, in _pyroInvoke
NotImplementedError: Wrong number of arguments for overloaded function ‘CoordinateTransformation_TransformPoint’.
Possible C/C++ prototypes are:
TransformPoint(OSRCoordinateTransformationShadow *,double [3])
TransformPoint(OSRCoordinateTransformationShadow *,double [3],double,double,double)

2020-01-12 00:46:59,413 model._logged_target(1639) ERROR Exception while executing <function execute at 0x117608de8>
Traceback (most recent call last):
File “/Users/jenkins/workspace/natcap/invest/env/lib/python2.7/site-packages/natcap/invest/ui/model.py”, line 1636, in _logged_target
File “/Users/jenkins/workspace/natcap/invest/env/lib/python2.7/site-packages/natcap/invest/recreation/recmodel_client.py”, line 226, in execute
File “/Users/jenkins/workspace/natcap/invest/env/lib/python2.7/site-packages/taskgraph/Task.py”, line 602, in add_task
File “/Users/jenkins/workspace/natcap/invest/env/lib/python2.7/site-packages/taskgraph/Task.py”, line 1068, in _call
File “/Users/jenkins/workspace/natcap/invest/env/lib/python2.7/site-packages/natcap/invest/recreation/recmodel_client.py”, line 370, in _retrieve_photo_user_days
File “/usr/local/lib/python2.7/site-packages/Pyro4/core.py”, line 171, in call
File “/usr/local/lib/python2.7/site-packages/Pyro4/core.py”, line 426, in _pyroInvoke
NotImplementedError: Wrong number of arguments for overloaded function ‘CoordinateTransformation_TransformPoint’.
Possible C/C++ prototypes are:
TransformPoint(OSRCoordinateTransformationShadow *,double [3])
TransformPoint(OSRCoordinateTransformationShadow *,double [3],double,double,double)

2020-01-12 00:46:59,413 model._logged_target(1642) INFO Execution finished
2020-01-12 00:46:59,414 utils.prepare_workspace(115) INFO Elapsed time: 2.89s

@fwy1002, thanks for posting and for sharing your data. It looks like your AOI shapefile is missing the very important .prj file. I’m not sure if that’s the cause of this error, or if you simply missed that file during the upload to google drive.

If the complete shapefile still produces that error, would you mind trying this development build of invest? https://www.googleapis.com/download/storage/v1/b/releases.naturalcapitalproject.org/o/invest%2F3.7.0.post839%2Bh89ab3f9d1349.d20200108%2FInVEST-3.7.0.post839%2Bh89ab3f9d1349.d20200108-mac.zip?generation=1578527069283659&alt=media

Hi Dave,
Thank you so much for your kindly advice.I was able to run my model successfully now. Thanks a lot!