phayes/geoPHP

chasing an out-of-memory issue

jdetwile opened this issue · 1 comments

Is there anything in the geoPHP libraries which could be setting a limit on memory allocation?

I'm using the geoPHP library (phayes-geoPHP-77f5f03) in a remotely-hosted environment. Upon loading a large geometry, I get a fatal Out of memory error (below) at about 64M. But phpinfo() says the memory limit is 256M.

So the hosting tech wants to know if "I" am doing anything to reduce that limit.

Any ideas??
Thanks!!

Fatal error: Out of memory (allocated 6553600) (tried to allocate 71 bytes) in /home/marcellu/php_standalone/geography_Feb2015/php_code/phayes-geoPHP-77f5f03/lib/geometry/Collection.class.php on line 26

<clip from phpinfo()>
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
memory_limit => 256M => 256M

Thanks!
John Detwiler
Pittsburgh, PA (USA)

Should have said: "I'm trying to use 'within' method on a geometry that describes the watershed of the Allegheny River. There are several thousand points in the polygon. But I have run my code on a test case, with a simple square polygon; and it returns correct results for 'within' on my simple test data."