Recreation model error

Hi I'm having problem with the recreation model, I got a
topographyexception error and I rechecked shapefiles and seems fine to
me, I already tried different things and no idea why I'm still having
this error:
Arguments:
aoi_file_name C:/landsatdata/workspace/input/initial/AOI.shp
cell_size     8000.0
comments     
data_dir      C:\landsatdata\workspace\input\initial\predictors
download      False
global_data   True
grid          True
grid_type     0
landscan      True
lulc          False
mode          initial
osm           True
osm_0         False
osm_1         True
osm_2         False
osm_3         True
osm_4         False
osm_list      True
workspace_dir C:\landsatdata\workspace


01/19/2016 16:43:16  root               INFO     Logging will be saved to recreation_client-log-2016-01-19--16_43_16.txt
01/19/2016 16:43:16  root               DEBUG    Loaded the model from invest_natcap.recreation.recreation_client
01/19/2016 16:43:16  root               INFO     Executing the loaded model
01/19/2016 16:43:16  root               INFO     Running InVEST version "3.2.0"
01/19/2016 16:43:16  root               INFO     Python architecture: ('32bit', 'WindowsPE')
01/19/2016 16:43:16  root               INFO     Disk space remaining for workspace: 6.26 GB
01/19/2016 16:43:17  root               INFO     Pointing temporary directory at the workspace at C:\landsatdata\workspace
01/19/2016
16:43:17  root               INFO     Updating
os.environ["TMP"]=C:\Users\locherkr\AppData\Local\Temp to
C:\landsatdata\workspace
01/19/2016 16:43:17  root              
INFO     Updating
os.environ["TEMP"]=C:\Users\locherkr\AppData\Local\Temp to
C:\landsatdata\workspace
01/19/2016 16:43:17  root               INFO     Setting os.environ["TMPDIR"]=C:\landsatdata\workspace
01/19/2016 16:43:17  root               INFO     Setting tempfile.tempdir to C:\landsatdata\workspace\tmp
01/19/2016 16:43:17  root               INFO     Starting recreation_client
01/19/2016 16:43:17  invest_natcap.recreation.client_init INFO     URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_version.php.
01/19/2016 16:43:17  invest_natcap.recreation.client_init INFO     Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_version.php.
01/19/2016 16:43:17  invest_natcap.recreation.client_init INFO     Assigned server session id qptmpplskvofkn7a2icohc6qa4.
01/19/2016 16:43:17  invest_natcap.recreation.client_init INFO     Checking version.
01/19/2016 16:43:18  invest_natcap.recreation.client_init INFO     You have a compatible version.
01/19/2016 16:43:18  invest_natcap.recreation.client_init INFO     Finished checking version.
01/19/2016 16:43:18  invest_natcap.recreation.client_init INFO     Validating AOI.
01/19/2016 16:43:18  invest_natcap.recreation.client_init INFO     Processing predictors.
01/19/2016 16:43:18  invest_natcap.recreation.client_init INFO     Found AS_parks predictor.
01/19/2016 16:43:18  invest_natcap.recreation.client_init INFO     Opening predictors for uploading.
01/19/2016 16:43:19  invest_natcap.recreation.client_init INFO     Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_predictors.php.
01/19/2016 16:43:20  invest_natcap.recreation.client_init INFO     You have uploaded 1 files.
01/19/2016 16:43:20  invest_natcap.recreation.client_init INFO     Your upload size is 56077.
01/19/2016 16:43:20  invest_natcap.recreation.client_init INFO     The max upload size is 104857600.
01/19/2016 16:43:20  invest_natcap.recreation.client_init INFO     Running server side processing.
01/19/2016 16:43:20  invest_natcap.recreation.client_init INFO     URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_initial.php.
01/19/2016 16:43:20  invest_natcap.recreation.client_init INFO     Trying URL: http://vulpes.sefs.uw.edu/~recreation/recreation_server_initial.php.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO     Model running.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO     Executing recreation Python script.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Running server side model with user provided parameters.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      The map unit coversion to meters is 1||0.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Found AS_parks predictor.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Incuding simple predictor predictor_landscan.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Incuding compound predictor planet_osm_point.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Incuding compound predictor planet_osm_line.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Incuding compound predictor planet_osm_polygon.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Checking for custom categorization for standard predictors.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Only user provided simple predictors found.
01/19/2016
16:43:21  invest_natcap.recreation.client_init INFO      Importing AOI
/usr/local/public_html/data/qptmpplskvofkn7a2icohc6qa4/aoi.shp.
01/19/2016 16:43:21  invest_natcap.recreation.client_init WARNING   The AOI contains invalid geometry.
01/19/2016 16:43:21  invest_natcap.recreation.client_init WARNING   Attempting to fix the AOI geometry.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      AOI geometry now valid.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Imported AOI.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Importing user supplied predictor variables.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Importing user supplied compound variables.
01/19/2016 16:43:21  invest_natcap.recreation.client_init INFO      Merging AOI if multiple parts.
01/19/2016 16:43:22  invest_natcap.recreation.client_init INFO      Transforming AOI to Latitude and Longitude.
01/19/2016 16:43:22  invest_natcap.recreation.client_init INFO     Please wait.
01/19/2016
16:43:37  invest_natcap.recreation.client_init WARNING   The AOI
intersects 10 and is covered by 0 administrative area(s).
01/19/2016
16:43:37  invest_natcap.recreation.client_init INFO      Creating
recatangular grid prj_grid from aoi_union using cell size 8000.0.
01/19/2016 16:43:37  invest_natcap.recreation.client_init INFO      The grid contains 229 cells.
01/19/2016 16:43:37  invest_natcap.recreation.client_init INFO      The AOI meets the maximum size requirement.
01/19/2016 16:43:37  invest_natcap.recreation.client_init INFO      Projecting the grid for clips.
01/19/2016 16:43:37  invest_natcap.recreation.client_init INFO      Clipping simple predictors.
01/19/2016 16:43:37  invest_natcap.recreation.client_init INFO      Clipping AS_parks.
01/19/2016 16:43:37  invest_natcap.recreation.client_init INFO      Clipping predictor_landscan.
01/19/2016 16:43:37  invest_natcap.recreation.client_init INFO     Please wait.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Clipping compound predictors.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Clipping planet_osm_point.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Clipping planet_osm_line.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Clipping planet_osm_polygon.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Converting compound predictors to simple predictors.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing compound predictor planet_osm_point.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Using default classification for planet_osm_point.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category pointMisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category pointCult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category pointIndus.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category pointNat.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category pointStruc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing compound predictor planet_osm_line.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Using default classification for planet_osm_line.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category lineMisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category lineCult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category lineIndus.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category lineNat.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category lineStruc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing compound predictor planet_osm_polygon.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Using default classification for planet_osm_polygon.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category polyMisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category polyCult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category polyIndus.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category polyNat.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing category polyStruc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting simple predictors.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting AS_parks.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting predictor_landscan.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting pointmisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting pointcult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting pointindus.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting pointnat.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting pointstruc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting linemisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting linecult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting lineindus.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting linenat.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting linestruc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting polymisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting polycult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting polyindus.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting polynat.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Projecting polystruc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating AS_parks.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing polygon predictor AS_parks.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating predictor_landscan.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing polygon predictor predictor_landscan.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating pointmisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing point predictor pointmisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating pointcult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing point predictor pointcult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating pointindus.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing point predictor pointindus.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating pointnat.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing point predictor pointnat.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating pointstruc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing point predictor pointstruc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating linemisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing line predictor linemisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating linecult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing line predictor linecult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating lineindus.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing line predictor lineindus.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating linenat.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing line predictor linenat.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating linestruc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing line predictor linestruc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating polymisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing polygon predictor polymisc.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Aggregating polycult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO      Processing polygon predictor polycult.
01/19/2016 16:43:53  invest_natcap.recreation.client_init INFO     Please wait.
01/19/2016 16:44:08  invest_natcap.recreation.client_init INFO      Aggregating polyindus.
01/19/2016 16:44:08  invest_natcap.recreation.client_init INFO      Processing polygon predictor polyindus.
01/19/2016 16:44:08  invest_natcap.recreation.client_init INFO      Aggregating polynat.
01/19/2016 16:44:08  invest_natcap.recreation.client_init INFO      Processing polygon predictor polynat.
01/19/2016
16:44:08  invest_natcap.recreation.client_init ERROR     Error
performing intersection: TopologyException: Input geom 1 is invalid:
Self-intersection at or near point 73785599052333855 55280077711857315
at 73785599052333855 55280077711857315
01/19/2016 16:44:08  root               ERROR    ---------------------------------------------------
01/19/2016 16:44:08  root               ERROR    ---------------------- ERROR ----------------------
01/19/2016 16:44:08  root               ERROR    ---------------------------------------------------
01/19/2016 16:44:08  root               ERROR    Error: exception found while running recreation_client
01/19/2016 16:44:08  root               DEBUG   
01/19/2016 16:44:08  root               DEBUG    Build details
01/19/2016 16:44:08  root               DEBUG    Interpreter
01/19/2016 16:44:08  root               DEBUG    Current temp dir: C:\landsatdata\workspace\tmp
01/19/2016 16:44:08  root               DEBUG    tempfile.tempdir: C:\landsatdata\workspace\tmp
01/19/2016 16:44:08  root               DEBUG   
01/19/2016 16:44:08  root               DEBUG    System
01/19/2016 16:44:08  root               DEBUG    OS              : Windows-7-6.1.7601-SP1
01/19/2016 16:44:08  root               DEBUG    Processor architecture: AMD64
01/19/2016 16:44:08  root               DEBUG    FS encoding     : mbcs
01/19/2016 16:44:08  root               DEBUG    Preferred encoding: cp1252
01/19/2016 16:44:08  root               DEBUG   
01/19/2016 16:44:08  root               DEBUG    Python
01/19/2016 16:44:08  root               DEBUG    Version         : 2.7.9
01/19/2016 16:44:08  root               DEBUG    Build           : ('default', 'Dec 10 2014 12:24:55')
01/19/2016 16:44:08  root               DEBUG    Compiler        : MSC v.1500 32 bit (Intel)
01/19/2016 16:44:08  root               DEBUG    Implementation  : CPython
01/19/2016 16:44:08  root               DEBUG    Architecture    : 32bit
01/19/2016 16:44:08  root               DEBUG    Linkage format  : WindowsPE
01/19/2016 16:44:08  root               DEBUG   
01/19/2016 16:44:08  root               DEBUG    Packages
01/19/2016 16:44:08  root               DEBUG    Cython          : ?
01/19/2016 16:44:08  root               DEBUG    Numpy           : 1.8.1
01/19/2016 16:44:08  root               DEBUG    Scipy           : 0.15.1
01/19/2016 16:44:08  root               DEBUG    OSGEO           : 1.10.1
01/19/2016 16:44:08  root               DEBUG    Shapely         : 1.5.5
01/19/2016 16:44:08  root               DEBUG    InVEST          : 3.2.0
01/19/2016 16:44:08  root               DEBUG   
01/19/2016 16:44:08  root               DEBUG   
01/19/2016 16:44:08  root               DEBUG    error <type 'exceptions.IOError'> number None
01/19/2016
16:44:08  root               DEBUG    Error message: Error on server: 
Error performing intersection: TopologyException: Input geom 1 is
invalid: Self-intersection at or near point 73785599052333855
55280077711857315 at 73785599052333855 55280077711857315
01/19/2016 16:44:08  root               DEBUG    Exception not disk-space related
01/19/2016 16:44:08  root               DEBUG    Printing traceback
Traceback (most recent call last):
  File "invest_natcap\iui\executor.pyc", line 555, in runModel
  File "invest_natcap\recreation\recreation_client.pyc", line 546, in execute
  File "invest_natcap\recreation\recreation_client.pyc", line 125, in log_check
  File "invest_natcap\recreation\recreation_client.pyc", line 82, in relogger
IOError:
Error on server:  Error performing intersection: TopologyException:
Input geom 1 is invalid: Self-intersection at or near point
73785599052333855 55280077711857315 at 73785599052333855
55280077711857315
None

01/19/2016 16:44:08  root               ERROR    Exiting due to failures
01/19/2016 16:44:08  root               INFO     Elapsed time: 52.11s

thanks a lot

Krla

Comments

  • DaveDave Member, Administrator, NatCap Staff
    Hi @Krla,

    The topology error indicates there is some bad geometry in one of the input datasets. The log indicates the problem is caused by one of the global datasets, the OpenStreetMap Polygon layer. There is no easy way to fix this problem, but if you do not include that input layer when you run the model, you can avoid this error.

    Best,
    Dave
Sign In or Register to comment.