# Coastal Vulnerability input data coordinate system issues

**URL:** <https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612>\
**Category:** Software Support\
**Tags:** coastal-vulnerability\
**Created:** [November 6, 2019, 3:27pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612 "2019-11-06T15:27:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cwallace3](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Cwallace3](https://community.naturalcapitalalliance.org/u/Cwallace3)\
**Post date:** [November 6, 2019, 3:27pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/1 "2019-11-06T15:27:00Z")

</div>

When I run this model I keep receiving a “Type Error” message that says is not a string. I have no idea what to do or what it is related to. I was getting value errors at first but I fixed that and now I am getting this message.

Update: log file is included below.  
2019-11-06 10:21:59,793 utils.prepare\_workspace(109) INFO Writing log messages to C:\Users\cwallace1\Pictures\School Stuff\outputs\InVEST-Coastal-Vulnerability-log-2019-11-06–10\_21\_59.txt  
2019-11-06 10:21:59,799 model.\_logged\_target(1633) Level 100 Starting model with parameters:  
Arguments for InVEST natcap.invest.coastal\_vulnerability 3.7.0:  
aoi\_vector\_path C:/Users/cwallace1/Documents/New Research Data/AOI\_CK\_11\_7.shp  
dem\_averaging\_radius 5000  
dem\_path C:/Users/cwallace1/Documents/New Research Data/ned38/ned38/ned38.ovr  
geomorphology\_fill\_value 3  
geomorphology\_vector\_path C:/Users/cwallace1/Documents/New Research Data/Gmms\_1.shp  
habitat\_table\_path C:/Users/cwallace1/Documents/New Research Data/geo1.csv  
landmass\_vector\_path C:/Users/cwallace1/Documents/New Research Data/LP\_Final.shp  
max\_fetch\_distance 1200  
model\_resolution 3000  
n\_workers -1  
population\_radius  
population\_raster\_path  
results\_suffix  
shelf\_contour\_vector\_path C:/Users/cwallace1/Documents/New Research Data/conshe/conshe.shp  
slr\_field H  
slr\_vector\_path C:/Users/cwallace1/Documents/New Research Data/CVInputs\_GulfWide\_JMS/SLR\_WGS84.shp  
workspace\_dir C:\Users\cwallace1\Pictures\School Stuff\outputs  
wwiii\_vector\_path C:/Users/cwallace1/Pictures/School Stuff/InVEST\_3.7.0\_x86/CoastalProtection/Input/WaveWatchIII.shp

2019-11-06 10:21:59,818 coastal\_vulnerability.execute(95) INFO Validating arguments  
2019-11-06 10:21:59,842 validation.\_wrapped\_validate\_func(148) DEBUG Validation warnings: []  
2019-11-06 10:21:59,928 coastal\_vulnerability.calculate\_relief\_exposure(1136) INFO Calculating relief exposure  
2019-11-06 10:21:59,937 Task.add\_task(636) ERROR Something went wrong when adding task calculate relief exposure (7), terminating taskgraph.  
Traceback (most recent call last):  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 602, in add\_task  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 1068, in \_call  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 1152, in calculate\_relief\_exposure  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 1763, in clip\_and\_project\_raster  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 2683, in transform\_bounding\_box  
File “C:\Python27\lib\site-packages\osgeo\osr.py”, line 765, in ImportFromWkt  
TypeError: not a string  
2019-11-06 10:21:59,938 model.\_logged\_target(1639) ERROR Exception while executing \<function execute at 0x0F00F8F0\>  
Traceback (most recent call last):  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\ui\model.py”, line 1636, in \_logged\_target  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 277, in execute  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 602, in add\_task  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 1068, in \_call  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 1152, in calculate\_relief\_exposure  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 1763, in clip\_and\_project\_raster  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 2683, in transform\_bounding\_box  
File “C:\Python27\lib\site-packages\osgeo\osr.py”, line 765, in ImportFromWkt  
TypeError: not a string  
2019-11-06 10:21:59,938 model.\_logged\_target(1642) INFO Execution finished  
2019-11-06 10:21:59,940 utils.prepare\_workspace(115) INFO Elapsed time: 0.14s

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [November 6, 2019, 4:07pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/2 "2019-11-06T16:07:20Z")

</div>

Hi @Cwallace3 -

Please post the whole log file (.txt) that the model produces in the output Workspace, that will give us more information to potentially help us debug your problem. Thanks.

~ Stacie

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [November 7, 2019, 11:48pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/3 "2019-11-07T23:48:39Z")

</div>

@Cwallace3, could you check that your shore points vector and your DEM both have spatial references defined? The error message makes it sound like at least one of these doesn’t have a defined SRS.

If this isn’t it, could you share your inputs with us? Google drive, dropbox, etc. usually work well.

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![Cwallace3](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Cwallace3](https://community.naturalcapitalalliance.org/u/Cwallace3)\
**Post date:** [November 11, 2019, 4:56pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/4 "2019-11-11T16:56:52Z")

</div>

Both of the files have defined spatial references. I have attached my files below.

[https://drive.google.com/drive/folders/1JZpqw0izzGjNwmIKizfYWIKuD466ltOP](https://drive.google.com/drive/folders/1JZpqw0izzGjNwmIKizfYWIKuD466ltOP)

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [November 11, 2019, 8:06pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/5 "2019-11-11T20:06:57Z")

</div>

Ah, thanks for sharing your inputs! I believe the issue here is that the DEM input is an `ovr` file, which doesn’t actually have any spatial reference information in it (at least none that GDAL can detect):

```auto
Driver: GTiff/GeoTIFF
Files: /mnt/c/Users/jdouglass/Downloads/2019-11-11-cwallace-cv-error/Cedar_Key_DEM.ovr
Size is 1356, 1255
Coordinate System is `'
Image Structure Metadata:
  COMPRESSION=DEFLATE
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 1255.0)
Upper Right ( 1356.0, 0.0)
Lower Right ( 1356.0, 1255.0)
Center ( 678.0, 627.5)
Band 1 Block=128x128 Type=Byte, ColorInterp=Gray
  NoData Value=-128
  Overviews: 678x628, 339x314, 170x157

```

Typically this `.ovr` file is derived from the DEM dataset itself. I suspect that if you were to provide the original DEM input to the model, things should run just fine.

Let us know how this goes!

---

<div class="post-metadata">

**Author:** ![Cwallace3](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Cwallace3](https://community.naturalcapitalalliance.org/u/Cwallace3)\
**Post date:** [November 11, 2019, 11:07pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/6 "2019-11-11T23:07:15Z")

</div>

I keep getting the same error messages.

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [November 12, 2019, 5:58pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/7 "2019-11-12T17:58:19Z")

</div>

Hmm … well, could you share your non-OVR DEM so I can try to reproduce the issue on my end?

Thanks!  
James

---

<div class="post-metadata">

**Author:** ![Cwallace3](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Cwallace3](https://community.naturalcapitalalliance.org/u/Cwallace3)\
**Post date:** [November 12, 2019, 6:44pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/8 "2019-11-12T18:44:49Z")

</div>

Not a problem, the file is “Ned38”  
[https://drive.google.com/drive/folders/1JZpqw0izzGjNwmIKizfYWIKuD466ltOP](https://drive.google.com/drive/folders/1JZpqw0izzGjNwmIKizfYWIKuD466ltOP)

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [November 14, 2019, 1:22am UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/9 "2019-11-14T01:22:24Z")

</div>

OK! I see the file there, but it’s another overview file, which also does not have any spatial information. Is this raster from NED? If so, your NED download should have come with one or more GeoTiffs, all of which should have spatial information. Could you send the GeoTiff for this area?

---

<div class="post-metadata">

**Author:** ![Cwallace3](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Cwallace3](https://community.naturalcapitalalliance.org/u/Cwallace3)\
**Post date:** [November 14, 2019, 1:41am UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/10 "2019-11-14T01:41:28Z")

</div>

I uploaded the whole file folder from NED to the google drive folder. Thank you for taking the time to help me with this.

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [November 14, 2019, 2:03am UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/11 "2019-11-14T02:03:51Z")

</div>

OK, thanks! So, the raster you need (with the required spatial information) is inside your google drive folder at `ned38/ned38/ned38/hdr.adf`. If you provide that file (`hdr.adf`) to the InVEST CV model, it should work at least get past the error you mentioned above.

---

<div class="post-metadata">

**Author:** ![Cwallace3](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Cwallace3](https://community.naturalcapitalalliance.org/u/Cwallace3)\
**Post date:** [November 14, 2019, 3:40pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/12 "2019-11-14T15:40:43Z")

</div>

Ok so that worked but now Im getting a value error.

2019-11-14 10:39:34,572 utils.prepare\_workspace(109) INFO Writing log messages to C:\Users\cwallace1\Pictures\School Stuff\outputs\InVEST-Coastal-Vulnerability-log-2019-11-14–10\_39\_34.txt  
2019-11-14 10:39:34,575 model.\_logged\_target(1633) Level 100 Starting model with parameters:  
Arguments for InVEST natcap.invest.coastal\_vulnerability 3.7.0:  
aoi\_vector\_path C:/Users/cwallace1/Documents/New Research Data/AOI\_CK\_11\_7.shp  
dem\_averaging\_radius 5000  
dem\_path C:/Users/cwallace1/Documents/New Research Data/ned38/ned38/ned38/hdr.adf  
geomorphology\_fill\_value 1  
geomorphology\_vector\_path  
habitat\_table\_path C:/Users/cwallace1/Documents/New Research Data/Habitats/geo1.csv  
landmass\_vector\_path C:/Users/cwallace1/Documents/New Research Data/LP\_Final.shp  
max\_fetch\_distance 1200  
model\_resolution 3000  
n\_workers -1  
population\_radius  
population\_raster\_path  
results\_suffix  
shelf\_contour\_vector\_path C:/Users/cwallace1/Documents/New Research Data/conshe/conshe.shp  
slr\_field  
slr\_vector\_path  
workspace\_dir C:\Users\cwallace1\Pictures\School Stuff\outputs  
wwiii\_vector\_path C:/Users/cwallace1/Pictures/School Stuff/InVEST\_3.7.0\_x86/CoastalProtection/Input/WaveWatchIII.shp

2019-11-14 10:39:34,653 coastal\_vulnerability.execute(95) INFO Validating arguments  
2019-11-14 10:39:34,724 validation.\_wrapped\_validate\_func(148) DEBUG Validation warnings: []  
2019-11-14 10:39:34,877 coastal\_vulnerability.search\_for\_habitat(1306) INFO Searching for Shrub in proximity to shore points  
2019-11-14 10:39:34,897 Task.add\_task(636) ERROR Something went wrong when adding task searching for Shrub (8), terminating taskgraph.  
Traceback (most recent call last):  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 602, in add\_task  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 1068, in \_call  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 1317, in search\_for\_habitat  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 1473, in get\_vector\_info  
ValueError: Could not open C:/Users/cwallace1/Documents/New Research Data/Habitats\Habitat/Shrub1.shp as a gdal.OF\_VECTOR  
2019-11-14 10:39:34,897 model.\_logged\_target(1639) ERROR Exception while executing \<function execute at 0x0FA328F0\>  
Traceback (most recent call last):  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\ui\model.py”, line 1636, in \_logged\_target  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 284, in execute  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 1276, in \_schedule\_habitat\_tasks  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 602, in add\_task  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 1068, in \_call  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 1317, in search\_for\_habitat  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 1473, in get\_vector\_info  
ValueError: Could not open C:/Users/cwallace1/Documents/New Research Data/Habitats\Habitat/Shrub1.shp as a gdal.OF\_VECTOR  
2019-11-14 10:39:34,897 model.\_logged\_target(1642) INFO Execution finished  
2019-11-14 10:39:34,897 utils.prepare\_workspace(115) INFO Elapsed time: 0.32s

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [November 14, 2019, 6:08pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/13 "2019-11-14T18:08:12Z")

</div>

So, this error is saying that GDAL can’t open your habitat vector `Shrub1.shp` as a vector. Are you able to open it in ArcMap or QGIS? It’s worth noting that with ESRI Shapefiles, _all_ of the component files are important to include … so be sure to have `Shrub1.shp` alongside `Shrub1.dbf`, `Shrub1.shx` and whatever other files also are named `Shrub1.*`.

---

<div class="post-metadata">

**Author:** ![Cwallace3](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Cwallace3](https://community.naturalcapitalalliance.org/u/Cwallace3)\
**Post date:** [November 14, 2019, 6:23pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/14 "2019-11-14T18:23:09Z")

</div>

Yes I can open the files in ArcGis. All “habitat”.\* are all in the same folder as well.

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [November 19, 2019, 12:03am UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/15 "2019-11-19T00:03:00Z")

</div>

Huh, well that is strange indeed. My only other thought related to Arc is that maybe InVEST isn’t able to open the files if they’re also open in Arc or some other program?

As an alternative, could you try exporting the files to a different vector format and see if that helps?

---

<div class="post-metadata">

**Author:** ![Cwallace3](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Cwallace3](https://community.naturalcapitalalliance.org/u/Cwallace3)\
**Post date:** [November 20, 2019, 5:37pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/16 "2019-11-20T17:37:55Z")

</div>

Now I keep receiving either an OverFlowError message or Value Error: cannot float NaN to integer

2019-11-20 12:33:30,921 utils.prepare\_workspace(109) INFO Writing log messages to C:\Users\cwallace1\Documents\New Research Data\Cwallace\_Invest\_Inputs\InVEST-Coastal-Vulnerability-log-2019-11-20–12\_33\_30.txt  
2019-11-20 12:33:30,923 model.\_logged\_target(1633) Level 100 Starting model with parameters:  
Arguments for InVEST natcap.invest.coastal\_vulnerability 3.7.0:  
aoi\_vector\_path C:/Users/cwallace1/Documents/New Research Data/AOI\_CK\_11\_7.shp  
dem\_averaging\_radius 200  
dem\_path C:/Users/cwallace1/Documents/New Research Data/ned38/ned38/ned38/hdr.adf  
geomorphology\_fill\_value 1  
geomorphology\_vector\_path C:/Users/cwallace1/Documents/New Research Data/Cwallace\_Invest\_Inputs/Geomorph\_11\_14.shp  
habitat\_table\_path C:/Users/cwallace1/Documents/New Research Data/Habitats/geo\_1.csv  
landmass\_vector\_path C:/Users/cwallace1/Documents/New Research Data/LP\_Final.shp  
max\_fetch\_distance 1200  
model\_resolution 10  
n\_workers -1  
population\_radius  
population\_raster\_path  
results\_suffix  
shelf\_contour\_vector\_path C:/Users/cwallace1/Documents/New Research Data/conshe/conshe.shp  
slr\_field UNKNOWN  
slr\_vector\_path  
workspace\_dir C:\Users\cwallace1\Documents\New Research Data\Cwallace\_Invest\_Inputs  
wwiii\_vector\_path C:/Users/cwallace1/Pictures/School Stuff/InVEST\_3.7.0\_x86/CoastalProtection/Input/WaveWatchIII.shp

2019-11-20 12:33:30,940 coastal\_vulnerability.execute(95) INFO Validating arguments  
2019-11-20 12:33:30,954 validation.\_wrapped\_validate\_func(148) DEBUG Validation warnings: []  
2019-11-20 12:33:31,266 geoprocessing.reproject\_vector(1647) INFO starting reprojection  
2019-11-20 12:33:31,279 geoprocessing.reproject\_vector(1690) INFO reprojection 100.0% complete on clipped\_projected\_landmass.gpkg  
2019-11-20 12:33:31,345 coastal\_vulnerability.prepare\_landmass\_line\_index(406) INFO preparing landmass geometry  
2019-11-20 12:33:31,494 coastal\_vulnerability.prepare\_landmass\_line\_index(443) INFO indexing geometry of landmass  
2019-11-20 12:33:31,516 coastal\_vulnerability.interpolate\_shore\_points(474) INFO creating shore points along edge of landmass  
2019-11-20 12:33:31,618 coastal\_vulnerability.interpolate\_wwiii\_to\_shore(573) INFO Building spatial index for Wave Watch III points  
2019-11-20 12:33:39,828 coastal\_vulnerability.interpolate\_wwiii\_to\_shore(617) INFO Interpolating Wave Watch III data to shore points  
2019-11-20 12:33:39,855 coastal\_vulnerability.calculate\_wind\_exposure(812) INFO Calculating wind exposure  
2019-11-20 12:33:40,144 coastal\_vulnerability.calculate\_wind\_exposure(866) INFO Casting rays  
2019-11-20 12:33:40,217 coastal\_vulnerability.calculate\_wave\_exposure(1002) INFO Calculating wave exposure  
2019-11-20 12:33:40,243 coastal\_vulnerability.calculate\_surge\_exposure(1051) INFO Calculating surge potential  
2019-11-20 12:33:40,283 coastal\_vulnerability.calculate\_relief\_exposure(1136) INFO Calculating relief exposure  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,293 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,293 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,293 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,293 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,293 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,293 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2019-11-20 12:33:40,293 utils.\_log\_gdal\_errors(66) ERROR [errno 1] Reprojection failed, err = -14, further errors will be suppressed on the transform object.  
2019-11-20 12:33:40,298 Task.add\_task(636) ERROR Something went wrong when adding task calculate relief exposure (7), terminating taskgraph.  
Traceback (most recent call last):  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 602, in add\_task  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 1068, in \_call  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 1152, in calculate\_relief\_exposure  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 1778, in clip\_and\_project\_raster  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 1852, in warp\_raster  
ValueError: cannot convert float NaN to integer  
2019-11-20 12:33:40,299 model.\_logged\_target(1639) ERROR Exception while executing \<function execute at 0x0FC768F0\>  
Traceback (most recent call last):  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\ui\model.py”, line 1636, in \_logged\_target  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 277, in execute  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 602, in add\_task  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 1068, in \_call  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 1152, in calculate\_relief\_exposure  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal\_vulnerability.py”, line 1778, in clip\_and\_project\_raster  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 1852, in warp\_raster  
ValueError: cannot convert float NaN to integer  
2019-11-20 12:33:40,299 model.\_logged\_target(1642) INFO Execution finished  
2019-11-20 12:33:40,302 utils.prepare\_workspace(115) INFO Elapsed time: 9.38s

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [November 22, 2019, 7:09pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/17 "2019-11-22T19:09:28Z")

</div>

Neat! That’s not the sort of error we see every day 🙂 Are all of your inputs in the Google Drive? It’ll be helpful to try to reproduce the error on our end.

---

<div class="post-metadata">

**Author:** ![Cwallace3](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Cwallace3](https://community.naturalcapitalalliance.org/u/Cwallace3)\
**Post date:** [November 22, 2019, 8:30pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/18 "2019-11-22T20:30:54Z")

</div>

Oh Boy! Yes all of my inputs are on the google drive

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [November 23, 2019, 12:13am UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/19 "2019-11-23T00:13:49Z")

</div>

Alright, well, I can’t open the vectors in the google drive (using either Arc or QGIS) to verify this, but based on the traceback and the source code, I would guess that your AOI is either not projected at all or is not projected in a linear coordinate system.

The errors you see a bit farther up in the logfile:

> [@Cwallace3](#):
>
> 2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
> 2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
> 2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
> 2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
> 2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
> 2019-11-20 12:33:40,292 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits

These make me think that there’s a projections issue going on. In CV, files are reprojected to the coordinate system of the AOI, so if that isn’t set or is set incorrectly, that might lead to the `ValueError` you mention.

Anyways, could you take a look at your projections and verify that they make sense?

Thanks!  
James

---

<div class="post-metadata">

**Author:** ![dave](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dave/32/70_2.png) [@dave](https://community.naturalcapitalalliance.org/u/dave)\
**Post date:** [November 23, 2019, 12:39am UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612/20 "2019-11-23T00:39:11Z")

</div>

I would actually expect the model to raise a validation error right away if the AOI is not projected in a linear coordinate system using meters, so I wonder if the AOI has an _incorrectly defined_ coordinate system.

Anyway, when sharing shapefiles, please be sure to always include all the files with the same basename, not just the `.shp`

Finally, consider using a much larger model resolution until all these data problems are sorted out. In your log it is currently set at 10 meters.

[Next page](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-input-data-coordinate-system-issues/612.md?page=2)
