# Error in projectionPointInt when run Spatial-Allocator

**URL:** <https://forum.cmascenter.org/t/error-in-projectionpointint-when-run-spatial-allocator/1251>\
**Category:** Spatial Allocator\
**Created:** [January 22, 2020, 5:27am UTC](https://forum.cmascenter.org/t/error-in-projectionpointint-when-run-spatial-allocator/1251 "2020-01-22T05:27:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phy](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@phy](https://forum.cmascenter.org/u/phy)\
**Post date:** [January 22, 2020, 5:27am UTC](https://forum.cmascenter.org/t/error-in-projectionpointint-when-run-spatial-allocator/1251/1 "2020-01-22T05:27:08Z")

</div>

Hello, everyone!  
I’m master course student in Korea.  
I got some error when I run Spatial-Allocator program(generate\_surrogate100\_pop.csh)  
error message is :  
Generate Population surrogate = 100  
Surrogate Creator Version 4.3, 01/20/2017

EV: OUTPUT\_FILE\_TYPE=RegularGrid  
Setting output grid

EV: OUTPUT\_FILE\_TYPE=RegularGrid  
Reading Regular Grid

EV: OUTPUT\_GRID\_NAME=KOREA  
WARNING: Environment variable: MAX\_LINE\_SEG, not set  
MAX\_LINE\_SEG not set, discretization intervals disabled  
griddesc file name = /home/out2/mcip/KOREA/GRIDDESC

Ellipsoid var = OUTPUT\_FILE\_ELLIPSOID  
EV: OUTPUT\_FILE\_ELLIPSOID=+a=6370000.0,+b=6370000.0  
Ellipsoid=+a=6370000.0,+b=6370000.0  
EV: OUTPUT\_GRID\_NAME=KOREA  
Not using BB optimization

EV: OUTPUT\_FILE\_NAME=/home/phy/Spatial-Allocator/output/KOREA/grid\_KOREA\_100  
EV: WEIGHT\_ATTR\_LIST=POP  
EV: FILTER\_FILE=NONE  
Filter File= NONE  
Reading data polygons

EV: DATA\_FILE\_ELLIPSOID=+a=6370000.0,+b=6370000.0  
Ellipsoid=+a=6370000.0,+b=6370000.0  
EV: DATA\_FILE\_MAP\_PRJN=+proj=latlong  
EV: DATA\_FILE\_NAME\_TYPE=ShapeFile  
EV: DATA\_FILE\_NAME=/home/phy/Spatial-Allocator/data/korea/TL\_SCCO\_SIG  
WARNING: Environment variable: MAX\_LINE\_SEG, not set  
MAX\_LINE\_SEG not set, discretization intervals disabled  
max\_line\_seg=

Reading Shapefile /home/phy/Spatial-Allocator/data/korea/TL\_SCCO\_SIG  
Shapefile Type: 5 Polygon # of Shapes: 250

Input projection:

args[1]=+a=6370000.0

args[2]=+b=6370000.0

param 0 = +proj=latlong,  
PROJ args=+proj=latlong+a=6370000.0+b=6370000.0

Output projection:

args[1]=+a=6370000.0

args[2]=+b=6370000.0

setting Lambert Conic Conformal – 2SP parameters  
PROJ args=+proj=lcc+a=6370000.0+b=6370000.0+lat\_1=30.000000+lat\_2=60.000000+lon\_0=126.000000+lat\_0=38.000000+units=m

ERROR in /home/phy/Spatial-Allocator/bin/64bits/srgcreate.exe: Error in projectionPointInt: p.u=HUGE\_VAL. Exiting…  
0.001u 0.002s 0:00.00 0.0% 0+0k 0+0io 0pf+0w  
Error generating surrogate for category 100

I think there is a problem about map projection point.  
But I can’t find problem… ☹  
How can I solve this problem???

---

<div class="post-metadata">

**Author:** ![bbaek](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/bbaek/32/22_2.png) [@bbaek](https://forum.cmascenter.org/u/bbaek)\
**Post date:** [March 23, 2020, 2:45pm UTC](https://forum.cmascenter.org/t/error-in-projectionpointint-when-run-spatial-allocator/1251/2 "2020-03-23T14:45:34Z")

</div>

@phy To close this ticket, can you update this ticket with the solution we assisted? Thanks.
