# Error running Spatial allocator

**URL:** <https://forum.cmascenter.org/t/error-running-spatial-allocator/4713>\
**Category:** Spatial Allocator\
**Created:** [February 12, 2024, 11:46am UTC](https://forum.cmascenter.org/t/error-running-spatial-allocator/4713 "2024-02-12T11:46:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ehsand](https://avatars.discourse-cdn.com/v4/letter/e/edb3f5/32.png) [@Ehsand](https://forum.cmascenter.org/u/Ehsand)\
**Post date:** [February 12, 2024, 11:46am UTC](https://forum.cmascenter.org/t/error-running-spatial-allocator/4713/1 "2024-02-12T11:46:04Z")

</div>

Dear all,

I am trying to run Spatial allocator (Surrogate tool) using attached shapefile\_cataloge.csv file and I encounter error as mentioned in the attached log file.  
Can anyone help me figuring out the problem please? Is there any problem with projections?

[srg\_grid.csv](https://forum.cmascenter.org/uploads/short-url/1O8m8r9Rptgc9Kz1zTcWNG9UgUy.csv) (4.7 KB)

[shapefile\_catalog.csv](https://forum.cmascenter.org/uploads/short-url/gQtkCVVM5ie9jKDXNvexzqKJ7vO.csv) (286 Bytes)

Regards,

---

<div class="post-metadata">

**Author:** ![james.beidler](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@james.beidler](https://forum.cmascenter.org/u/james.beidler)\
**Post date:** [February 12, 2024, 1:18pm UTC](https://forum.cmascenter.org/t/error-running-spatial-allocator/4713/2 "2024-02-12T13:18:39Z")

</div>

It looks like there is an issue with the way that the PROJ.4 string is formatted in the projection column of the shapefile catalog. Try omitting the leading “+” on the projection definition and replacing the projection fields with:  
“proj=longlat,+datum=WGS84,+no\_defs,+type=crs”

---

<div class="post-metadata">

**Author:** ![Ehsand](https://avatars.discourse-cdn.com/v4/letter/e/edb3f5/32.png) [@Ehsand](https://forum.cmascenter.org/u/Ehsand)\
**Post date:** [February 14, 2024, 7:13am UTC](https://forum.cmascenter.org/t/error-running-spatial-allocator/4713/3 "2024-02-14T07:13:03Z")

</div>

Thank you very much James for your help.  
the problem solved.
